diff --git a/templates/vst3-make/Makefile b/templates/vst3-make/Makefile index 676c897..473c8a1 100644 --- a/templates/vst3-make/Makefile +++ b/templates/vst3-make/Makefile @@ -85,9 +85,9 @@ CXX_SRCS = ${CXX_SRCS_EXTRA} CXX_OBJS = $(addprefix build/obj/, $(notdir $(CXX_SRCS:.cpp=.o))) ifeq ($(UNAME_S), Darwin) -all: build/${BUNDLE_DIR}/${DLL_FILE} build/${BUNDLE_DIR}/Contents/Info.plist +all: build/${BUNDLE_DIR}/${DLL_FILE} build/${BUNDLE_DIR}/Contents/Info.plist build/${BUNDLE_DIR}/Contents/PkgInfo -build/${BUNDLE_DIR}/Contents/Info.plist: ${DATA_DIR}/data/Info.plist | build/${BUNDLE_DIR}/Contents +build/${BUNDLE_DIR}/Contents/%: ${DATA_DIR}/data/% | build/${BUNDLE_DIR}/Contents cp $^ $@ else all: build/${BUNDLE_DIR}/${DLL_FILE} @@ -113,11 +113,13 @@ install: all mkdir -p -m 0755 "${VST3DIR}/${BUNDLE_DIR}/${DLL_DIR}" install -m 0755 build/${BUNDLE_DIR}/${DLL_FILE} "${VST3DIR}/${BUNDLE_DIR}/${DLL_DIR}" install -m 0644 build/${BUNDLE_DIR}/Contents/Info.plist "${VST3DIR}/${BUNDLE_DIR}/Contents/Info.plist" + install -m 0644 build/${BUNDLE_DIR}/Contents/PkgInfo "${VST3DIR}/${BUNDLE_DIR}/Contents/PkgInfo" install-user: all mkdir -p -m 0755 "${VST3DIR_USER}/${BUNDLE_DIR}/${DLL_DIR}" install -m 0755 build/${BUNDLE_DIR}/${DLL_FILE} "${VST3DIR_USER}/${BUNDLE_DIR}/${DLL_DIR}" install -m 0644 build/${BUNDLE_DIR}/Contents/Info.plist "${VST3DIR_USER}/${BUNDLE_DIR}/Contents/Info.plist" + install -m 0644 build/${BUNDLE_DIR}/Contents/PkgInfo "${VST3DIR_USER}/${BUNDLE_DIR}/Contents/PkgInfo" else diff --git a/templates/vst3/data/PkgInfo b/templates/vst3/data/PkgInfo new file mode 100644 index 0000000..43c9cb0 --- /dev/null +++ b/templates/vst3/data/PkgInfo @@ -0,0 +1 @@ +BNDL???? diff --git a/templates/vst3/tibia-index.js b/templates/vst3/tibia-index.js index ae0efd5..c2e3213 100644 --- a/templates/vst3/tibia-index.js +++ b/templates/vst3/tibia-index.js @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * along with Tibia. If not, see . * - * File author: Stefano D'Angelo + * File author: Stefano D'Angelo, Paolo Marrone */ var path = require("path"); @@ -63,6 +63,7 @@ module.exports = function (data, api, outputCommon, outputData) { data.product.parameters[i].paramIndex = i; } + api.copyFile(`data${sep}PkgInfo`, `data${sep}PkgInfo`); api.generateFileFromTemplateFile(`data${sep}Info.plist`, `data${sep}Info.plist`, data); api.copyFile(`src${sep}vst3.c`, `src${sep}vst3.c`); api.generateFileFromTemplateFile(`src${sep}data.h`, `src${sep}data.h`, data);