@@ -53,9 +53,9 @@ def build_repo(pkpy_repo:repo.Repo, tag: TagReference | BranchAsTag) -> float:
5353
5454 if not os .path .exists ('All_in_one' ):
5555 os .mkdir ('All_in_one' )
56- if os .path .exists (f' All_in_one/pkpy-{ tag .name .lstrip ('v' )} ' ):
57- shutil .rmtree (f' All_in_one/pkpy-{ tag .name .lstrip ('v' )} ' )
58- os .mkdir (f' All_in_one/pkpy-{ tag .name .lstrip ('v' )} ' )
56+ if os .path .exists (f" All_in_one/pkpy-{ tag .name .lstrip ('v' )} " ):
57+ shutil .rmtree (f" All_in_one/pkpy-{ tag .name .lstrip ('v' )} " )
58+ os .mkdir (f" All_in_one/pkpy-{ tag .name .lstrip ('v' )} " )
5959 # build the current version of pkpy
6060 try :
6161 subprocess .run ('python prebuild.py' , cwd = 'pocketpy' , stderr = subprocess .PIPE )
@@ -69,20 +69,20 @@ def build_repo(pkpy_repo:repo.Repo, tag: TagReference | BranchAsTag) -> float:
6969 elapsed_time = time .perf_counter () - start_time
7070
7171 if sys .platform == 'win32' :
72- shutil .copy (f'pocketpy/build/Release/main.exe' , f' All_in_one/pkpy-{ tag .name .lstrip ('v' )} /main.exe' )
72+ shutil .copy (f'pocketpy/build/Release/main.exe' , f" All_in_one/pkpy-{ tag .name .lstrip ('v' )} /main.exe" )
7373 dll_path = f'pocketpy/build/Release/pocketpy.dll'
7474 if os .path .exists (dll_path ):
75- shutil .copy (dll_path , f' All_in_one/pkpy-{ tag .name .lstrip ('v' )} /pocketpy.dll' )
75+ shutil .copy (dll_path , f" All_in_one/pkpy-{ tag .name .lstrip ('v' )} /pocketpy.dll" )
7676 elif sys .platform == 'darwin' :
77- shutil .copy ('pocketpy/build/main' , f' All_in_one/pkpy-{ tag .name .lstrip ('v' )} /main' )
77+ shutil .copy ('pocketpy/build/main' , f" All_in_one/pkpy-{ tag .name .lstrip ('v' )} /main" )
7878 dll_path = 'pocketpy/build/ibpocketpy.dylib'
7979 if os .path .exists (dll_path ):
80- shutil .copy (dll_path , f' All_in_one/pkpy-{ tag .name .lstrip ('v' )} /libpocketpy.dylib' )
80+ shutil .copy (dll_path , f" All_in_one/pkpy-{ tag .name .lstrip ('v' )} /libpocketpy.dylib" )
8181 else :
82- shutil .copy ('pocketpy/build/main' , f' All_in_one/pkpy-{ tag .name .lstrip ('v' )} /main' )
82+ shutil .copy ('pocketpy/build/main' , f" All_in_one/pkpy-{ tag .name .lstrip ('v' )} /main" )
8383 dll_path = 'pocketpy/build/libpocketpy.so'
8484 if os .path .exists (dll_path ):
85- shutil .copy (dll_path , f' All_in_one/pkpy-{ tag .name .lstrip ('v' )} /libpocketpy.so' )
85+ shutil .copy (dll_path , f" All_in_one/pkpy-{ tag .name .lstrip ('v' )} /libpocketpy.so" )
8686
8787 return elapsed_time
8888
0 commit comments