Skip to content

Commit

Permalink
refactor: --self-contained is false if absent
Browse files Browse the repository at this point in the history
From the documentation[1], it is implied that --self-contained is true
only if you specify it. It doesn't get enabled without a flag.

Therefore, we don't need to specify it where we want it to be disabled.

[1]: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-publish
  • Loading branch information
shpaass committed Nov 21, 2024
1 parent 3750df6 commit 17d7fc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ echo "Building YAFC version $VERSION..."

dotnet publish Yafc/Yafc.csproj -r win-x64 -c Release -o Build/Windows
dotnet publish Yafc/Yafc.csproj -r win-x64 --self-contained -c Release -o Build/Windows-self-contained
dotnet publish Yafc/Yafc.csproj -r osx-x64 --self-contained false -c Release -o Build/OSX
dotnet publish Yafc/Yafc.csproj -r osx-arm64 --self-contained false -c Release -o Build/OSX-arm64
dotnet publish Yafc/Yafc.csproj -r linux-x64 --self-contained false -c Release -o Build/Linux
dotnet publish Yafc/Yafc.csproj -r osx-x64 -c Release -o Build/OSX
dotnet publish Yafc/Yafc.csproj -r osx-arm64 -c Release -o Build/OSX-arm64
dotnet publish Yafc/Yafc.csproj -r linux-x64 -c Release -o Build/Linux

echo "The libraries of this release were scanned on Virustotal, but we could not reproduce the checksums." > Build/OSX-arm64/_WARNING.TXT
echo "If you want to help with the checksums, please navigate to https://github.com/shpaass/yafc-ce/issues/274" >> Build/OSX-arm64/_WARNING.TXT
Expand Down

0 comments on commit 17d7fc3

Please sign in to comment.