This commit is contained in:
Samuel Walker 2024-06-21 16:23:39 -06:00
parent a6b3b3f962
commit 40b6f12e64
2 changed files with 7 additions and 2 deletions

View File

@ -10,6 +10,7 @@ import tarfile
from pathlib import Path
import shutil
from FTP import *
import socket
def install_prism():
global data_dir
@ -45,12 +46,16 @@ def install_prism():
for ind, line in enumerate(data):
if line.startswith("JavaPath="):
data[ind] = "JavaPath="+data_dir.replace("\\", "/")+"/java/java-21-"+suff+"/bin/"+cmd+"\n"
if line.startswith("LastHostname="):
data[ind] = "LastHostname="+socket.gethostname()+"\n"
with open(os.path.join(data_dir, "prism", "prismlauncher.cfg"), 'w') as file:
file.writelines(data)
def get_tar_members_stripped(tar, n_folders_stripped = 1):
members = []
for member in tar.getmembers():

View File

@ -1,2 +1,2 @@
wine /home/piwalker/.wine/drive_c/users/piwalker/AppData/Local/Programs/Python/Python312/Scripts/pyinstaller.exe --onefile Main.py --hidden-import=customtkinter --hidden-import='PIL._tkinter_finder' --add-data "CityBase.png:." --add-data "Title.png:." --windowed --add-data="C:\\users\\piwalker\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages;customtkinter/"
wine /home/piwalker/.wine/drive_c/users/piwalker/AppData/Local/Programs/Python/Python312/Scripts/pyinstaller.exe --onefile Upload.py --hidden-import='PIL._tkinter_finder' --windowed
wine /home/piwalker/.wine/drive_c/users/piwalker/AppData/Local/Programs/Python/Python312/Scripts/pyinstaller.exe --onedir Main.py --hidden-import=customtkinter --hidden-import='PIL._tkinter_finder' --add-data "CityBase.png:." --add-data "Title.png:." --windowed --add-data="C:\\users\\piwalker\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages;customtkinter/"
wine /home/piwalker/.wine/drive_c/users/piwalker/AppData/Local/Programs/Python/Python312/Scripts/pyinstaller.exe --onedir Upload.py --hidden-import='PIL._tkinter_finder' --windowed