mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-09 00:04:42 +00:00
Add a flag to make Git hash display on launcher builds.
This commit is contained in:
parent
652a1836a0
commit
dd3d1116c0
|
@ -196,6 +196,13 @@
|
||||||
<haxedef name="REDIRECT_ASSETS_FOLDER" />
|
<haxedef name="REDIRECT_ASSETS_FOLDER" />
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<!-- TODO: Add a flag to Github Actions to turn this on or something. -->
|
||||||
|
|
||||||
|
<!-- Forces the version string to include the Git hash even on release builds (which are used for performance reasons). -->
|
||||||
|
<haxedef name="FORCE_DEBUG_VERSION" />
|
||||||
|
</section>
|
||||||
|
|
||||||
<!-- Run a script before and after building. -->
|
<!-- Run a script before and after building. -->
|
||||||
<postbuild haxe="source/Prebuild.hx"/> -->
|
<postbuild haxe="source/Prebuild.hx"/> -->
|
||||||
<postbuild haxe="source/Postbuild.hx"/> -->
|
<postbuild haxe="source/Postbuild.hx"/> -->
|
||||||
|
|
|
@ -39,7 +39,7 @@ class Constants
|
||||||
*/
|
*/
|
||||||
public static final VERSION_SUFFIX:String = ' PROTOTYPE';
|
public static final VERSION_SUFFIX:String = ' PROTOTYPE';
|
||||||
|
|
||||||
#if debug
|
#if (debug || FORCE_DEBUG_VERSION)
|
||||||
static function get_VERSION():String
|
static function get_VERSION():String
|
||||||
{
|
{
|
||||||
return 'v${Application.current.meta.get('version')} (${GIT_BRANCH} : ${GIT_HASH})' + VERSION_SUFFIX;
|
return 'v${Application.current.meta.get('version')} (${GIT_BRANCH} : ${GIT_HASH})' + VERSION_SUFFIX;
|
||||||
|
|
Loading…
Reference in a new issue