Remove debug symbols from Linux packages

These are mostly unnecessary and include my personal file paths in the output, which isn't great.
This commit is contained in:
Ben Olden-Cooligan 2023-04-21 22:45:53 -07:00
parent 8a011401c3
commit 8e9fcebf85
3 changed files with 3 additions and 3 deletions

View File

@ -96,7 +96,7 @@ modules:
RUNTIME: linux-x64
build-commands:
- mkdir -p /app/bin
- dotnet publish NAPS2.App.Gtk -c Release -r $RUNTIME --self-contained --source ./nuget-sources
- dotnet publish NAPS2.App.Gtk -c Release -r $RUNTIME --self-contained /p:DebugType=None /p:DebugSymbols=false --source ./nuget-sources
- cp -r --remove-destination /run/build/main/NAPS2.App.Gtk/bin/Release/net6/$RUNTIME/publish/. /app/bin/
- install -Dm644 com.naps2.Naps2.png /app/share/icons/hicolor/128x128/apps/com.naps2.Naps2.png
- install -Dm644 com.naps2.Naps2.metainfo.xml /app/share/metainfo/com.naps2.Naps2.metainfo.xml

View File

@ -11,7 +11,7 @@ public static class DebPackager
Output.Verbose("Building binaries");
var runtimeId = pkgInfo.Platform == Platform.LinuxArm ? "linux-arm64" : "linux-x64";
Cli.Run("dotnet", $"publish NAPS2.App.Gtk -c Release -r {runtimeId} --self-contained");
Cli.Run("dotnet", $"publish NAPS2.App.Gtk -c Release -r {runtimeId} --self-contained /p:DebugType=None /p:DebugSymbols=false");
Output.Verbose("Creating package");

View File

@ -11,7 +11,7 @@ public static class RpmPackager
Output.Verbose("Building binaries");
var runtimeId = pkgInfo.Platform == Platform.LinuxArm ? "linux-arm64" : "linux-x64";
Cli.Run("dotnet", $"publish NAPS2.App.Gtk -c Release -r {runtimeId} --self-contained");
Cli.Run("dotnet", $"publish NAPS2.App.Gtk -c Release -r {runtimeId} --self-contained /p:DebugType=None /p:DebugSymbols=false");
Output.Verbose("Creating package");