Upload debug symbols for Linux artifact

This commit is contained in:
ROllerozxa 2024-12-05 16:08:59 +01:00
commit 7085fbabe3
2 changed files with 14 additions and 3 deletions

View file

@ -17,11 +17,16 @@ fi
# Remove old appdir
rm -rf AppDir
# Compile and install into AppDir
cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=AppDir/usr/
# Compile
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=AppDir/usr/
ninja
ninja install
# Strip binary and create debug symbol file
objcopy --only-keep-debug principia principia.debug
objcopy --strip-debug --add-gnu-debuglink=principia.debug principia
# Install into AppDir
ninja install
cd AppDir
# Put desktop and icon at root