mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-12 18:29:01 +08:00
update create_release script: clean dir after zip/untar
This commit is contained in:
parent
58c73b1023
commit
462e1f06f1
@ -76,6 +76,7 @@ with urlopen("https://api.github.com/repos/"+repo+"/actions/artifacts") as f:
|
|||||||
my_tar = tarfile.open(release_path+"/"+program_name+"_ubu64.AppImage.tar");
|
my_tar = tarfile.open(release_path+"/"+program_name+"_ubu64.AppImage.tar");
|
||||||
my_tar.extractall(release_path);
|
my_tar.extractall(release_path);
|
||||||
my_tar.close();
|
my_tar.close();
|
||||||
|
os.remove(release_path+"/"+program_name+"_ubu64.AppImage.tar");
|
||||||
os.rename(release_path+"/"+program_name+"_ubu64.AppImage", release_path+"/"+program_name+"-ubuntu_18.04-" + version + ".AppImage");
|
os.rename(release_path+"/"+program_name+"_ubu64.AppImage", release_path+"/"+program_name+"-ubuntu_18.04-" + version + ".AppImage");
|
||||||
if entry["name"] == "rc_linux.tar" and not found_linux:
|
if entry["name"] == "rc_linux.tar" and not found_linux:
|
||||||
found_linux = True;
|
found_linux = True;
|
||||||
@ -88,6 +89,7 @@ with urlopen("https://api.github.com/repos/"+repo+"/actions/artifacts") as f:
|
|||||||
os.rename(release_path+"/"+program_name+".tar", base_path+".tar");
|
os.rename(release_path+"/"+program_name+".tar", base_path+".tar");
|
||||||
try:
|
try:
|
||||||
subprocess.check_output([path_7zip, "a", "-tzip", base_path+".tar.zip", base_path+".tar"]);
|
subprocess.check_output([path_7zip, "a", "-tzip", base_path+".tar.zip", base_path+".tar"]);
|
||||||
|
os.remove(base_path+".tar");
|
||||||
except:
|
except:
|
||||||
with zipfile.ZipFile(base_path+"_bof.tar.zip", 'w') as myzip:
|
with zipfile.ZipFile(base_path+"_bof.tar.zip", 'w') as myzip:
|
||||||
myzip.write(base_path+".tar");
|
myzip.write(base_path+".tar");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user