mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2026-01-12 08:59:05 +08:00
* enable core dump on linux * prepare build flow for dumps * extract debug info and strip the binary * use msvc for windows builds * use mingw for legacy windows * fix cmake * keep the pdb * fix openssl root dir * disable IPO * remove debug info from qt build * handle debug files correctly * fix copy * fix copy again * clean up * finalize
33 lines
682 B
Bash
Executable File
33 lines
682 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if [[ $(uname -m) == 'aarch64' || $(uname -m) == 'arm64' ]]; then
|
|
ARCH="arm64"
|
|
else
|
|
ARCH="amd64"
|
|
fi
|
|
|
|
source script/env_deploy.sh
|
|
DEST=$DEPLOYMENT/linux-system-qt-$ARCH
|
|
rm -rf $DEST
|
|
mkdir -p $DEST
|
|
|
|
#### copy binary ####
|
|
cp $BUILD/Throne $DEST
|
|
|
|
#### copy Throne.png ####
|
|
cp ./res/public/Throne.png $DEST
|
|
|
|
#### copy Core ####
|
|
cd download-artifact
|
|
cd *linux-$ARCH
|
|
tar xvzf artifacts.tgz -C ../../
|
|
cd ../..
|
|
cp deployment/linux-$ARCH/Core $DEST
|
|
rm -rf deployment/linux-$ARCH
|
|
|
|
# handle debug info
|
|
objcopy --only-keep-debug $DEST/Throne $DEST/Throne.debug
|
|
strip --strip-debug --strip-unneeded $DEST/Throne
|
|
objcopy --add-gnu-debuglink=$DEST/Throne.debug $DEST/Throne
|