wip: macOS build

This commit is contained in:
arm64v8a
2022-10-16 22:19:00 +08:00
parent 88012cb9d2
commit b46cd2da3d
8 changed files with 79 additions and 51 deletions

21
libs/deploy_macos.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
set -e
if [[ $(uname -m) == 'arm64' ]]; then
ARCH="arm64"
else
ARCH="amd64"
fi
source libs/deploy_common.sh
DEST=$DEPLOYMENT/macos-$ARCH
rm -rf $DEST
mkdir -p $DEST
#### deploy qt & DLL runtime => dmg ####
pushd $BUILD
macdeployqt nekoray.app -dmg -verbose=3
popd
#### copy dmg ####
cp $BUILD/*.dmg $DEST