From 108029b6f994ff23c4cff9050884e07eddd2d617 Mon Sep 17 00:00:00 2001 From: nik gaffney Date: Mon, 26 Sep 2022 18:15:58 +0200 Subject: [PATCH 1/3] macos build updates --- README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5c89660..68cf14f 100644 --- a/README.md +++ b/README.md @@ -49,13 +49,13 @@ Security & Privacy > General. At the bottom of the window, select "Allow apps to be downloaded from Anywhere". Windows note: Some people are reporting problems with windows 11. - + # Old/broken/spurious binaries - -* **Windows* *: [samplebrain_0.18_win.zip](https://static.thentrythis.org/samplebrain/samplebrain_0.18_win.zip) + +* **Windows**: [samplebrain_0.18_win.zip](https://static.thentrythis.org/samplebrain/samplebrain_0.18_win.zip) * **Mac (intel)**: [samplebrain_0.18_macintel.zip](https://static.thentrythis.org/samplebrain/samplebrain_0.18_macintel.zip) * **Mac (m1)**: [samplebrain_0.18_m1_v2.dmg](https://static.thentrythis.org/samplebrain/samplebrain_0.18_m1_v2.dmg) - + **Linux install (Ubuntu)** $ sudo add-apt-repository ppa:thentrythis/samplebrain @@ -88,7 +88,7 @@ Build & run it: ## Mac Install libraries for sample engine: - $ brew install fftw portaudio liblo + $ brew install fftw portaudio liblo libsndfile Install dependancies for the interface: @@ -124,6 +124,10 @@ Edit Info.plist to add samplebrain.icns to CFBundleIconFile. Key `CFBundleIconFi CFBundleIconFile samplebrain.icns +You might also need to resign the app bundle + + $ codesign --force --deep --sign - samplebrain.app + ## What's here 1. brain: From 2cd44183b9da756255e609e2a9d8d76aad6e4ff6 Mon Sep 17 00:00:00 2001 From: nik gaffney Date: Mon, 26 Sep 2022 18:20:56 +0200 Subject: [PATCH 2/3] further mac updates --- README.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 68cf14f..907cc42 100644 --- a/README.md +++ b/README.md @@ -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: CFBundleIconFile samplebrain.icns -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 From defee25db77a20383f0fab4638c6cd7ed1b77fdf Mon Sep 17 00:00:00 2001 From: nik gaffney Date: Mon, 26 Sep 2022 18:32:40 +0200 Subject: [PATCH 3/3] added ICON --- samplebrain.pro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samplebrain.pro b/samplebrain.pro index 19d082a..c7df563 100644 --- a/samplebrain.pro +++ b/samplebrain.pro @@ -49,7 +49,8 @@ LIBS += -L.. -L/usr/local/lib -L/opt/homebrew/lib -lportaudio -lfftw3 -lsndfile QMAKE_CXXFLAGS += -O3 -Wall -Wno-unused -std=c++11 # assets -RESOURCES = app/samplebrain.qrc +RESOURCES = app/samplebrain.qrc +ICON = desktop/samplebrain.icns PREFIX = $$(PREFIX) isEmpty(PREFIX) {