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