mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-14 19:05:15 +00:00
26 lines
466 B
Haxe
26 lines
466 B
Haxe
package source; // Yeah, I know...
|
|
|
|
import sys.io.File;
|
|
|
|
/**
|
|
* A script which executes before the game is built.
|
|
*/
|
|
class Prebuild
|
|
{
|
|
static inline final BUILD_TIME_FILE:String = '.build_time';
|
|
|
|
static function main():Void
|
|
{
|
|
saveBuildTime();
|
|
trace('Building...');
|
|
}
|
|
|
|
static function saveBuildTime():Void
|
|
{
|
|
var fo:sys.io.FileOutput = File.write(BUILD_TIME_FILE);
|
|
var now:Float = Sys.time();
|
|
fo.writeDouble(now);
|
|
fo.close();
|
|
}
|
|
}
|