This commit is contained in:
Bert van der Weerd 2022-01-11 15:44:56 +01:00
parent df251864cd
commit 1240cdb7b1
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1

9
mk.py
View file

@ -25,8 +25,10 @@ def bash(cmd,do_print=True):
if retval != 0:
sys.exit(retval)
_native = False # set to True if you don't want the win-specific bash.exe
def exec(cmd,do_print=True):
_native = False
if not os.path.isFile('c:/mozilla-build/msys/bin/bash.exe'):
_native = True
if _native:
return native(cmd,do_print)
return bash(cmd,do_print)
@ -141,7 +143,10 @@ def upload(token):
version = file1.read().rstrip()
with open('release','r') as file2:
release = file2.read().rstrip()
full_version = '{}.{}'.format(version,release)
if release == '0' :
full_version = '{}'.format(version)
else:
full_version = '{}.{}'.format(version,release)
# Files we need to upload..
zip_filename = 'librewolf-{}.en-US.win64.zip'.format(full_version)