FRESHMusicPlayer/Distribution/build-macos.sh
2021-05-02 21:41:37 +10:00

18 lines
No EOL
483 B
Bash
Executable file

#!/bin/bash
cd ..
APP_BUNDLE=Distribution/FRESHMusicPlayer.app
RESOURCES_BUNDLE=$APP_BUNDLE/Contents/Resources
rm -rf $APP_BUNDLE || true
pushd FRESHMusicPlayer/FRESHMusicPlayer-Avalonia
dotnet publish -r osx-x64
popd
mkdir -p $APP_BUNDLE/Contents/MacOS
cp -r "FRESHMusicPlayer/FRESHMusicPlayer-Avalonia/bin/Debug/net5.0/osx-x64/"* $APP_BUNDLE/Contents/MacOS
mkdir -p $RESOURCES_BUNDLE
cp Distribution/icon.icns $RESOURCES_BUNDLE
cp Distribution/Info.plist $APP_BUNDLE/Contents/