This repository has been archived by the owner on Dec 3, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
337c831
commit 2ec0fe7
Showing
12 changed files
with
107 additions
and
0 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 @@ | ||
HEMTT.script("update_3_build"); |
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 @@ | ||
HEMTT.script("update_1_minor"); |
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,3 @@ | ||
cd .. | ||
cd .. | ||
hemtt script update_major.rhai |
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,3 @@ | ||
cd .. | ||
cd .. | ||
hemtt script update_minor.rhai |
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,3 @@ | ||
cd .. | ||
cd .. | ||
hemtt script update_patch.rhai |
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,3 @@ | ||
cd .. | ||
cd .. | ||
hemtt script update_build.rhai |
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,29 @@ | ||
// Read the current contents of script_version.hpp | ||
let script_version = HEMTT_RFS.join("addons") | ||
.join("main") | ||
.join("script_version.hpp") | ||
.open_file() | ||
.read(); | ||
|
||
// Replace the current version with the new version | ||
let prefix = "#define MAJOR "; | ||
let current = HEMTT.project().version().major(); | ||
let next = current + 1; | ||
script_version.replace("#define MAJOR " + current.to_string(),"#define MAJOR " + next.to_string()); | ||
|
||
print(script_version); | ||
|
||
// Updating major version should reset minor number | ||
current = HEMTT.project().version().minor(); | ||
script_version.replace("#define MINOR " + current.to_string(), "#define MINOR 0"); | ||
|
||
// Updating minor version should reset patch number | ||
current = HEMTT.project().version().patch(); | ||
script_version.replace("#define PATCH " + current.to_string(), "#define PATCH 0"); | ||
|
||
// Write the modified contents to script_version.hpp | ||
HEMTT_RFS.join("addons") | ||
.join("main") | ||
.join("script_version.hpp") | ||
.create_file() | ||
.write(script_version); |
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,24 @@ | ||
// Read the current contents of script_version.hpp | ||
let script_version = HEMTT_RFS.join("addons") | ||
.join("main") | ||
.join("script_version.hpp") | ||
.open_file() | ||
.read(); | ||
|
||
// Replace the current version with the new version | ||
let prefix = "#define MINOR "; | ||
let current = HEMTT.project().version().minor(); | ||
let next = current + 1; | ||
|
||
script_version.replace(prefix + current.to_string(), prefix + next.to_string()); | ||
|
||
// Updating minor version should reset patch number | ||
current = HEMTT.project().version().patch(); | ||
script_version.replace("#define PATCH " + current.to_string(), "#define PATCH 0"); | ||
|
||
// Write the modified contents to script_version.hpp | ||
HEMTT_RFS.join("addons") | ||
.join("main") | ||
.join("script_version.hpp") | ||
.create_file() | ||
.write(script_version); |
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,21 @@ | ||
// Read the current contents of script_version.hpp | ||
let script_version = HEMTT_RFS.join("addons") | ||
.join("main") | ||
.join("script_version.hpp") | ||
.open_file() | ||
.read(); | ||
|
||
// Replace the current version with the new version | ||
let prefix = "#define PATCH "; | ||
let current = HEMTT.project().version().patch(); | ||
let next = current + 1; | ||
|
||
script_version.replace(prefix + current.to_string(), prefix + next.to_string()); | ||
|
||
|
||
// Write the modified contents to script_version.hpp | ||
HEMTT_RFS.join("addons") | ||
.join("main") | ||
.join("script_version.hpp") | ||
.create_file() | ||
.write(script_version); |
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,19 @@ | ||
// Read the current contents of script_version.hpp | ||
let script_version = HEMTT_RFS.join("addons") | ||
.join("main") | ||
.join("script_version.hpp") | ||
.open_file() | ||
.read(); | ||
|
||
// Replace the current version with the new version | ||
let prefix = "#define BUILD "; | ||
let current = HEMTT.project().version().build(); | ||
let next = current + 1; | ||
script_version.replace(prefix + current.to_string(), prefix + next.to_string()); | ||
|
||
// Write the modified contents to script_version.hpp | ||
HEMTT_RFS.join("addons") | ||
.join("main") | ||
.join("script_version.hpp") | ||
.create_file() | ||
.write(script_version); |
File renamed without changes.
File renamed without changes.