Skip to content

Commit

Permalink
Gtk: Always clean before publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanfish committed Jan 1, 2024
1 parent 5b94b54 commit fe7210e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAPS2.Tools/Project/Packaging/DebPackager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public static void PackageDeb(PackageInfo pkgInfo)

Output.Verbose("Building binaries");
var runtimeId = pkgInfo.Platform == Platform.LinuxArm ? "linux-arm64" : "linux-x64";
Cli.Run("dotnet", $"clean NAPS2.App.Gtk -c Release -r {runtimeId}");
Cli.Run("dotnet", $"publish NAPS2.App.Gtk -c Release -r {runtimeId} --self-contained /p:DebugType=None /p:DebugSymbols=false");

Output.Verbose("Creating package");
Expand Down
1 change: 1 addition & 0 deletions NAPS2.Tools/Project/Packaging/RpmPackager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public static void PackageRpm(PackageInfo pkgInfo)

Output.Verbose("Building binaries");
var runtimeId = pkgInfo.Platform == Platform.LinuxArm ? "linux-arm64" : "linux-x64";
Cli.Run("dotnet", $"clean NAPS2.App.Gtk -c Release -r {runtimeId}");
Cli.Run("dotnet", $"publish NAPS2.App.Gtk -c Release -r {runtimeId} --self-contained /p:DebugType=None /p:DebugSymbols=false");

Output.Verbose("Creating package");
Expand Down

0 comments on commit fe7210e

Please sign in to comment.