mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 13:45:42 +12:00
add debian package build
This commit is contained in:
parent
cff8c68eef
commit
84b712c32f
6 changed files with 54 additions and 9 deletions
36
.github/workflows/build.yml
vendored
36
.github/workflows/build.yml
vendored
|
@ -26,6 +26,9 @@ jobs:
|
||||||
dotnet-version: 7.0.x
|
dotnet-version: 7.0.x
|
||||||
include-prerelease: true
|
include-prerelease: true
|
||||||
|
|
||||||
|
- name: Setup WSL
|
||||||
|
uses: Vampire/setup-wsl@v1.2.0
|
||||||
|
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
|
|
||||||
|
@ -84,9 +87,29 @@ jobs:
|
||||||
# continue-on-error: false
|
# continue-on-error: false
|
||||||
# run: |
|
# run: |
|
||||||
# dotnet publish -p:PublishProfile=AndroidARM64.pubxml
|
# dotnet publish -p:PublishProfile=AndroidARM64.pubxml
|
||||||
|
- name: Create Debian Package
|
||||||
|
continue-on-error: false
|
||||||
- name: Upload win-x64
|
shell: wsl-bash -u root
|
||||||
|
run: |
|
||||||
|
mkdir Debian64
|
||||||
|
mkdir Debian64/etc/hisp
|
||||||
|
mkdir Debian64/systemd/system
|
||||||
|
mkdir Debian64/usr/bin
|
||||||
|
mkdir Debian64/usr/lib
|
||||||
|
mkdir Debian64/DEBIAN
|
||||||
|
cp -r HorseIsleServer/HISPd/Resources/DEBIAN/* Debian64/DEBIAN
|
||||||
|
chmod +x Debian64/DEBIAN/postinst
|
||||||
|
chmod +x Debian64/DEBIAN/postrm
|
||||||
|
cp HorseIsleServer/HISPd/bin/x64/Linux/net7.0/linux-x64/publish/HISPd Debian64/usr/bin/HISPd
|
||||||
|
chmod +x Debian64/usr/bin/HISPd
|
||||||
|
cp HorseIsleServer/HISPd/bin/x64/Linux/net7.0/linux-x64/publish/libe_sqlite3.so Debian64/usr/lib/libe_sqlite3.so
|
||||||
|
cp HorseIsleServer/HISPd/bin/x64/Linux/net7.0/linux-x64/publish/HI1.MAP Debian64/etc/hisp/HI1.MAP
|
||||||
|
cp HorseIsleServer/HISPd/bin/x64/Linux/net7.0/linux-x64/publish/server.properties Debian64/etc/hisp/server.properties
|
||||||
|
cp HorseIsleServer/HISPd/bin/x64/Linux/net7.0/linux-x64/publish/CrossDomainPolicy.xml Debian64/etc/hisp/CrossDomainPolicy.xml
|
||||||
|
cp HorseIsleServer/HISPd/bin/x64/Linux/net7.0/linux-x64/publish/gamedata.json Debian64/etc/hisp/gamedata.json
|
||||||
|
dpkg-deb --build Debian64
|
||||||
|
|
||||||
|
- name: Upload win-x64
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: HISP-Win64
|
name: HISP-Win64
|
||||||
|
@ -165,6 +188,13 @@ jobs:
|
||||||
# path: HorseIsleServer/HISPd/bin/arm64/Android/net7.0/android-arm64/publish/
|
# path: HorseIsleServer/HISPd/bin/arm64/Android/net7.0/android-arm64/publish/
|
||||||
|
|
||||||
|
|
||||||
|
- name: Upload Debian package
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: HISP-DebPackage
|
||||||
|
path: Debian64.deb
|
||||||
|
|
||||||
|
|
||||||
- name: Upload Website (master)
|
- name: Upload Website (master)
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<PropertyGroup>
|
|
||||||
<_LastSelectedProfileId>C:\Users\User\Documents\git\HISP\HorseIsleServer\HISPd\Properties\PublishProfiles\AndroidARM.pubxml</_LastSelectedProfileId>
|
|
||||||
</PropertyGroup>
|
|
||||||
</Project>
|
|
2
HorseIsleServer/HISPd/Resources/DEBIAN/conffiles
Normal file
2
HorseIsleServer/HISPd/Resources/DEBIAN/conffiles
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
/etc/hisp/server.properties
|
||||||
|
/etc/hisp/CrossDomainPolicy.xml
|
7
HorseIsleServer/HISPd/Resources/DEBIAN/control
Normal file
7
HorseIsleServer/HISPd/Resources/DEBIAN/control
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
Package: hisp
|
||||||
|
Version: 1.6.1
|
||||||
|
Depends: coreutils,systemd,mariadb-server,libsqlite3-dev
|
||||||
|
Maintainer: Islehorse
|
||||||
|
Homepage: https://islehorse.com
|
||||||
|
Architecture: amd64
|
||||||
|
Description: Open Source Implementation of the flash game "Horse Isle" server.
|
8
HorseIsleServer/HISPd/Resources/DEBIAN/postinst
Normal file
8
HorseIsleServer/HISPd/Resources/DEBIAN/postinst
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
useradd horseisle
|
||||||
|
chown -R horseisle /etc/hisp
|
||||||
|
systemctl enable HISP.service
|
||||||
|
systemctl start HISP
|
||||||
|
|
||||||
|
echo "Make sure to edit /etc/hisp/server.properties!"
|
4
HorseIsleServer/HISPd/Resources/DEBIAN/postrm
Normal file
4
HorseIsleServer/HISPd/Resources/DEBIAN/postrm
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
systemctl stop HISP
|
||||||
|
systemctl disable HISP
|
||||||
|
userdel horseisle
|
Loading…
Add table
Reference in a new issue