nekoray_Mahdi-zarei/script/deploy_linux64_system_qt.sh
Mahdi 70866e3d3c
Properly export debug info (#1060)
* 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
2025-12-30 02:25:26 -08:00

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