From 6826565cfd46f9b46b7c76722d1c86fbba0ed5c0 Mon Sep 17 00:00:00 2001
From: Li
Date: Wed, 22 Jun 2022 22:11:25 +1200
Subject: [PATCH] Native build arm64
---
.github/workflows/build.yml | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 53a4b9e..abb8cd0 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -60,8 +60,17 @@ jobs:
- name: Build win-arm64
continue-on-error: false
run: |
- dotnet publish -p:PublishProfile=WinARM64.pubxml
-
+ dotnet add HISPd package Microsoft.DotNet.ILCompiler --prerelease
+ dotnet publish -r win-arm64 -c Windows /p:Platform=ARM64 --self-contained
+ mkdir "HISPd\bin\ARM64\Windows\net7.0\win-arm64\native\gamedata"
+ copy "..\HorseIsleData\gamedata\*" "HISPd\bin\ARM64\Windows\net7.0\win-arm64\native\gamedata"
+ copy "..\HorseIsleData\HI1.MAP" "HISPd\bin\ARM64\Windows\net7.0\win-arm64\native\HI1.MAP"
+ copy "HISPd\bin\ARM64\Windows\net7.0\win-arm64\e_sqlite3.dll" "HISPd\bin\ARM64\Windows\net7.0\win-arm64\native\e_sqlite3.dll"
+ del "HISPd\bin\ARM64\Windows\net7.0\win-arm64\native\HISPd.pdb"
+ del "HISPd\bin\ARM64\Windows\net7.0\win-arm64\native\HISPd.lib"
+ del "HISPd\bin\ARM64\Windows\net7.0\win-arm64\native\HISPd.exp"
+ dotnet remove HISPd package Microsoft.DotNet.ILCompiler
+
- name: Build linux-x64
continue-on-error: false
run: |