From 9fba19521bd63930a95961e1d9f65af981a18230 Mon Sep 17 00:00:00 2001 From: BarsTiger Date: Fri, 28 Jan 2022 16:49:10 +0200 Subject: [PATCH] GUI development --- dist.bat | 3 --- dist.py | 11 +++++++++++ web_vars/version | 1 + 3 files changed, 12 insertions(+), 3 deletions(-) delete mode 100644 dist.bat create mode 100644 dist.py create mode 100644 web_vars/version diff --git a/dist.bat b/dist.bat deleted file mode 100644 index 00cd5e5..0000000 --- a/dist.bat +++ /dev/null @@ -1,3 +0,0 @@ -xcopy /s /Y dist\horsy.exe bin\horsy.exe* -xcopy /s /Y dist\horsygui.exe bin\horsygui.exe* -xcopy /s /Y dist\horsy_installer.exe bin\installer-horsy-win.exe* \ No newline at end of file diff --git a/dist.py b/dist.py new file mode 100644 index 0000000..9dce734 --- /dev/null +++ b/dist.py @@ -0,0 +1,11 @@ +import os + +os.system("xcopy /s /Y dist\horsy.exe bin\horsy.exe*") +os.system("xcopy /s /Y dist\horsygui.exe bin\horsygui.exe*") +os.system("xcopy /s /Y dist\horsy_installer.exe bin\installer-horsy-win.exe*") + +with open("web_vars/version", "r") as f_r: + version = f_r.readline() + +with open("web_vars/version", "w") as f_w: + f_w.write(str(int(version) + 1)) diff --git a/web_vars/version b/web_vars/version new file mode 100644 index 0000000..c227083 --- /dev/null +++ b/web_vars/version @@ -0,0 +1 @@ +0 \ No newline at end of file