Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added run.n
Binary file not shown.
21 changes: 21 additions & 0 deletions run/Run.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
class Run {
public static function main() {
Sys.setCwd("bin");
if( sys.FileSystem.exists("nwjs") )
Sys.command("start nwjs\\nw.exe --nwapp package.json");
else {
var path = Sys.getCwd();
path = StringTools.replace(path, "/", "\\");
path = StringTools.replace(path, "\\\\", "\\");
Sys.println('NWjs is required to run CastleDB.');
Sys.println('');
Sys.println('Get it on https://nwjs.io and unzip it in: "$path\\bin\\nwjs\\"');
Sys.println(' $path\\bin\\nwjs\\');
Sys.println('');
Sys.println('The "nw.exe" should be in:');
Sys.println(' $path\\bin\\nwjs\\nw.exe');
Sys.println('');
}
Sys.exit(0);
}
}
2 changes: 2 additions & 0 deletions run/run.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--main Run
--neko ../run.n