35 changed files with 451 additions and 316 deletions
@ -0,0 +1,40 @@
|
||||
#!/usr/bin/python |
||||
|
||||
import sys, re, shutil, os, hashlib |
||||
import imp |
||||
import getpass |
||||
|
||||
if __name__ == '__main__': |
||||
|
||||
os.chdir(os.path.dirname(os.path.realpath(__file__))) |
||||
os.chdir('..') |
||||
|
||||
imp.load_module('electrum', *imp.find_module('../lib')) |
||||
from electrum.version import ELECTRUM_VERSION as version |
||||
|
||||
if not ( os.path.exists('packages')): |
||||
print "The packages directory is missing." |
||||
sys.exit() |
||||
|
||||
# os.system("python mki18n.py") |
||||
os.system("pyrcc4 icons.qrc -o gui/qt/icons_rc.py") |
||||
os.system("python setup.py sdist --format=zip,gztar") |
||||
|
||||
_tgz="Electrum-%s.tar.gz"%version |
||||
_zip="Electrum-%s.zip"%version |
||||
|
||||
os.chdir("dist") |
||||
password = getpass.getpass("Password:") |
||||
for f in [_tgz,_zip]: |
||||
os.system( "gpg --sign --armor --detach --passphrase \"%s\" %s"%(password, f) ) |
||||
|
||||
md5_tgz = hashlib.md5(file(_tgz, 'r').read()).digest().encode('hex') |
||||
md5_zip = hashlib.md5(file(_zip, 'r').read()).digest().encode('hex') |
||||
os.chdir("..") |
||||
|
||||
print "" |
||||
print "Packages are ready:" |
||||
print "dist/%s "%_tgz, md5_tgz |
||||
print "dist/%s "%_zip, md5_zip |
||||
print "To make a release, upload the files to the server, and update the webpages in branch gh-pages" |
||||
|
||||
@ -0,0 +1,24 @@
|
||||
#!/bin/bash |
||||
# |
||||
# This script creates a virtualenv named 'env' and installs all |
||||
# python dependencies before activating the env and running Electrum. |
||||
# If 'env' already exists, it is activated and Electrum is started |
||||
# without any installations. Additionally, the PYTHONPATH environment |
||||
# variable is set properly before running Electrum. |
||||
# |
||||
# python-qt and its dependencies will still need to be installed with |
||||
# your package manager. |
||||
|
||||
if [ -e ./env/bin/activate ]; then |
||||
source ./env/bin/activate |
||||
else |
||||
virtualenv env |
||||
source ./env/bin/activate |
||||
python setup.py install |
||||
fi |
||||
|
||||
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH |
||||
|
||||
./electrum |
||||
|
||||
deactivate |
||||
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 27 KiB |
Loading…
Reference in new issue