Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Ensure signed APKs are archived.
Browse files Browse the repository at this point in the history
  • Loading branch information
Randall Barker committed Nov 30, 2018
1 parent ab56151 commit 6382776
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/taskcluster/sign.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
python tools/taskcluster/fetch_secret.py -s project/firefoxreality/$1 -o token -n token
python tools/taskcluster/sign_apk.py -t `cat token` $2
python tools/taskcluster/sign_apk.py -t token $2
python tools/taskcluster/archive_debug_apk.py
5 changes: 3 additions & 2 deletions tools/taskcluster/sign_apk.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@ def main(name, argv):
print name + '-t <token file name> -r'
sys.exit()
elif opt in ("-t"):
token = arg
with open(arg, 'r') as tokenfile:
token = tokenfile.read().rstrip()
elif opt in ('-r'):
sign_url = 'https://autograph-edge.prod.mozaws.net/sign'
release = True

build_output_path = './app/build/outputs/apk'

# Sign APKs
for apk in glob.glob(build_output_path + "/*/*/*-aligned.apk"):
for apk in glob.glob(build_output_path + "/*/*/*-unsigned.apk"):
target = apk.replace('-unsigned', '-signed')
if not release:
target = target.replace('-release-', '-staging-')
Expand Down

0 comments on commit 6382776

Please sign in to comment.