Update made automatically due to pressing build

This commit is contained in:
Li 2022-05-08 13:09:56 +12:00
parent 5d787e169b
commit 7efb878f63
6 changed files with 30 additions and 23 deletions

View file

@ -7,8 +7,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTitle("HISPd")] [assembly: AssemblyTitle("HISPd")]
[assembly: AssemblyDescription("Server Emulator for \"Horse Isle\"")] [assembly: AssemblyDescription("Server Emulator for \"Horse Isle\"")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("SilicaAndPina")] [assembly: AssemblyCompany("Li")]
[assembly: AssemblyProduct("HISPd")] [assembly: AssemblyProduct("HISP")]
[assembly: AssemblyCopyright("Public Domain © 2022")] [assembly: AssemblyCopyright("Public Domain © 2022")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]

View file

@ -1,5 +1,5 @@
Package: hisp Package: hisp
Version: $VERSION Version: 1.6.3
Depends: coreutils,systemd,mariadb-server,libsqlite3-dev,zlib1g-dev,libicu-dev,libkrb5-dev Depends: coreutils,systemd,mariadb-server,libsqlite3-dev,zlib1g-dev,libicu-dev,libkrb5-dev
Maintainer: Li Maintainer: Li
Homepage: https://islehorse.com Homepage: https://islehorse.com

View file

@ -30,5 +30,5 @@ using System.Runtime.InteropServices;
// //
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
[assembly: AssemblyVersion("1.6.2.13")] [assembly: AssemblyVersion("1.6.2.14")]
[assembly: AssemblyFileVersion("1.6.2.13")] [assembly: AssemblyFileVersion("1.6.2.14")]

View file

@ -2,7 +2,6 @@
# Horse Isle Server Configuration # Horse Isle Server Configuration
# ======================= # =======================
# #
# Configuration Version 1.3.1
# HISP was Created and Developed by SilicaAndPina # HISP was Created and Developed by SilicaAndPina
# However it is NOT COPYRIGHTED! This software is in the Public Domain! # However it is NOT COPYRIGHTED! This software is in the Public Domain!
# #
@ -36,10 +35,6 @@ map=HI1.MAP
# NOTE: This can be a folder or a file. # NOTE: This can be a folder or a file.
gamedata=gamedata gamedata=gamedata
# Folder containing mod .dll's
# Mods can extend the server
# and add custom features.
mods_folder=mods
# ======================= # =======================
# Security # Security

View file

@ -7,7 +7,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTitle("HISP Noobs")] [assembly: AssemblyTitle("HISP Noobs")]
[assembly: AssemblyDescription("Noob-Friendly One-Click Run HISP.")] [assembly: AssemblyDescription("Noob-Friendly One-Click Run HISP.")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("SilicaAndPina")] [assembly: AssemblyCompany("Li")]
[assembly: AssemblyProduct("HISP")] [assembly: AssemblyProduct("HISP")]
[assembly: AssemblyCopyright("Public Domain © 2022")] [assembly: AssemblyCopyright("Public Domain © 2022")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]

View file

@ -5,12 +5,22 @@ import time
import datetime import datetime
import binascii import binascii
def update_asm_info(assemblyinfofile):
global commit_hash
global commit_tag
global commit_branch
global assembly_version
lines = open(assemblyinfofile, "r").readlines()
for i in range(0,len(lines)):
if lines[i].startswith("[assembly: AssemblyVersion(\""):
lines[i] = "[assembly: AssemblyVersion(\""+assembly_version+"\")]\n"
if lines[i].startswith("[assembly: AssemblyFileVersion(\""):
lines[i] = "[assembly: AssemblyFileVersion(\""+assembly_version+"\")]\n"
open(assemblyinfofile, "w").writelines(lines)
# Determine git stuff. # Determine git stuff.
global commit_hash
global commit_tag
global commit_branch
versioning_folder = os.path.join("LibHISP", "Resources", "Versioning") versioning_folder = os.path.join("LibHISP", "Resources", "Versioning")
if not os.path.exists(versioning_folder): if not os.path.exists(versioning_folder):
@ -45,11 +55,13 @@ while len(points) < 4:
points.append("0") points.append("0")
assembly_version = ".".join(points) assembly_version = ".".join(points)
assembly_info = os.path.join("LibHISP", "Properties", "AssemblyInfo.cs") update_asm_info(os.path.join("LibHISP", "Properties", "AssemblyInfo.cs"))
lines = open(assembly_info, "r").readlines() update_asm_info(os.path.join("N00BS", "Properties", "AssemblyInfo.cs"))
update_asm_info(os.path.join("HISPd", "Properties", "AssemblyInfo.cs"))
control_file = os.path.join("HISPd", "Resources", "DEBIAN", "control")
lines = open(control_file, "rb").readlines()
for i in range(0,len(lines)): for i in range(0,len(lines)):
if lines[i].startswith("[assembly: AssemblyVersion(\""): if lines[i].startswith(b"Version: "):
lines[i] = "[assembly: AssemblyVersion(\""+assembly_version+"\")]\n" lines[i] = b"Version: "+bytes(commit_tag.replace("v", ""), "UTF-8")
if lines[i].startswith("[assembly: AssemblyFileVersion(\""): open(control_file, "wb").writelines(control_file)
lines[i] = "[assembly: AssemblyFileVersion(\""+assembly_version+"\")]\n"
open(assembly_info, "w").writelines(lines)