Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Yafc.I18n/Yafc.I18n.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Yafc.I18n.Generator\Yafc.I18n.Generator.csproj" PrivateAssets="all" ReferenceOutputAssembly="false" />
<!--Explicitly include the autogenerated files. This makes sure the build will succeed even if they don't exist when the build starts.-->
<Compile Include="LocalizableStringClasses.g.cs" Condition="!Exists('LocalizableStringClasses.g.cs')" />
<Compile Include="LocalizableStrings.g.cs" Condition="!Exists('LocalizableStrings.g.cs')" />
Expand Down
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ rm -rf Build
VERSION=$(grep -oPm1 "(?<=<AssemblyVersion>)[^<]+" Yafc/Yafc.csproj)
echo "Building YAFC version $VERSION..."

dotnet build Yafc.I18n.Generator
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 -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

find Build -name "Yafc.I18n.Generator*" -print0 | xargs -0 rm

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
Loading