Browse Source

cagette-péi

master 1.1.1
cagette@ct8 4 years ago
parent
commit
407405389d
  1. 2
      src/App.hx
  2. 3
      src/MyMacros.hx

2
src/App.hx

@ -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(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(){
super();

3
src/MyMacros.hx

@ -20,7 +20,8 @@ class MyMacros {
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
return macro $v{commitDate};

Loading…
Cancel
Save