@ -65,14 +65,14 @@ def build():
print ( ' \n Compiling ' + args . version + ' Windows ' )
subprocess . check_call ( [ ' bin/gbuild ' , ' -j ' , args . jobs , ' -m ' , args . memory , ' --commit ' , ' bitcoin= ' + args . commit , ' --url ' , ' bitcoin= ' + args . url , ' ../bitcoin/contrib/gitian-descriptors/gitian-win.yml ' ] )
subprocess . check_call ( [ ' bin/gsign ' , ' -p ' , args . sign_prog , ' --signer ' , args . signer , ' --release ' , args . version + ' -win-unsigned ' , ' --destination ' , ' ../gitian.sigs/ ' , ' ../bitcoin/contrib/gitian-descriptors/gitian-win.yml ' ] )
subprocess . check_call ( ' mv build/out/bitcoin-*-win-unsigned.tar.gz inputs/ bitcoin-win-unsigned.tar.gz ' , shell = True )
subprocess . check_call ( ' mv build/out/bitcoin-*-win-unsigned.tar.gz inputs/ ' , shell = True )
subprocess . check_call ( ' mv build/out/bitcoin-*.zip build/out/bitcoin-*.exe ../bitcoin-binaries/ ' + args . version , shell = True )
if args . macos :
print ( ' \n Compiling ' + args . version + ' MacOS ' )
subprocess . check_call ( [ ' bin/gbuild ' , ' -j ' , args . jobs , ' -m ' , args . memory , ' --commit ' , ' bitcoin= ' + args . commit , ' --url ' , ' bitcoin= ' + args . url , ' ../bitcoin/contrib/gitian-descriptors/gitian-osx.yml ' ] )
subprocess . check_call ( [ ' bin/gsign ' , ' -p ' , args . sign_prog , ' --signer ' , args . signer , ' --release ' , args . version + ' -osx-unsigned ' , ' --destination ' , ' ../gitian.sigs/ ' , ' ../bitcoin/contrib/gitian-descriptors/gitian-osx.yml ' ] )
subprocess . check_call ( ' mv build/out/bitcoin-*-osx-unsigned.tar.gz inputs/ bitcoin-osx-unsigned.tar.gz ' , shell = True )
subprocess . check_call ( ' mv build/out/bitcoin-*-osx-unsigned.tar.gz inputs/ ' , shell = True )
subprocess . check_call ( ' mv build/out/bitcoin-*.tar.gz build/out/bitcoin-*.dmg ../bitcoin-binaries/ ' + args . version , shell = True )
os . chdir ( workdir )
@ -92,6 +92,7 @@ def sign():
if args . windows :
print ( ' \n Signing ' + args . version + ' Windows ' )
subprocess . check_call ( ' cp inputs/bitcoin- ' + args . version + ' -win-unsigned.tar.gz inputs/bitcoin-win-unsigned.tar.gz ' , shell = True )
subprocess . check_call ( [ ' bin/gbuild ' , ' -i ' , ' --commit ' , ' signature= ' + args . commit , ' ../bitcoin/contrib/gitian-descriptors/gitian-win-signer.yml ' ] )
subprocess . check_call ( [ ' bin/gsign ' , ' -p ' , args . sign_prog , ' --signer ' , args . signer , ' --release ' , args . version + ' -win-signed ' , ' --destination ' , ' ../gitian.sigs/ ' , ' ../bitcoin/contrib/gitian-descriptors/gitian-win-signer.yml ' ] )
subprocess . check_call ( ' mv build/out/bitcoin-*win64-setup.exe ../bitcoin-binaries/ ' + args . version , shell = True )
@ -99,6 +100,7 @@ def sign():
if args . macos :
print ( ' \n Signing ' + args . version + ' MacOS ' )
subprocess . check_call ( ' cp inputs/bitcoin- ' + args . version + ' -osx-unsigned.tar.gz inputs/bitcoin-osx-unsigned.tar.gz ' , shell = True )
subprocess . check_call ( [ ' bin/gbuild ' , ' -i ' , ' --commit ' , ' signature= ' + args . commit , ' ../bitcoin/contrib/gitian-descriptors/gitian-osx-signer.yml ' ] )
subprocess . check_call ( [ ' bin/gsign ' , ' -p ' , args . sign_prog , ' --signer ' , args . signer , ' --release ' , args . version + ' -osx-signed ' , ' --destination ' , ' ../gitian.sigs/ ' , ' ../bitcoin/contrib/gitian-descriptors/gitian-osx-signer.yml ' ] )
subprocess . check_call ( ' mv build/out/bitcoin-osx-signed.dmg ../bitcoin-binaries/ ' + args . version + ' /bitcoin- ' + args . version + ' -osx.dmg ' , shell = True )