Tools - Make HEMTT releases equivalent to older releases (#9200)

This commit is contained in:
jonpas 2023-05-16 15:27:28 +02:00 committed by GitHub
parent fd3c9c967d
commit eab93f739a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 3 deletions

View File

@ -0,0 +1,4 @@
let docs_readmes = ["README.zh-TW.md", "README_DE.md", "README_PL.md"];
for readme in docs_readmes {
HEMTT_VFS.join("docs").join(readme).move(HEMTT_VFS.join(readme));
}

View File

@ -0,0 +1,9 @@
let releases = HEMTT_RFS.join("releases");
let src = releases.join(HEMTT.project().prefix() + "-" + HEMTT.project().version().to_string() + ".zip");
let dst = releases.join(HEMTT.project().name().to_lower() + "_" + HEMTT.project().version().to_string_short() + ".zip");
print("Moving zip to " + dst);
if !src.move(dst) {
fatal("Failed to move " + src + " to " + dst);
}

View File

@ -0,0 +1,12 @@
let modcpp = HEMTT_VFS.join("mod.cpp").open_file().read();
modcpp.replace("0.0.0", HEMTT.project().version().to_string_short());
HEMTT_VFS.join("mod.cpp").create_file().write(modcpp);
print("mod.cpp version set");
let docs_readmes = ["README.zh-TW.md", "README_DE.md", "README_PL.md"];
for readme in docs_readmes {
let readmemd = HEMTT_VFS.join("docs").join(readme).open_file().read();
readmemd.replace("0.0.0", HEMTT.project().version().to_string_short());
HEMTT_VFS.join("docs").join(readme).create_file().write(readmemd);
print(readme + " version set");
}

View File

@ -8,8 +8,7 @@ include = [
"*.dll", "*.dll",
"*.so", "*.so",
"mod.cpp", "mod.cpp",
"README.md", "README*.md", # Translated READMEs get moved to root in a hook (virtual file system)
"docs/README_*.md",
"AUTHORS.txt", "AUTHORS.txt",
"LICENSE", "LICENSE",
"logo_ace3_ca.paa", "logo_ace3_ca.paa",

View File

@ -19,7 +19,7 @@ This page describes how you can setup your development environment for ACE3, all
**HEMTT:** _(recommended)_ **HEMTT:** _(recommended)_
- [Windows] PowerShell v3.0+ _(pre-installed on Windows 8 or newer)_ - [Windows] PowerShell v3.0+ _(pre-installed on Windows 8 or newer)_
- [HEMTT](https://github.com/BrettMayson/HEMTT/releases) (>=v1.3.2) in project root _(Windows users can double-click `tools/setup.bat`)_ - [HEMTT](https://github.com/BrettMayson/HEMTT/releases) (>=v1.5.1) in project root _(Windows users can double-click `tools/setup.bat`)_
- `hemtt` (Linux) or `hemtt.exe` (Windows) - `hemtt` (Linux) or `hemtt.exe` (Windows)
**Mikero Tools:** **Mikero Tools:**