push
This commit is contained in:
parent
a6b3b3f962
commit
40b6f12e64
@ -10,6 +10,7 @@ import tarfile
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import shutil
|
import shutil
|
||||||
from FTP import *
|
from FTP import *
|
||||||
|
import socket
|
||||||
|
|
||||||
def install_prism():
|
def install_prism():
|
||||||
global data_dir
|
global data_dir
|
||||||
@ -45,12 +46,16 @@ def install_prism():
|
|||||||
for ind, line in enumerate(data):
|
for ind, line in enumerate(data):
|
||||||
if line.startswith("JavaPath="):
|
if line.startswith("JavaPath="):
|
||||||
data[ind] = "JavaPath="+data_dir.replace("\\", "/")+"/java/java-21-"+suff+"/bin/"+cmd+"\n"
|
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:
|
with open(os.path.join(data_dir, "prism", "prismlauncher.cfg"), 'w') as file:
|
||||||
file.writelines(data)
|
file.writelines(data)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_tar_members_stripped(tar, n_folders_stripped = 1):
|
def get_tar_members_stripped(tar, n_folders_stripped = 1):
|
||||||
members = []
|
members = []
|
||||||
for member in tar.getmembers():
|
for member in tar.getmembers():
|
||||||
|
@ -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 --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 --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 Upload.py --hidden-import='PIL._tkinter_finder' --windowed
|
||||||
|
Loading…
Reference in New Issue
Block a user