From 6ba48d1b03900846092204c59628b58817c07bf9 Mon Sep 17 00:00:00 2001 From: Dorus Date: Fri, 20 Sep 2024 23:58:45 +0200 Subject: [PATCH] fix: Pin cpu platform fixes #299 --- .../CommandLineToolExample.csproj | 1 + FactorioCalc.sln | 82 +++++++++++++------ Yafc.Model.Tests/Yafc.Model.Tests.csproj | 1 + Yafc.Model/Yafc.Model.csproj | 1 + Yafc.Parser/Yafc.Parser.csproj | 1 + Yafc.UI/Yafc.UI.csproj | 1 + Yafc/Yafc.csproj | 1 + build.sh | 8 +- changelog.txt | 1 + 9 files changed, 67 insertions(+), 30 deletions(-) diff --git a/CommandLineToolExample/CommandLineToolExample.csproj b/CommandLineToolExample/CommandLineToolExample.csproj index 5d7d34f8..3ed07dd3 100644 --- a/CommandLineToolExample/CommandLineToolExample.csproj +++ b/CommandLineToolExample/CommandLineToolExample.csproj @@ -4,6 +4,7 @@ net8.0 YafcCommandLineToolExample Exe + x64;ARM64 diff --git a/FactorioCalc.sln b/FactorioCalc.sln index 477a63bc..9cc3618f 100644 --- a/FactorioCalc.sln +++ b/FactorioCalc.sln @@ -17,42 +17,72 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Yafc.Model.Tests", "Yafc.Mo EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D6A715CB-5C17-4DD7-9ADA-5D7F44FADFCF}" ProjectSection(SolutionItems) = preProject + build.sh = build.sh changelog.txt = changelog.txt Directory.Build.props = Directory.Build.props EndProjectSection EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU + Debug|ARM64 = Debug|ARM64 + Debug|x64 = Debug|x64 + Release|ARM64 = Release|ARM64 + Release|x64 = Release|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {73EBA162-A3BE-43CC-9B55-CA16332F439D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {73EBA162-A3BE-43CC-9B55-CA16332F439D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {73EBA162-A3BE-43CC-9B55-CA16332F439D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {73EBA162-A3BE-43CC-9B55-CA16332F439D}.Release|Any CPU.Build.0 = Release|Any CPU - {70F74D2B-9747-4185-B369-64F77BC8D0D5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {70F74D2B-9747-4185-B369-64F77BC8D0D5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {70F74D2B-9747-4185-B369-64F77BC8D0D5}.Release|Any CPU.ActiveCfg = Release|Any CPU - {70F74D2B-9747-4185-B369-64F77BC8D0D5}.Release|Any CPU.Build.0 = Release|Any CPU - {CED05634-9E9E-40EF-9A92-30C8650B14C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {CED05634-9E9E-40EF-9A92-30C8650B14C7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {CED05634-9E9E-40EF-9A92-30C8650B14C7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {CED05634-9E9E-40EF-9A92-30C8650B14C7}.Release|Any CPU.Build.0 = Release|Any CPU - {4B64D4DD-B6ED-457D-9000-EA0381585959}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4B64D4DD-B6ED-457D-9000-EA0381585959}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4B64D4DD-B6ED-457D-9000-EA0381585959}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4B64D4DD-B6ED-457D-9000-EA0381585959}.Release|Any CPU.Build.0 = Release|Any CPU - {57E8CAE8-A3F8-4532-B32F-09347852479E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {57E8CAE8-A3F8-4532-B32F-09347852479E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {57E8CAE8-A3F8-4532-B32F-09347852479E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {57E8CAE8-A3F8-4532-B32F-09347852479E}.Release|Any CPU.Build.0 = Release|Any CPU - {66B66728-84F0-4242-B49A-B9D746A3CCA5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {66B66728-84F0-4242-B49A-B9D746A3CCA5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {66B66728-84F0-4242-B49A-B9D746A3CCA5}.Release|Any CPU.ActiveCfg = Release|Any CPU - {66B66728-84F0-4242-B49A-B9D746A3CCA5}.Release|Any CPU.Build.0 = Release|Any CPU + {73EBA162-A3BE-43CC-9B55-CA16332F439D}.Debug|ARM64.ActiveCfg = Debug|ARM64 + {73EBA162-A3BE-43CC-9B55-CA16332F439D}.Debug|ARM64.Build.0 = Debug|ARM64 + {73EBA162-A3BE-43CC-9B55-CA16332F439D}.Debug|x64.ActiveCfg = Debug|x64 + {73EBA162-A3BE-43CC-9B55-CA16332F439D}.Debug|x64.Build.0 = Debug|x64 + {73EBA162-A3BE-43CC-9B55-CA16332F439D}.Release|ARM64.ActiveCfg = Release|ARM64 + {73EBA162-A3BE-43CC-9B55-CA16332F439D}.Release|ARM64.Build.0 = Release|ARM64 + {73EBA162-A3BE-43CC-9B55-CA16332F439D}.Release|x64.ActiveCfg = Release|x64 + {73EBA162-A3BE-43CC-9B55-CA16332F439D}.Release|x64.Build.0 = Release|x64 + {70F74D2B-9747-4185-B369-64F77BC8D0D5}.Debug|ARM64.ActiveCfg = Debug|ARM64 + {70F74D2B-9747-4185-B369-64F77BC8D0D5}.Debug|ARM64.Build.0 = Debug|ARM64 + {70F74D2B-9747-4185-B369-64F77BC8D0D5}.Debug|x64.ActiveCfg = Debug|x64 + {70F74D2B-9747-4185-B369-64F77BC8D0D5}.Debug|x64.Build.0 = Debug|x64 + {70F74D2B-9747-4185-B369-64F77BC8D0D5}.Release|ARM64.ActiveCfg = Release|ARM64 + {70F74D2B-9747-4185-B369-64F77BC8D0D5}.Release|ARM64.Build.0 = Release|ARM64 + {70F74D2B-9747-4185-B369-64F77BC8D0D5}.Release|x64.ActiveCfg = Release|x64 + {70F74D2B-9747-4185-B369-64F77BC8D0D5}.Release|x64.Build.0 = Release|x64 + {CED05634-9E9E-40EF-9A92-30C8650B14C7}.Debug|ARM64.ActiveCfg = Debug|ARM64 + {CED05634-9E9E-40EF-9A92-30C8650B14C7}.Debug|ARM64.Build.0 = Debug|ARM64 + {CED05634-9E9E-40EF-9A92-30C8650B14C7}.Debug|x64.ActiveCfg = Debug|x64 + {CED05634-9E9E-40EF-9A92-30C8650B14C7}.Debug|x64.Build.0 = Debug|x64 + {CED05634-9E9E-40EF-9A92-30C8650B14C7}.Release|ARM64.ActiveCfg = Release|ARM64 + {CED05634-9E9E-40EF-9A92-30C8650B14C7}.Release|ARM64.Build.0 = Release|ARM64 + {CED05634-9E9E-40EF-9A92-30C8650B14C7}.Release|x64.ActiveCfg = Release|x64 + {CED05634-9E9E-40EF-9A92-30C8650B14C7}.Release|x64.Build.0 = Release|x64 + {4B64D4DD-B6ED-457D-9000-EA0381585959}.Debug|ARM64.ActiveCfg = Debug|ARM64 + {4B64D4DD-B6ED-457D-9000-EA0381585959}.Debug|ARM64.Build.0 = Debug|ARM64 + {4B64D4DD-B6ED-457D-9000-EA0381585959}.Debug|x64.ActiveCfg = Debug|x64 + {4B64D4DD-B6ED-457D-9000-EA0381585959}.Debug|x64.Build.0 = Debug|x64 + {4B64D4DD-B6ED-457D-9000-EA0381585959}.Release|ARM64.ActiveCfg = Release|ARM64 + {4B64D4DD-B6ED-457D-9000-EA0381585959}.Release|ARM64.Build.0 = Release|ARM64 + {4B64D4DD-B6ED-457D-9000-EA0381585959}.Release|x64.ActiveCfg = Release|x64 + {4B64D4DD-B6ED-457D-9000-EA0381585959}.Release|x64.Build.0 = Release|x64 + {57E8CAE8-A3F8-4532-B32F-09347852479E}.Debug|ARM64.ActiveCfg = Debug|ARM64 + {57E8CAE8-A3F8-4532-B32F-09347852479E}.Debug|ARM64.Build.0 = Debug|ARM64 + {57E8CAE8-A3F8-4532-B32F-09347852479E}.Debug|x64.ActiveCfg = Debug|x64 + {57E8CAE8-A3F8-4532-B32F-09347852479E}.Debug|x64.Build.0 = Debug|x64 + {57E8CAE8-A3F8-4532-B32F-09347852479E}.Release|ARM64.ActiveCfg = Release|ARM64 + {57E8CAE8-A3F8-4532-B32F-09347852479E}.Release|ARM64.Build.0 = Release|ARM64 + {57E8CAE8-A3F8-4532-B32F-09347852479E}.Release|x64.ActiveCfg = Release|x64 + {57E8CAE8-A3F8-4532-B32F-09347852479E}.Release|x64.Build.0 = Release|x64 + {66B66728-84F0-4242-B49A-B9D746A3CCA5}.Debug|ARM64.ActiveCfg = Debug|ARM64 + {66B66728-84F0-4242-B49A-B9D746A3CCA5}.Debug|ARM64.Build.0 = Debug|ARM64 + {66B66728-84F0-4242-B49A-B9D746A3CCA5}.Debug|x64.ActiveCfg = Debug|x64 + {66B66728-84F0-4242-B49A-B9D746A3CCA5}.Debug|x64.Build.0 = Debug|x64 + {66B66728-84F0-4242-B49A-B9D746A3CCA5}.Release|ARM64.ActiveCfg = Release|ARM64 + {66B66728-84F0-4242-B49A-B9D746A3CCA5}.Release|ARM64.Build.0 = Release|ARM64 + {66B66728-84F0-4242-B49A-B9D746A3CCA5}.Release|x64.ActiveCfg = Release|x64 + {66B66728-84F0-4242-B49A-B9D746A3CCA5}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D5772B64-5E65-4533-BFE9-27051CDF1CB9} + EndGlobalSection EndGlobal diff --git a/Yafc.Model.Tests/Yafc.Model.Tests.csproj b/Yafc.Model.Tests/Yafc.Model.Tests.csproj index eb607963..7ea8e52a 100644 --- a/Yafc.Model.Tests/Yafc.Model.Tests.csproj +++ b/Yafc.Model.Tests/Yafc.Model.Tests.csproj @@ -2,6 +2,7 @@ net8.0 + x64;ARM64 diff --git a/Yafc.Model/Yafc.Model.csproj b/Yafc.Model/Yafc.Model.csproj index 189756ff..4f94cb73 100644 --- a/Yafc.Model/Yafc.Model.csproj +++ b/Yafc.Model/Yafc.Model.csproj @@ -4,6 +4,7 @@ net8.0 Yafc.Model enable + x64;ARM64 diff --git a/Yafc.Parser/Yafc.Parser.csproj b/Yafc.Parser/Yafc.Parser.csproj index 6a400f83..ff3632e6 100644 --- a/Yafc.Parser/Yafc.Parser.csproj +++ b/Yafc.Parser/Yafc.Parser.csproj @@ -5,6 +5,7 @@ Yafc.Parser win-x64;linux-x64;osx-x64;osx-arm64 enable + x64;ARM64 diff --git a/Yafc.UI/Yafc.UI.csproj b/Yafc.UI/Yafc.UI.csproj index 2bd0fd38..b3ffbeb2 100644 --- a/Yafc.UI/Yafc.UI.csproj +++ b/Yafc.UI/Yafc.UI.csproj @@ -5,6 +5,7 @@ true Yafc.UI enable + x64;ARM64 diff --git a/Yafc/Yafc.csproj b/Yafc/Yafc.csproj index 345a711b..5dea982d 100644 --- a/Yafc/Yafc.csproj +++ b/Yafc/Yafc.csproj @@ -8,6 +8,7 @@ true image.ico enable + x64;ARM64 diff --git a/build.sh b/build.sh index 740c7aab..221da922 100755 --- a/build.sh +++ b/build.sh @@ -8,10 +8,10 @@ rm -rf Build VERSION=$(grep -oPm1 "(?<=)[^<]+" Yafc/Yafc.csproj) echo "Building YAFC version $VERSION..." -dotnet publish Yafc/Yafc.csproj -r win-x64 -c Release -o Build/Windows -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 win-x64 -c Release -o Build/Windows -p:Platform=x64 +dotnet publish Yafc/Yafc.csproj -r osx-x64 --self-contained false -c Release -o Build/OSX -p:Platform=x64 +dotnet publish Yafc/Yafc.csproj -r osx-arm64 --self-contained false -c Release -o Build/OSX-arm64 -p:Platform=ARM64 +dotnet publish Yafc/Yafc.csproj -r linux-x64 --self-contained false -c Release -o Build/Linux -p:Platform=x64 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 diff --git a/changelog.txt b/changelog.txt index 402bde72..b486b618 100644 --- a/changelog.txt +++ b/changelog.txt @@ -28,6 +28,7 @@ Date: Internal changes: - Allow tooltips to be displayed when hovering over radio buttons. - Require parentheses when mixing && and || in the same expression. + - Set cpu platform during build ---------------------------------------------------------------------------------------------------------------------- Version: 0.9.1 Date: September 8th 2024