From 808d65810af1a85d65504058bbc69470d81340d3 Mon Sep 17 00:00:00 2001 From: Reverier-Xu Date: Tue, 9 Apr 2024 00:25:01 +0800 Subject: [PATCH] :rocket: fix mac build script --- deploy_macos.sh | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/deploy_macos.sh b/deploy_macos.sh index cafe6f0..a51d900 100755 --- a/deploy_macos.sh +++ b/deploy_macos.sh @@ -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) @@ -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/ @@ -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 ######################################################################