Skip to content

Commit

Permalink
Merge pull request #316 from AugurProject/petong/gpg-sign
Browse files Browse the repository at this point in the history
petong/gpg sign
  • Loading branch information
pgebheim authored Aug 18, 2018
2 parents f05cdad + 101473f commit 8e23a7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/post_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def upload_release_asset(id, data, name):
# set up build dir paths
build_dir = 'dist/'
full_path = os.path.abspath(build_dir)
file_extensions = ['dmg', 'deb', 'exe', 'AppImage']
file_extensions = ['dmg', 'deb', 'exe', 'AppImage', 'zip']

# change to build dir
os.chdir(full_path)
Expand Down
9 changes: 7 additions & 2 deletions scripts/release-sanity-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ def gpg_sanity_check():
sys.exit(0)
else:
print(' '.join(release_versions))
version = input('enter version to sanity check')
version = input('enter version to sanity check: ')

file_extensions = ['dmg', 'deb', 'exe', 'snap']
file_extensions = ['dmg', 'deb', 'exe', 'AppImage', 'zip']
assets = assets_for_version(all_release_info, version)

headers['Accept'] = 'application/octet-stream'
Expand Down Expand Up @@ -140,3 +140,8 @@ def gpg_sanity_check():
print('going to sign this: ')
print(message_to_sign)

password = getpass.getpass()
gpg = gnupg.GPG()
signed_data = gpg.sign(message_to_sign, keyid='4ABBBBE0', passphrase=password)

print(str(signed_data))

0 comments on commit 8e23a7e

Please sign in to comment.