Browse Source

Use original SLUG-VERSION-OS-CPU.vcvplugin filename for bundled Fundamental package.

tags/v2.5.2
Andrew Belt 6 months ago
parent
commit
9384bedab1
2 changed files with 6 additions and 6 deletions
  1. +3
    -3
      Makefile
  2. +3
    -3
      src/plugin.cpp

+ 3
- 3
Makefile View File

@@ -181,7 +181,7 @@ ifdef ARCH_LIN
# Copy resources # Copy resources
cp -R $(DIST_RES) dist/"$(DIST_DIR)"/ cp -R $(DIST_RES) dist/"$(DIST_DIR)"/
cp $(DIST_HTML) dist/"$(DIST_DIR)"/ cp $(DIST_HTML) dist/"$(DIST_DIR)"/
cp plugins/Fundamental/dist/Fundamental-*.vcvplugin dist/"$(DIST_DIR)"/Fundamental.vcvplugin
cp plugins/Fundamental/dist/Fundamental-*.vcvplugin dist/"$(DIST_DIR)"/
# Make ZIP # Make ZIP
cd dist && zip -q -9 -r "$(DIST_NAME)".zip "$(DIST_DIR)" cd dist && zip -q -9 -r "$(DIST_NAME)".zip "$(DIST_DIR)"
endif endif
@@ -204,7 +204,7 @@ ifdef ARCH_MAC
cp -R $(DIST_RES) dist/"$(DIST_BUNDLE)"/Contents/Resources/ cp -R $(DIST_RES) dist/"$(DIST_BUNDLE)"/Contents/Resources/
cp $(DIST_HTML) dist/"$(DIST_BUNDLE)"/Contents/Resources/ cp $(DIST_HTML) dist/"$(DIST_BUNDLE)"/Contents/Resources/
cp -R icon.icns dist/"$(DIST_BUNDLE)"/Contents/Resources/ cp -R icon.icns dist/"$(DIST_BUNDLE)"/Contents/Resources/
cp plugins/Fundamental/dist/Fundamental-*.vcvplugin dist/"$(DIST_BUNDLE)"/Contents/Resources/Fundamental.vcvplugin
cp plugins/Fundamental/dist/Fundamental-*.vcvplugin dist/"$(DIST_BUNDLE)"/Contents/Resources/
# Clean up and sign bundle # Clean up and sign bundle
xattr -cr dist/"$(DIST_BUNDLE)" xattr -cr dist/"$(DIST_BUNDLE)"
codesign --verbose --sign "Developer ID Application: Andrew Belt (V8SW9J626X)" --options runtime --entitlements Entitlements.plist --timestamp --deep dist/"$(DIST_BUNDLE)"/Contents/Resources/$(TARGET) dist/"$(DIST_BUNDLE)" codesign --verbose --sign "Developer ID Application: Andrew Belt (V8SW9J626X)" --options runtime --entitlements Entitlements.plist --timestamp --deep dist/"$(DIST_BUNDLE)"/Contents/Resources/$(TARGET) dist/"$(DIST_BUNDLE)"
@@ -230,7 +230,7 @@ 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 plugins/Fundamental/dist/Fundamental-*.vcvplugin dist/"$(DIST_DIR)"/Fundamental.vcvplugin
cp plugins/Fundamental/dist/Fundamental-*.vcvplugin dist/"$(DIST_DIR)"/
# Make NSIS installer # Make NSIS installer
# pacman -S mingw-w64-x86_64-nsis # pacman -S mingw-w64-x86_64-nsis
makensis -DVERSION_MAJOR="$(VERSION_MAJOR)" -DVERSION="$(VERSION)" "-XOutFile dist/$(DIST_NAME).exe" installer.nsi makensis -DVERSION_MAJOR="$(VERSION_MAJOR)" -DVERSION="$(VERSION)" "-XOutFile dist/$(DIST_NAME).exe" installer.nsi


+ 3
- 3
src/plugin.cpp View File

@@ -284,12 +284,12 @@ void init() {


// If Fundamental wasn't loaded, copy the bundled Fundamental package and load it // If Fundamental wasn't loaded, copy the bundled Fundamental package and load it
if (!settings::devMode && !getPlugin("Fundamental")) { if (!settings::devMode && !getPlugin("Fundamental")) {
std::string fundamentalSrc = asset::system("Fundamental.vcvplugin");
std::string fundamentalPackage = get(system::glob(asset::system("Fundamental-*-" + APP_OS + "-" + APP_CPU + ".vcvplugin")), 0);
std::string fundamentalDir = system::join(pluginsPath, "Fundamental"); std::string fundamentalDir = system::join(pluginsPath, "Fundamental");
if (system::isFile(fundamentalSrc)) {
if (fundamentalPackage != "" && system::isFile(fundamentalPackage)) {
INFO("Extracting bundled Fundamental package"); INFO("Extracting bundled Fundamental package");
try { try {
system::unarchiveToDirectory(fundamentalSrc.c_str(), pluginsPath.c_str());
system::unarchiveToDirectory(fundamentalPackage.c_str(), pluginsPath.c_str());
loadPlugin(fundamentalDir); loadPlugin(fundamentalDir);
} }
catch (Exception& e) { catch (Exception& e) {


Loading…
Cancel
Save