v89.0.1
This commit is contained in:
parent
b9c6c392da
commit
88aa775304
2 changed files with 9 additions and 9 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -11,3 +11,4 @@
|
||||||
/tmp-strict.nsi
|
/tmp-strict.nsi
|
||||||
/__pycache__
|
/__pycache__
|
||||||
/sha256sums.txt
|
/sha256sums.txt
|
||||||
|
/upload.txt
|
||||||
17
pybuild.py
17
pybuild.py
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/env python3
|
#!/bin/env python3
|
||||||
|
|
||||||
pkgver = '89.0'
|
pkgver = '89.0.1'
|
||||||
nightly_ver = '91.0a1'
|
nightly_ver = '91.0a1'
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
@ -29,8 +29,8 @@ def script_exit(statuscode):
|
||||||
if (time.time() - start_time) > 60:
|
if (time.time() - start_time) > 60:
|
||||||
# print elapsed time
|
# print elapsed time
|
||||||
elapsed = time.strftime("%H:%M:%S", time.gmtime(time.time() - start_time))
|
elapsed = time.strftime("%H:%M:%S", time.gmtime(time.time() - start_time))
|
||||||
print(f"\nElapsed time: {elapsed}")
|
print(f"\n\aElapsed time: {elapsed}")
|
||||||
|
|
||||||
sys.exit(statuscode)
|
sys.exit(statuscode)
|
||||||
|
|
||||||
def enter_srcdir():
|
def enter_srcdir():
|
||||||
|
|
@ -320,11 +320,9 @@ def execute_lw_artifacts():
|
||||||
exec("mv tmp.exe librewolf-{}.en-US.win64-setup.exe".format(pkgver))
|
exec("mv tmp.exe librewolf-{}.en-US.win64-setup.exe".format(pkgver))
|
||||||
|
|
||||||
def do_upload(filename):
|
def do_upload(filename):
|
||||||
print("")
|
exec("echo "" >> upload.txt")
|
||||||
print("")
|
exec("curl --request POST --header \"PRIVATE-TOKEN: {}\" --form \"file=@{}\" \"https://gitlab.com/api/v4/projects/13852981/uploads\" >> upload.txt".format(options.token,filename))
|
||||||
exec("curl --request POST --header \"PRIVATE-TOKEN: {}\" --form \"file=@{}\" \"https://gitlab.com/api/v4/projects/13852981/uploads\"".format(options.token,filename))
|
exec("echo "" >> upload.txt")
|
||||||
print("")
|
|
||||||
print("")
|
|
||||||
|
|
||||||
def execute_upload():
|
def execute_upload():
|
||||||
if options.token =='':
|
if options.token =='':
|
||||||
|
|
@ -354,6 +352,7 @@ def execute_upload():
|
||||||
script_exit(1)
|
script_exit(1)
|
||||||
|
|
||||||
exec("sha256sum {} {} {} > sha256sums.txt".format(zip_filename,setup_filename,nightly_setup_filename))
|
exec("sha256sum {} {} {} > sha256sums.txt".format(zip_filename,setup_filename,nightly_setup_filename))
|
||||||
|
exec("rm -f upload.txt")
|
||||||
do_upload(setup_filename)
|
do_upload(setup_filename)
|
||||||
do_upload(zip_filename)
|
do_upload(zip_filename)
|
||||||
do_upload(nightly_setup_filename)
|
do_upload(nightly_setup_filename)
|
||||||
|
|
@ -379,7 +378,7 @@ def execute_clean():
|
||||||
|
|
||||||
def execute_veryclean():
|
def execute_veryclean():
|
||||||
execute_clean()
|
execute_clean()
|
||||||
exec("rm -f sha256sums.txt")
|
exec("rm -f sha256sums.txt pybuild.upload.txt")
|
||||||
for filename in glob.glob("librewolf-*"):
|
for filename in glob.glob("librewolf-*"):
|
||||||
os.remove(filename)
|
os.remove(filename)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue