update build script

This commit is contained in:
arm64v8a
2022-08-08 11:07:29 +08:00
parent fac593b803
commit 8031c68038
13 changed files with 163 additions and 104 deletions

View File

@@ -2,9 +2,9 @@
set -e
source libs/deploy_common.sh
#### updater to launcher ####
mv $DEST/updater $DEST/launcher
DEST=$DEPLOYMENT/linux64
rm -rf $DEST
mkdir -p $DEST
#### copy binary ####
cp $BUILD/nekoray $DEST
@@ -12,13 +12,5 @@ cp $BUILD/nekoray $DEST
#### Download: prebuilt runtime ####
curl -Lso usr.zip https://github.com/MatsuriDayo/nekoray_qt_runtime/releases/download/20220503/20220705-5.15.2-linux64.zip
unzip usr.zip
rm usr.zip
mv usr $DEST
#### copy runtime ####
LIB=$SRC_ROOT/libs/deps/built/lib
#cp $LIB/libZXing.so.1 $DEST/usr/lib
#### pack tar ####
chmod +x $DEST/nekoray $DEST/nekoray_core $DEST/launcher
tar cvzf $SRC_ROOT/deployment/$version_standalone-linux64.tar.gz -C $SRC_ROOT/deployment nekoray
rm -rf $DEST $BUILD