mirror of
https://github.com/cyanfish/naps2.git
synced 2024-10-26 17:11:21 +03:00
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:
parent
8a011401c3
commit
8e9fcebf85
@ -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
|
||||
|
@ -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");
|
||||
|
||||
|
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user