mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
36 lines
639 B
Bash
Executable File
36 lines
639 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
source script/env_deploy.sh
|
|
if [[ $1 == 'arm64' ]]; then
|
|
ARCH="arm64"
|
|
DEST=$DEPLOYMENT/macos-arm64
|
|
else
|
|
ARCH="amd64"
|
|
if [[ $1 == 'x86_64' ]]; then
|
|
DEST=$DEPLOYMENT/macos-amd64
|
|
else
|
|
DEST=$DEPLOYMENT/macoslegacy-amd64
|
|
fi
|
|
fi
|
|
|
|
rm -rf $DEST
|
|
mkdir -p $DEST
|
|
|
|
#### copy golang => .app ####
|
|
cd download-artifact
|
|
cd *darwin-$ARCH
|
|
tar xvzf artifacts.tgz -C ../../
|
|
cd ../..
|
|
|
|
mv deployment/macos-$ARCH/* $BUILD/Throne.app/Contents/MacOS
|
|
|
|
#### deploy qt & DLL runtime => .app ####
|
|
pushd $BUILD
|
|
macdeployqt Throne.app -verbose=3
|
|
popd
|
|
|
|
codesign --force --deep --sign - $BUILD/Throne.app
|
|
|
|
mv $BUILD/Throne.app $DEST
|