release script: add username to signature file, upload files into airlock.
This commit is contained in:
@@ -48,8 +48,8 @@ for k, n in files.items():
|
||||
os.unlink(path)
|
||||
string = re.sub("<div id=\"%s\">(.*?)</div>"%k, '', string, flags=re.DOTALL + re.MULTILINE)
|
||||
continue
|
||||
sigpath = path + '.asc'
|
||||
siglink = link + '.asc'
|
||||
sigpath = path + '.ThomasV.asc'
|
||||
siglink = link + '.ThomasV.asc'
|
||||
if not os.path.exists(sigpath):
|
||||
os.system("wget -q %s -O %s" % (siglink, sigpath))
|
||||
if not os.path.getsize(sigpath):
|
||||
|
||||
@@ -8,8 +8,6 @@
|
||||
ELECTRUM_DIR=/opt/electrum
|
||||
WWW_DIR=/opt/electrum-web
|
||||
|
||||
# Note:
|
||||
# uploadserver and website are set in /etc/hosts
|
||||
|
||||
cd $ELECTRUM_DIR
|
||||
# rm -rf dist/*
|
||||
@@ -138,7 +136,7 @@ if test -f dist/electrum-$VERSION.dmg; then
|
||||
echo "packages are already signed"
|
||||
else
|
||||
echo "signing packages"
|
||||
./contrib/sign_packages
|
||||
./contrib/sign_packages ThomasV
|
||||
fi
|
||||
else
|
||||
echo "dmg is missing, aborting"
|
||||
@@ -175,7 +173,7 @@ fi
|
||||
if test -f dist/uploaded; then
|
||||
echo "files already uploaded"
|
||||
else
|
||||
./contrib/upload uploadserver
|
||||
./contrib/upload
|
||||
touch dist/uploaded
|
||||
fi
|
||||
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import getpass
|
||||
import os, sys
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
username = sys.argv[1]
|
||||
os.chdir("dist")
|
||||
password = getpass.getpass("Password:")
|
||||
for f in os.listdir('.'):
|
||||
if f.endswith('asc'):
|
||||
for name in os.listdir('.'):
|
||||
if name.endswith('asc'):
|
||||
continue
|
||||
os.system("gpg --sign --armor --detach --passphrase \"%s\" %s"%(password, f))
|
||||
|
||||
sig_name = name + '.' + username + '.asc'
|
||||
os.system("gpg --sign --armor --detach --output %s %s"%(sig_name, name))
|
||||
os.chdir("..")
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
#!/bin/bash
|
||||
# uploadserver is set in /etc/hosts
|
||||
|
||||
set -e
|
||||
|
||||
host=$1
|
||||
version=`git describe --tags`
|
||||
echo $version
|
||||
|
||||
here=$(dirname "$0")
|
||||
cd $here/../dist
|
||||
|
||||
sftp -oBatchMode=no -b - thomasv@$host << !
|
||||
cd electrum-downloads
|
||||
sftp -oBatchMode=no -b - thomasv@uploadserver << !
|
||||
cd electrum-downloads-airlock
|
||||
mkdir $version
|
||||
cd $version
|
||||
mput *
|
||||
|
||||
Reference in New Issue
Block a user