-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
50 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Renames zip file of release and deletes unused zip files | ||
|
||
// Get releases folder | ||
let releases = HEMTT_RFS.join("releases"); | ||
|
||
// Get "enh_latest.zip" file | ||
let prefix = HEMTT.project().prefix(); | ||
let src = releases.join(prefix + "-latest.zip"); | ||
|
||
// Set file name to vX.X.X | ||
let version = HEMTT.project().version(); | ||
let dst = releases.join("v" + version + ".zip"); | ||
|
||
// Sanity check | ||
if src.is_file() // support --no-archive | ||
{ | ||
print("Moving zip to " + dst); | ||
if !src.move(dst) | ||
{ | ||
fatal("Failed to move " + src + " to " + dst); | ||
} | ||
} | ||
|
||
// Delete unused "enh-latest.zip" | ||
releases.join(prefix + "-" + version + ".zip").remove_file(); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Defines ISDEV macro on release, written by jokoho482 modified for 3den Enhanced by R3vo | ||
|
||
if (HEMTT.is_release()) | ||
{ | ||
// Get "script_component.hpp" file and read it | ||
let macro_path = HEMTT_VFS.join("addons/main/script_component.hpp"); | ||
let macro_hpp = macro_path.open_file().read(); | ||
|
||
// Replace macro definition | ||
macro_hpp.replace("#define ISDEV", "//#define ISDEV"); | ||
|
||
// Overwrite existing file with new content | ||
macro_path.create_file().write(macro_hpp); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Update version in mod.cpp | ||
|
||
// Read the contents of mod.cpp | ||
let modcpp = HEMTT_VFS.join("mod.cpp").open_file().read(); | ||
|
||
// Replace the placeholder version with the actual version | ||
modcpp.replace("0.0.0", HEMTT.project().version().to_string_short()); | ||
|
||
// Write the new contents over the old contents | ||
HEMTT_VFS.join("mod.cpp").create_file().write(modcpp); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ patch = 0 | |
git_hash = 0 | ||
|
||
[hemtt.release] | ||
archive = false | ||
archive = true | ||
|
||
[properties] | ||
author = "R3vo" | ||
|