Skip to content

Commit

Permalink
Merge pull request #1990 from Wasted-Audio/bugfix/macos_jack_gui
Browse files Browse the repository at this point in the history
target app bundle when using gui on mac
  • Loading branch information
timothyschoen authored Dec 3, 2024
2 parents 72c5373 + 3b36f19 commit bd47f8b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/package-macOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ rm -r $PKG_DIR
if [ -z "$AC_USERNAME" ]; then
echo "No user name, skipping sign/notarize"
# pretend that we signed the package and bail out
mv ${PRODUCT_NAME}.pkg ${PRODUCT_NAME}-MacOS-$1.pkg
mv ${PRODUCT_NAME}.pkg $1
exit 0
fi

Expand Down
13 changes: 10 additions & 3 deletions Source/Heavy/DPFExporter.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,20 +278,27 @@ class DPFExporter : public ExporterBase {
outputFile.getChildFile("bin").getChildFile(name + ".lv2").copyDirectoryTo(outputFile.getChildFile(name + ".lv2"));
if (vst3)
outputFile.getChildFile("bin").getChildFile(name + ".vst3").copyDirectoryTo(outputFile.getChildFile(name + ".vst3"));
#if JUCE_WINDOWS
if (vst2)
#if JUCE_WINDOWS
outputFile.getChildFile("bin").getChildFile(name + "-vst.dll").moveFileTo(outputFile.getChildFile(name + "-vst.dll"));
#elif JUCE_LINUX
if (vst2)
outputFile.getChildFile("bin").getChildFile(name + "-vst.so").moveFileTo(outputFile.getChildFile(name + "-vst.so"));
#elif JUCE_MAC
if (vst2)
outputFile.getChildFile("bin").getChildFile(name + ".vst").copyDirectoryTo(outputFile.getChildFile(name + ".vst"));
#endif
if (clap)
outputFile.getChildFile("bin").getChildFile(name + ".clap").moveFileTo(outputFile.getChildFile(name + ".clap"));
if (jack)
#if JUCE_MAC
if (exportType == 2)
outputFile.getChildFile("bin").getChildFile(name + ".app").moveFileTo(outputFile.getChildFile(name + ".app"));
else
outputFile.getChildFile("bin").getChildFile(name).moveFileTo(outputFile.getChildFile(name));
#elif JUCE_WINDOWS
outputFile.getChildFile("bin").getChildFile(name + ".exe").moveFileTo(outputFile.getChildFile(name + ".exe"));
#else
outputFile.getChildFile("bin").getChildFile(name).moveFileTo(outputFile.getChildFile(name));
#endif

bool compilationExitCode = getExitCode();

Expand Down

0 comments on commit bd47f8b

Please sign in to comment.