Compare commits

...
1 Commits
Author SHA1 Message Date
cagette@ct8 407405389d cagette-péi 2020-11-11 18:05:57 +04:00
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ class App extends sugoi.BaseApp {
*/ */
//public static var VERSION = ([0,9,2] : Version).withPre("july"); //public static var VERSION = ([0,9,2] : Version).withPre("july");
//public static var VERSION = ([0,9,2] : Version).withPre(MyMacros.getGitShortSHA(), MyMacros.getGitCommitDate()); //public static var VERSION = ([0,9,2] : Version).withPre(MyMacros.getGitShortSHA(), MyMacros.getGitCommitDate());
public static var VERSION = ([0,9,2] : Version).withPre(MyMacros.getGitCommitDate()); public static var VERSION = "cagette-péi " + MyMacros.getGitCommitDate();
public function new(){ public function new(){
super(); super();
+2 -1
View File
@@ -20,7 +20,8 @@ class MyMacros {
commitDate = StringTools.replace(commitDate, " ", "."); commitDate = StringTools.replace(commitDate, " ", ".");
commitDate = StringTools.replace(commitDate, "-", "."); commitDate = StringTools.replace(commitDate, "-", ".");
commitDate = StringTools.replace(commitDate, ":", "."); commitDate = StringTools.replace(commitDate, ":", ".");
commitDate = commitDate.substr(0,16); //commitDate = commitDate.substr(0,16);
commitDate = commitDate.substr(0,10);
// Generates a string expression // Generates a string expression
return macro $v{commitDate}; return macro $v{commitDate};