Skip to content

Commit

Permalink
Merge pull request #162 from smoogipoo/add-self-contained
Browse files Browse the repository at this point in the history
Add `--self-contained` to publish command
  • Loading branch information
peppy authored Feb 19, 2024
2 parents 81ab810 + a42c874 commit d56264e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public static void Main(string[] args)
if (lastRelease != null)
getAssetsFromRelease(lastRelease);

runCommand("dotnet", $"publish -f net8.0 -r win-x64 {ProjectName} -o \"{stagingPath}\" --configuration Release /p:Version={version}");
runCommand("dotnet", $"publish -f net8.0 -r win-x64 {ProjectName} -o \"{stagingPath}\" --configuration Release /p:Version={version} --self-contained");

// add icon to dotnet stub
runCommand("tools/rcedit-x64.exe", $"\"{stagingPath}\\osu!.exe\" --set-icon \"{iconPath}\"");
Expand Down Expand Up @@ -370,7 +370,7 @@ private static void buildForMac(string arch, string version)
// without touching the app bundle itself, changes to file associations / icons / etc. will be cached at a macOS level and not updated.
runCommand("touch", $"\"{Path.Combine(stagingPath, "osu!.app")}\" {stagingPath}", false);

runCommand("dotnet", $"publish -f net8.0 -r osx-{arch} {ProjectName} --configuration Release -o {stagingPath}/osu!.app/Contents/MacOS /p:Version={version}");
runCommand("dotnet", $"publish -f net8.0 -r osx-{arch} {ProjectName} --configuration Release -o {stagingPath}/osu!.app/Contents/MacOS /p:Version={version} --self-contained");

string stagingApp = $"{stagingPath}/osu!.app";
string archLabel = arch == "x64" ? "Intel" : "Apple Silicon";
Expand Down

0 comments on commit d56264e

Please sign in to comment.