From 0394d5fb9f9c68fb5ee6a1a59cc48c351f3883d0 Mon Sep 17 00:00:00 2001
From: Li
Date: Sun, 17 Jul 2022 16:39:07 +1200
Subject: [PATCH] Update build.yml
---
.github/workflows/build.yml | 67 +++++++++----------
HorseIsleServer/HISPd/HISPd.csproj | 4 --
.../HISPd/Resources/DEBIAN/control | 2 +-
HorseIsleServer/LibHISP/LibHISP.csproj | 4 +-
HorseIsleServer/LibHISP/LibHISP.csproj.user | 6 --
.../LibHISP/Properties/AssemblyInfo.cs | 4 +-
HorseIsleServer/N00BS/N00BS.csproj | 4 --
.../N00BS/Properties/AssemblyInfo.cs | 4 +-
8 files changed, 40 insertions(+), 55 deletions(-)
delete mode 100644 HorseIsleServer/LibHISP/LibHISP.csproj.user
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 315db3c..8801277 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -38,7 +38,7 @@ jobs:
mkdir -p "HISPd/bin/x64/Linux/net7.0/linux-x64/native/gamedata"
cp -r "../../HorseIsleData/gamedata" "HISPd/bin/x64/Linux/net7.0/linux-x64/native"
cp "../../HorseIsleData/HI1.MAP" "HISPd/bin/x64/Linux/net7.0/linux-x64/native/HI1.MAP"
- cp "HISPd/bin/x64/Linux/net7.0/linux-x64/e_sqlite3.so" "HISPd/bin/x64/Linux/net7.0/linux-x64/native/e_sqlite3.so"
+ cp "HISPd/bin/x64/Linux/net7.0/linux-x64/publish/e_sqlite3.so" "HISPd/bin/x64/Linux/net7.0/linux-x64/native/e_sqlite3.so"
rm -f "HISPd/bin/x64/Linux/net7.0/linux-x64/native/HISPd.pdb"
rm -f "HISPd/bin/x64/Linux/net7.0/linux-x64/native/HISPd.lib"
rm -f "HISPd/bin/x64/Linux/net7.0/linux-x64/native/HISPd.exp"
@@ -63,38 +63,37 @@ jobs:
run: |
apt update
apt install -y dos2unix
- mkdir /mnt/debpkg
- mount -t tmpfs -o size=800M tmpfs /mnt/debpkg
- mkdir /mnt/debpkg/Debian64
- mkdir /mnt/debpkg/Debian64/etc
- mkdir /mnt/debpkg/Debian64/usr
- mkdir /mnt/debpkg/Debian64/etc/hisp
- mkdir /mnt/debpkg/Debian64/etc/hisp/gamedata
- mkdir /mnt/debpkg/Debian64/etc/systemd
- mkdir /mnt/debpkg/Debian64/etc/systemd/system
- mkdir /mnt/debpkg/Debian64/usr/bin
- mkdir /mnt/debpkg/Debian64/usr/lib
- mkdir /mnt/debpkg/Debian64/DEBIAN
- cp LibHISP/Resources/server.properties /mnt/debpkg/Debian64/etc/hisp/server.properties
- cp LibHISP/Resources/default_cross_domain.xml /mnt/debpkg/Debian64/etc/hisp/CrossDomainPolicy.xml
- cp -r HISPd/Resources/DEBIAN/* /mnt/debpkg/Debian64/DEBIAN
- cp -r HISPd/bin/x64/Linux/net7.0/linux-x64/publish/gamedata/* /mnt/debpkg/Debian64/etc/hisp/gamedata
- cp HISPd/bin/x64/Linux/net7.0/linux-x64/publish/libe_sqlite3.so /mnt/debpkg/Debian64/usr/lib/libe_sqlite3.so
- cp HISPd/bin/x64/Linux/net7.0/linux-x64/publish/HI1.MAP /mnt/debpkg/Debian64/etc/hisp/HI1.MAP
- cp HISPd/bin/x64/Linux/net7.0/linux-x64/publish/HISPd /mnt/debpkg/Debian64/usr/bin/HISPd
- cp HISPd/Resources/HISP.service /mnt/debpkg/Debian64/etc/systemd/system/HISP.service
- cat /mnt/debpkg/Debian64/DEBIAN/control
- dos2unix /mnt/debpkg/Debian64/DEBIAN/conffiles
- dos2unix /mnt/debpkg/Debian64/DEBIAN/control
- dos2unix /mnt/debpkg/Debian64/DEBIAN/postinst
- dos2unix /mnt/debpkg/Debian64/DEBIAN/postrm
- dos2unix /mnt/debpkg/Debian64/DEBIAN/prerm
- dos2unix /mnt/debpkg/Debian64/etc/systemd/system/HISP.service
- chmod 755 -R /mnt/debpkg/Debian64
- chmod +x /mnt/debpkg/Debian64/usr/bin/HISPd
+ mkdir /tmp/debpkg
+ mkdir /tmp/debpkg/Debian64
+ mkdir /tmp/debpkg/Debian64/etc
+ mkdir /tmp/debpkg/Debian64/usr
+ mkdir /tmp/debpkg/Debian64/etc/hisp
+ mkdir /tmp/debpkg/Debian64/etc/hisp/gamedata
+ mkdir /tmp/debpkg/Debian64/etc/systemd
+ mkdir /tmp/debpkg/Debian64/etc/systemd/system
+ mkdir /tmp/debpkg/Debian64/usr/bin
+ mkdir /tmp/debpkg/Debian64/usr/lib
+ mkdir /tmp/debpkg/Debian64/DEBIAN
+ cp LibHISP/Resources/server.properties /tmp/debpkg/Debian64/etc/hisp/server.properties
+ cp LibHISP/Resources/default_cross_domain.xml /tmp/debpkg/Debian64/etc/hisp/CrossDomainPolicy.xml
+ cp -r HISPd/Resources/DEBIAN/* /tmp/debpkg/Debian64/DEBIAN
+ cp -r HISPd/bin/x64/Linux/net7.0/linux-x64/publish/gamedata/* /tmp/debpkg/Debian64/etc/hisp/gamedata
+ cp HISPd/bin/x64/Linux/net7.0/linux-x64/publish/libe_sqlite3.so /tmp/debpkg/Debian64/usr/lib/libe_sqlite3.so
+ cp HISPd/bin/x64/Linux/net7.0/linux-x64/publish/HI1.MAP /tmp/debpkg/Debian64/etc/hisp/HI1.MAP
+ cp HISPd/bin/x64/Linux/net7.0/linux-x64/publish/HISPd /tmp/debpkg/Debian64/usr/bin/HISPd
+ cp HISPd/Resources/HISP.service /tmp/debpkg/Debian64/etc/systemd/system/HISP.service
+ cat /tmp/debpkg/Debian64/DEBIAN/control
+ dos2unix /tmp/debpkg/Debian64/DEBIAN/conffiles
+ dos2unix /tmp/debpkg/Debian64/DEBIAN/control
+ dos2unix /tmp/debpkg/Debian64/DEBIAN/postinst
+ dos2unix /tmp/debpkg/Debian64/DEBIAN/postrm
+ dos2unix /tmp/debpkg/Debian64/DEBIAN/prerm
+ dos2unix /tmp/debpkg/Debian64/etc/systemd/system/HISP.service
+ chmod 755 -R /tmp/debpkg/Debian64
+ chmod +x /tmp/debpkg/Debian64/usr/bin/HISPd
mkdir debpackage
- dpkg-deb --build /mnt/debpkg/Debian64
- mv /mnt/debpkg/Debian64.deb debpackage/HISP-Debian-AMD64.deb
+ dpkg-deb --build /tmp/debpkg/Debian64
+ mv /tmp/debpkg/Debian64.deb debpackage/HISP-Debian-AMD64.deb
#android .. maybe someday
@@ -176,7 +175,7 @@ jobs:
mkdir "HISPd\bin\x64\Windows\net7.0\win-x64\native\gamedata"
copy "..\HorseIsleData\gamedata\*" "HISPd\bin\x64\Windows\net7.0\win-x64\native\gamedata"
copy "..\HorseIsleData\HI1.MAP" "HISPd\bin\x64\Windows\net7.0\win-x64\native\HI1.MAP"
- copy "HISPd\bin\x64\Windows\net7.0\win-x64\e_sqlite3.dll" "HISPd\bin\x64\Windows\net7.0\win-x64\native\e_sqlite3.dll"
+ copy "HISPd\bin\x64\Windows\net7.0\win-x64\publish\e_sqlite3.dll" "HISPd\bin\x64\Windows\net7.0\win-x64\native\e_sqlite3.dll"
del "HISPd\bin\x64\Windows\net7.0\win-x64\native\HISPd.pdb"
del "HISPd\bin\x64\Windows\net7.0\win-x64\native\HISPd.lib"
del "HISPd\bin\x64\Windows\net7.0\win-x64\native\HISPd.exp"
@@ -201,7 +200,7 @@ jobs:
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"
+ copy "HISPd\bin\ARM64\Windows\net7.0\win-arm64\publish\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"
diff --git a/HorseIsleServer/HISPd/HISPd.csproj b/HorseIsleServer/HISPd/HISPd.csproj
index fc0ec87..aa7f725 100644
--- a/HorseIsleServer/HISPd/HISPd.csproj
+++ b/HorseIsleServer/HISPd/HISPd.csproj
@@ -22,10 +22,6 @@
Resources.Designer.cs
-
-
-
-
false
false
diff --git a/HorseIsleServer/HISPd/Resources/DEBIAN/control b/HorseIsleServer/HISPd/Resources/DEBIAN/control
index 135d66a..a9ad9c4 100644
--- a/HorseIsleServer/HISPd/Resources/DEBIAN/control
+++ b/HorseIsleServer/HISPd/Resources/DEBIAN/control
@@ -1,5 +1,5 @@
Package: hisp
-Version: 1.7.48
+Version: 1.7.59
Depends: coreutils,systemd,mariadb-server,libsqlite3-dev,zlib1g-dev,libicu-dev,libkrb5-dev
Maintainer: Li
Homepage: https://islehorse.com
diff --git a/HorseIsleServer/LibHISP/LibHISP.csproj b/HorseIsleServer/LibHISP/LibHISP.csproj
index ad29113..050c615 100644
--- a/HorseIsleServer/LibHISP/LibHISP.csproj
+++ b/HorseIsleServer/LibHISP/LibHISP.csproj
@@ -28,8 +28,8 @@
-
-
+
+
diff --git a/HorseIsleServer/LibHISP/LibHISP.csproj.user b/HorseIsleServer/LibHISP/LibHISP.csproj.user
deleted file mode 100644
index 8df2096..0000000
--- a/HorseIsleServer/LibHISP/LibHISP.csproj.user
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
- <_LastSelectedProfileId>C:\Users\Li\Documents\git\HISP\HorseIsleServer\LibHISP\Properties\PublishProfiles\Linux64.pubxml
-
-
\ No newline at end of file
diff --git a/HorseIsleServer/LibHISP/Properties/AssemblyInfo.cs b/HorseIsleServer/LibHISP/Properties/AssemblyInfo.cs
index e6aa9bd..d6f27c5 100644
--- a/HorseIsleServer/LibHISP/Properties/AssemblyInfo.cs
+++ b/HorseIsleServer/LibHISP/Properties/AssemblyInfo.cs
@@ -30,5 +30,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
-[assembly: AssemblyVersion("1.7.48.0")]
-[assembly: AssemblyFileVersion("1.7.48.0")]
+[assembly: AssemblyVersion("1.7.59.0")]
+[assembly: AssemblyFileVersion("1.7.59.0")]
diff --git a/HorseIsleServer/N00BS/N00BS.csproj b/HorseIsleServer/N00BS/N00BS.csproj
index 4496178..862dfad 100644
--- a/HorseIsleServer/N00BS/N00BS.csproj
+++ b/HorseIsleServer/N00BS/N00BS.csproj
@@ -143,9 +143,5 @@
False
-
-
-
-
diff --git a/HorseIsleServer/N00BS/Properties/AssemblyInfo.cs b/HorseIsleServer/N00BS/Properties/AssemblyInfo.cs
index c961048..f0205da 100644
--- a/HorseIsleServer/N00BS/Properties/AssemblyInfo.cs
+++ b/HorseIsleServer/N00BS/Properties/AssemblyInfo.cs
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.7.48.0")]
-[assembly: AssemblyFileVersion("1.7.48.0")]
+[assembly: AssemblyVersion("1.7.59.0")]
+[assembly: AssemblyFileVersion("1.7.59.0")]