fix dependency packaging for Mac OS

This commit is contained in:
Drew Weymouth
2023-03-21 20:11:04 -07:00
parent 6cad6390e4
commit 34bcf7e566
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -8,6 +8,7 @@
### Fixed ### Fixed
- [#90](https://github.com/dweymouth/supersonic/issues/90) Wrong covers get loaded for albums if server has different IDs for album and cover art - [#90](https://github.com/dweymouth/supersonic/issues/90) Wrong covers get loaded for albums if server has different IDs for album and cover art
- [#88](https://github.com/dweymouth/supersonic/issues/88) Incorrect icon size for Mac OS - [#88](https://github.com/dweymouth/supersonic/issues/88) Incorrect icon size for Mac OS
[#87](https://github.com/dweymouth/supersonic/issues/87) Fix dependency bundling for Mac OS
## [0.0.1-alpha2] - 2023-03-17 ## [0.0.1-alpha2] - 2023-03-17
+6
View File
@@ -5,9 +5,15 @@ app_name = Supersonic
build: build:
go build go build
# dylibbundler doesn't seem to pick up on the Python framework dependency,
# so the last 3 cmds move it over manually. This is a bit fragile though
# since it assumes a specific location and version of the dependency
package_macos: package_macos:
fyne package -os darwin -name $(app_name) -icon $(icon_path_mac) fyne package -os darwin -name $(app_name) -icon $(icon_path_mac)
dylibbundler -od -b -x ./Supersonic.app/Contents/MacOS/supersonic -d ./Supersonic.app/Contents/Frameworks/ -p @executable_path/../Frameworks/ dylibbundler -od -b -x ./Supersonic.app/Contents/MacOS/supersonic -d ./Supersonic.app/Contents/Frameworks/ -p @executable_path/../Frameworks/
install_name_tool -change "/usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/Python" "@executable_path/../Frameworks/Python" "./Supersonic.app/Contents/Frameworks/libvapoursynth-script.0.dylib"
cp /usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/Python ./Supersonic.app/Contents/Frameworks
codesign --force --deep --preserve-metadata=entitlements,requirements,flags,runtime --sign - "./Supersonic.app/Contents/MacOS/supersonic"
package_windows: package_windows:
fyne package -os windows -name $(app_name) -icon $(icon_path) fyne package -os windows -name $(app_name) -icon $(icon_path)