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