👍[Update] Model : batchファイルを一箇所にまとめた

This commit is contained in:
misyaguziya
2023-10-09 16:21:46 +09:00
parent 944f852285
commit d59a1a05a9
4 changed files with 3 additions and 3 deletions

View File

@@ -1 +1 @@
pyinstaller --onedir --onefile --windowed --clean --icon="./img/vrct_logo_mark_black.ico" --add-data "./img;img/" --add-data "./locales;locales/" --add-data "./update.bat;./" --add-data "./restart.bat;./" --name VRCT --exclude-module numpy --exclude-module pandas --exclude-module matplotlib --exclude-module PyQt5 main.py
pyinstaller --onedir --onefile --windowed --clean --icon="./img/vrct_logo_mark_black.ico" --add-data "./img;img/" --add-data "./locales;locales/" --add-data "./batch;batch/" --name VRCT --exclude-module numpy --exclude-module pandas --exclude-module matplotlib --exclude-module PyQt5 main.py

View File

@@ -253,7 +253,7 @@ class Model:
zf.extract(program_name, os_path.join(current_directory, tmp_directory_name))
os_rename(os_path.join(current_directory, tmp_directory_name, program_name), os_path.join(current_directory, temporary_name))
rmtree(os_path.join(current_directory, tmp_directory_name))
command = [os_path.join(program_directory, batch_name), program_name, temporary_name, str(restart)]
command = [os_path.join(program_directory, "batch", batch_name), program_name, temporary_name, str(restart)]
Popen(command)
@staticmethod
@@ -261,7 +261,7 @@ class Model:
program_name = 'VRCT.exe'
batch_name = 'restart.bat'
program_directory = os_path.dirname(__file__)
command = [os_path.join(program_directory, batch_name), program_name]
command = [os_path.join(program_directory, "batch", batch_name), program_name]
Popen(command)
@staticmethod