@@ -52,23 +52,23 @@ def zip_folder(folder_path):
5252PyInstaller .__main__ .run (['-F' , 'run.py' , '--exclude-module=numpy' , '-i' , 'icon.ico' ])
5353
5454if os .name == 'nt' :
55- if os .path .exists (local + os . sep + " dist" + os . sep + " run.exe" ):
56- shutil .move (local + os . sep + " dist" + os . sep + " run.exe" , local )
57- if os .path .exists (local + os . sep + " bin" + os . sep + " Linux" ):
58- shutil .rmtree (local + os . sep + " bin" + os . sep + " Linux" )
59- if os .path .exists (local + os . sep + " bin" + os . sep + " Android" ):
60- shutil .rmtree (local + os . sep + " bin" + os . sep + " Android" )
61- if os .path .exists (local + os . sep + " bin" + os . sep + " Darwin" ):
62- shutil .rmtree (local + os . sep + " bin" + os . sep + " Darwin" )
55+ if os .path .exists (local + "/ dist/ run.exe" ):
56+ shutil .move (local + "/ dist/ run.exe" , local )
57+ if os .path .exists (local + "/ bin/ Linux" ):
58+ shutil .rmtree (local + "/ bin/ Linux" )
59+ if os .path .exists (local + "/ bin/ Android" ):
60+ shutil .rmtree (local + "/ bin/ Android" )
61+ if os .path .exists (local + "/ bin/ Darwin" ):
62+ shutil .rmtree (local + "/ bin/ Darwin" )
6363elif os .name == 'posix' :
64- if os .path .exists (local + os . sep + " dist" + os . sep + " run" ):
65- shutil .move (local + os . sep + " dist" + os . sep + " run" , local )
66- if os .path .exists (local + os . sep + " bin" + os . sep + " Windows" ):
67- shutil .rmtree (local + os . sep + " bin" + os . sep + " Windows" )
68- for i in os .listdir (local + os . sep + " bin" + os . sep + " Linux" ):
64+ if os .path .exists (local + "/ dist/ run" ):
65+ shutil .move (local + "/ dist/ run" , local )
66+ if os .path .exists (local + "/ bin/ Windows" ):
67+ shutil .rmtree (local + "/ bin/ Windows" )
68+ for i in os .listdir (local + "/ bin/ Linux" ):
6969 if i == platform .machine ():
7070 continue
71- shutil .rmtree (local + os . sep + " bin" + os . sep + " Linux" + os . sep + i )
71+ shutil .rmtree (local + "/ bin/ Linux/" + i )
7272for i in os .listdir (local ):
7373 if i not in ['run' , 'run.exe' , 'bin' , 'LICENSE' ] and not i .endswith (".py" ) and not i .endswith (".ico" ) and not i .endswith (".txt" ):
7474 print (f"Removing { i } " )
0 commit comments