further mac updates

This commit is contained in:
nik gaffney 2022-09-26 18:20:56 +02:00
parent 108029b6f9
commit 2cd44183b9

View File

@ -72,7 +72,7 @@ Install libraries for the sample engine (use brew on mac, MinGW on win):
$ sudo apt install libsndfile1-dev portaudio19-dev liblo-dev libfftw3-dev
Install dependancies for the interface:
Install dependencies for the interface:
$ sudo apt install build-essential qtcreator qt5-default
@ -90,7 +90,7 @@ Install libraries for sample engine:
$ brew install fftw portaudio liblo libsndfile
Install dependancies for the interface:
Install dependencies for the interface:
$ brew install qt
$ brew link qt
@ -108,23 +108,21 @@ Build & run it:
To make a mac app bundle:
Run `macdeployqt` to copy all dependencies inside the app.
Create Mac app bundle:
Run `macdeployqt` which copies all dependencies inside the app.
$ cd build
$ macdeployqt
Copy desktop/samplebrain.icns (the icon) to the Resources directory in the bundle.
If the icon is not visible, you might need to copy desktop/samplebrain.icns (the icon) to the Resources directory in the app bundle.
$ cp ../desktop/samplebrain.icns samplebrain.app/Contents/Resources
Edit Info.plist to add samplebrain.icns to CFBundleIconFile. Key `CFBundleIconFile` should match:
Then edit Info.plist to add samplebrain.icns to CFBundleIconFile. Key `CFBundleIconFile` should match:
<key>CFBundleIconFile</key>
<string>samplebrain.icns</string>
You might also need to resign the app bundle
You might also need to resign the app bundle after making any changes
$ codesign --force --deep --sign - samplebrain.app