| @@ -173,19 +173,21 @@ ifdef ARCH_MAC | |||||
| else | else | ||||
| DIST_DIR := Rack$(RACK_VERSION_MAJOR)$(RACK_EDITION) | DIST_DIR := Rack$(RACK_VERSION_MAJOR)$(RACK_EDITION) | ||||
| endif | endif | ||||
| FUNDAMENTAL_VERSION ?= 2.6.4 | |||||
| FUNDAMENTAL_FILENAME := Fundamental-$(FUNDAMENTAL_VERSION)-$(ARCH_NAME).vcvplugin | |||||
| DIST_MD := $(wildcard *.md) | DIST_MD := $(wildcard *.md) | ||||
| DIST_HTML := $(patsubst %.md, build/%.html, $(DIST_MD)) | DIST_HTML := $(patsubst %.md, build/%.html, $(DIST_MD)) | ||||
| DIST_RES := res cacert.pem Core.json template.vcv LICENSE-GPLv3.txt $(DIST_HTML) translations | |||||
| DIST_RES := res cacert.pem Core.json template.vcv LICENSE-GPLv3.txt $(DIST_HTML) translations $(FUNDAMENTAL_FILENAME) | |||||
| DIST_SDK_DIR := Rack-SDK | DIST_SDK_DIR := Rack-SDK | ||||
| DIST_SDK = Rack-SDK-$(RACK_VERSION)-$(ARCH_NAME).zip | DIST_SDK = Rack-SDK-$(RACK_VERSION)-$(ARCH_NAME).zip | ||||
| FUNDAMENTAL_VERSION ?= 2.6.2 | |||||
| FUNDAMENTAL_FILENAME := Fundamental-$(FUNDAMENTAL_VERSION)-$(ARCH_NAME).vcvplugin | |||||
| dist: $(TARGET) $(STANDALONE_TARGET) $(DIST_HTML) | |||||
| $(FUNDAMENTAL_FILENAME): | |||||
| curl -o "$(FUNDAMENTAL_FILENAME)" "https://api.vcvrack.com/download?slug=Fundamental&version=$(FUNDAMENTAL_VERSION)&arch=$(ARCH_NAME)" | |||||
| dist: $(TARGET) $(STANDALONE_TARGET) $(DIST_HTML) $(FUNDAMENTAL_FILENAME) | |||||
| mkdir -p dist | mkdir -p dist | ||||
| # Download Fundamental package if not already downloaded | |||||
| [ -f "$(FUNDAMENTAL_FILENAME)" ] || curl -o "$(FUNDAMENTAL_FILENAME)" "https://api.vcvrack.com/download?slug=Fundamental&version=$(FUNDAMENTAL_VERSION)&arch=$(ARCH_NAME)" | |||||
| ifdef ARCH_LIN | ifdef ARCH_LIN | ||||
| mkdir -p dist/"$(DIST_DIR)" | mkdir -p dist/"$(DIST_DIR)" | ||||
| cp $(TARGET) dist/"$(DIST_DIR)"/ | cp $(TARGET) dist/"$(DIST_DIR)"/ | ||||
| @@ -197,7 +199,6 @@ ifdef ARCH_LIN | |||||
| ldd dist/"$(DIST_DIR)"/$(STANDALONE_TARGET) | ldd dist/"$(DIST_DIR)"/$(STANDALONE_TARGET) | ||||
| # Copy resources | # Copy resources | ||||
| cp -R $(DIST_RES) dist/"$(DIST_DIR)"/ | cp -R $(DIST_RES) dist/"$(DIST_DIR)"/ | ||||
| cp "$(FUNDAMENTAL_FILENAME)" dist/"$(DIST_DIR)"/ | |||||
| endif | endif | ||||
| ifdef ARCH_MAC | ifdef ARCH_MAC | ||||
| mkdir -p dist/"$(DIST_BUNDLE)" | mkdir -p dist/"$(DIST_BUNDLE)" | ||||
| @@ -217,7 +218,6 @@ ifdef ARCH_MAC | |||||
| $(SED) 's/{RACK_VERSION}/$(RACK_VERSION)/g' dist/"$(DIST_BUNDLE)"/Contents/Info.plist | $(SED) 's/{RACK_VERSION}/$(RACK_VERSION)/g' dist/"$(DIST_BUNDLE)"/Contents/Info.plist | ||||
| cp -R icon.icns dist/"$(DIST_BUNDLE)"/Contents/Resources/ | cp -R icon.icns dist/"$(DIST_BUNDLE)"/Contents/Resources/ | ||||
| cp -R $(DIST_RES) dist/"$(DIST_BUNDLE)"/Contents/Resources/ | cp -R $(DIST_RES) dist/"$(DIST_BUNDLE)"/Contents/Resources/ | ||||
| cp "$(FUNDAMENTAL_FILENAME)" dist/"$(DIST_BUNDLE)"/Contents/Resources/ | |||||
| endif | endif | ||||
| ifdef ARCH_WIN | ifdef ARCH_WIN | ||||
| mkdir -p dist/"$(DIST_DIR)" | mkdir -p dist/"$(DIST_DIR)" | ||||
| @@ -230,7 +230,6 @@ ifdef ARCH_WIN | |||||
| cp /mingw64/bin/libwinpthread-1.dll dist/"$(DIST_DIR)"/ | cp /mingw64/bin/libwinpthread-1.dll dist/"$(DIST_DIR)"/ | ||||
| cp /mingw64/bin/libstdc++-6.dll dist/"$(DIST_DIR)"/ | cp /mingw64/bin/libstdc++-6.dll dist/"$(DIST_DIR)"/ | ||||
| cp /mingw64/bin/libgcc_s_seh-1.dll dist/"$(DIST_DIR)"/ | cp /mingw64/bin/libgcc_s_seh-1.dll dist/"$(DIST_DIR)"/ | ||||
| cp "$(FUNDAMENTAL_FILENAME)" dist/"$(DIST_DIR)"/ | |||||
| endif | endif | ||||