Black the resoureces directory.

This commit is contained in:
Dan Albert
2021-04-11 13:54:55 -07:00
parent 39bd6e3c10
commit 0cd359f36b
5 changed files with 70 additions and 34 deletions

View File

@@ -36,7 +36,13 @@ def _zip_dir(archieve, path):
def _mk_archieve():
path = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, "build", "dcs_liberation_{}.zip".format(VERSION))
path = os.path.join(
os.path.dirname(__file__),
os.pardir,
os.pardir,
"build",
"dcs_liberation_{}.zip".format(VERSION),
)
if os.path.exists(path):
print("version already exists")
return
@@ -46,9 +52,9 @@ def _mk_archieve():
except FileNotFoundError:
pass
os.system("pyinstaller.exe --clean pyinstaller.spec")
#archieve = ZipFile(path, "w")
#archieve.writestr("dcs_liberation.bat", "cd dist\\dcs_liberation\r\nliberation_main \"%UserProfile%\\Saved Games\" \"{}\"".format(VERSION))
#_zip_dir(archieve, "./dist/dcs_liberation")
# archieve = ZipFile(path, "w")
# archieve.writestr("dcs_liberation.bat", "cd dist\\dcs_liberation\r\nliberation_main \"%UserProfile%\\Saved Games\" \"{}\"".format(VERSION))
# _zip_dir(archieve, "./dist/dcs_liberation")
_mk_archieve()