Skip to content

Commit 977cc81

Browse files
authored
fix(#478): ./build.sh works from clean source again. (#486)
This fixes #478, at least for ./build.sh. Attempts to use `dotnet run --project Yafc` from clean source are still broken, but it doesn't appear anyone is trying to do that. Other solutions I tried all seemed to have more pain than benefits: `dotnet build FactorioCalc.sln --target:Yafc:Publish -r win-x64` would try to run an explicitly x64 version of I18n.Generate on arm64 processors, or vice versa. Using project-level dependencies requires a #if to prevent introducing a warning, and adds extra files to the publish folders.
2 parents 7039c41 + 88bd5c1 commit 977cc81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ rm -rf Build
88
VERSION=$(grep -oPm1 "(?<=<AssemblyVersion>)[^<]+" Yafc/Yafc.csproj)
99
echo "Building YAFC version $VERSION..."
1010

11+
dotnet build Yafc.I18n.Generator
1112
dotnet publish Yafc/Yafc.csproj -r win-x64 -c Release -o Build/Windows
1213
dotnet publish Yafc/Yafc.csproj -r win-x64 --self-contained -c Release -o Build/Windows-self-contained
1314
dotnet publish Yafc/Yafc.csproj -r osx-x64 -c Release -o Build/OSX

0 commit comments

Comments
 (0)