From f9ef53339d914849a8088b49db9d9fffe095a4b7 Mon Sep 17 00:00:00 2001 From: Li Date: Tue, 21 Jun 2022 15:17:50 +1200 Subject: [PATCH] native build x86 --- .github/workflows/build.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e4e4c3..1edfd73 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,8 +46,13 @@ jobs: - name: Build win-x86 continue-on-error: false run: | - dotnet publish -p:PublishProfile=Win32.pubxml - + dotnet add HISPd package Microsoft.DotNet.ILCompiler --prerelease + dotnet publish -r win-x86 -c Windows --self-contained + mkdir "HISPd\bin\x86\Windows\net7.0\win-x86\native\gamedata" + copy "..\HorseIsleData\gamedata\*" "HISPd\bin\x86\Windows\net7.0\win-x86\native\gamedata" + copy "..\HorseIsleData\HI1.MAP" "HISPd\bin\x86\Windows\net7.0\win-x86\native\HI1.MAP" + copy "HISPd\bin\x86\Windows\net7.0\win-x86\e_sqlite3.dll" "HISPd\bin\x86\Windows\net7.0\win-x86\native\e_sqlite3.dll" + dotnet remove HISPd package Microsoft.DotNet.ILCompiler - name: Build win-arm continue-on-error: false run: | @@ -141,7 +146,7 @@ jobs: uses: actions/upload-artifact@v2 with: name: HISP-Win32 - path: HorseIsleServer\HISPd\bin\x86\Windows\net7.0\win-x86\publish\ + path: HorseIsleServer\HISPd\bin\x86\Windows\net7.0\win-x86\native\ - name: Upload win-arm uses: actions/upload-artifact@v2