Skip to content

Commit

Permalink
🚀 fix mac build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Reverier-Xu committed Apr 8, 2024
1 parent 9e84842 commit 808d658
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions deploy_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,6 @@ esac
shift # skip argument or value
done

## APP INSTALL #################################################################

echo '---- Running make install'
mkdir -p dist
APP_ROOT=dist
install ./build/bin/wsrx ./build/bin/wsrx-desktop "${APP_ROOT}/"

## DEPLOY ######################################################################

CPU_ARCH=$(uname -m)
Expand All @@ -65,9 +58,9 @@ else
fi

echo '---- Running macdeployqt'
cd $APP_ROOT
cp build/bin/wsrx build/bin/wsrx-desktop.app/Contents/MacOS/wsrx
cp -r build/bin/wsrx-desktop.app $APP_NAME.app
macdeployqt $APP_NAME.app -qmldir=../desktop/components -qmldir=../desktop/ui -hardened-runtime -timestamp -appstore-compliant -dmg
cd ..

#echo '---- Installation directory content recap (after macdeployqt):'
#find bin/
Expand All @@ -76,9 +69,7 @@ cd ..

if [[ $create_package = true ]] ; then
echo '---- Compressing package'
cd $APP_ROOT
zip -r -y -X ../$APP_NAME-$APP_VERSION-macOS-$CPU_ARCH.zip $APP_NAME.app
cd ..
zip -r -y -X $APP_NAME-$APP_VERSION-macOS-$CPU_ARCH.zip $APP_NAME.app
fi

## UPLOAD ######################################################################
Expand Down

0 comments on commit 808d658

Please sign in to comment.