mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-17 03:11:27 -05:00
python3 compatibility + webapp to flask refactoring
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
// creates a python3 project to safely test a python3 environment [27/01/24]
|
||||
|
||||
var path=require("path"),f=require(path.resolve(__dirname, "functions.js"));
|
||||
|
||||
f.execs("rm -rf ~/deploy/python3/thegame");
|
||||
f.execs("mkdir ~/deploy/python3/thegame");
|
||||
//f.execs("cp -r ~/thegame/* ~/deploy/python3/thegame");
|
||||
f.execs("rsync -rv --exclude=.electron ~/thegame/* ~/deploy/python3/thegame"); // steamworkds_sdk is problematic to cp [11/02/19]
|
||||
|
||||
f.execs("rm -rf ~/deploy/python3/thegame/node");
|
||||
f.execs("rm -rf ~/deploy/python3/thegame/scripts");
|
||||
f.execs("cp -f ~/deploy/python3/thegame/python3/app.yaml ~/deploy/python3/thegame/app.yaml");
|
||||
f.execs("cp -f ~/deploy/python3/thegame/python3/requirements.txt ~/deploy/python3/thegame/requirements.txt");
|
||||
f.execs("rm -rf ~/deploy/python3/thegame/lib");
|
||||
f.execs("mkdir ~/deploy/python3/thegame/lib");
|
||||
f.execs("rm -rf ~/deploy/python3/thegame/origin");
|
||||
f.execs("rm -rf ~/deploy/python3/thegame/electron");
|
||||
f.execs("find ~/deploy/python3/thegame/ -name '*.pxm' -delete");
|
||||
|
||||
f.execs("cp ~/deploy/python3/thegame/js/runner_functions.js ~/deploy/python3/thegame/htmls/contents/codes/runner_functions.js");
|
||||
f.execs("cp ~/deploy/python3/thegame/js/runner_compat.js ~/deploy/python3/thegame/htmls/contents/codes/runner_compat.js");
|
||||
f.execs("cp ~/deploy/python3/thegame/js/common_functions.js ~/deploy/python3/thegame/htmls/contents/codes/common_functions.js");
|
||||
|
||||
// f.write_file("~/deploy/python3/thegame/app.yaml",f.read_file("~/thegame/app.yaml").replace("application:","#application:").replace("version:","#version:"));
|
||||
+5
-1
@@ -20,6 +20,10 @@ f.execs("cp ~/deploy/thegame_appengine/stack/update_notes.txt ~/deploy/thegame_a
|
||||
f.execs("rm -rf ~/deploy/thegame_appengine/stack");
|
||||
f.execs("mkdir ~/deploy/thegame_appengine/stack");
|
||||
f.execs("cp ~/deploy/thegame_appengine/design/update_notes.txt ~/deploy/thegame_appengine/stack/update_notes.txt");
|
||||
f.execs("cp -f ~/deploy/thegame_appengine/python3/app.yaml ~/deploy/thegame_appengine/app.yaml");
|
||||
f.execs("cp -f ~/deploy/thegame_appengine/python3/requirements.txt ~/deploy/thegame_appengine/requirements.txt");
|
||||
f.execs("rm -rf ~/deploy/thegame_appengine/lib");
|
||||
f.execs("rm -rf ~/deploy/thegame_appengine/python3");
|
||||
f.execs("rm -rf ~/deploy/thegame_appengine/origin");
|
||||
f.execs("rm -rf ~/deploy/thegame_appengine/electron");
|
||||
f.execs("find ~/deploy/thegame_appengine/ -name '*.pxm' -delete");
|
||||
@@ -28,7 +32,7 @@ f.execs("cp ~/deploy/thegame_appengine/js/runner_functions.js ~/deploy/thegame_a
|
||||
f.execs("cp ~/deploy/thegame_appengine/js/runner_compat.js ~/deploy/thegame_appengine/htmls/contents/codes/runner_compat.js");
|
||||
f.execs("cp ~/deploy/thegame_appengine/js/common_functions.js ~/deploy/thegame_appengine/htmls/contents/codes/common_functions.js");
|
||||
|
||||
f.write_file("~/deploy/thegame_appengine/app.yaml",f.read_file("~/thegame/app.yaml").replace("application:","#application:").replace("version:","#version:"));
|
||||
// f.write_file("~/deploy/thegame_appengine/app.yaml",f.read_file("~/thegame/app.yaml").replace("application:","#application:").replace("version:","#version:"));
|
||||
|
||||
to_minify={
|
||||
// "js":["game.js","keyboard.js","html.js","functions.js","common_functions.js"],
|
||||
|
||||
Reference in New Issue
Block a user