@@ -28,7 +28,7 @@ def setup():
2828 subprocess .check_call (['git' , 'clone' , 'https://github.com/bitweb-project/Bitweb_old_api_for_back_compatibility/bitweb-detached-sigs.git' ])
2929 if not os .path .isdir ('gitian-builder' ):
3030 subprocess .check_call (['git' , 'clone' , 'https://github.com/devrandom/gitian-builder.git' ])
31- if not os .path .isdir ('bitweb ' ):
31+ if not os .path .isdir ('Bitweb_old_api_for_back_compatibility ' ):
3232 subprocess .check_call (['git' , 'clone' , 'https://github.com/bitweb-project/Bitweb_old_api_for_back_compatibility.git' ])
3333 os .chdir ('gitian-builder' )
3434 make_image_prog = ['bin/make-base-vm' , '--suite' , 'bionic' , '--arch' , 'amd64' ]
@@ -55,25 +55,25 @@ def build():
5555 subprocess .check_call (['wget' , '-N' , '-P' , 'inputs' , 'https://bitcoincore.org/cfields/osslsigncode-Backports-to-1.7.1.patch' ])
5656 subprocess .check_call (["echo 'a8c4e9cafba922f89de0df1f2152e7be286aba73f78505169bc351a7938dd911 inputs/osslsigncode-Backports-to-1.7.1.patch' | sha256sum -c" ], shell = True )
5757 subprocess .check_call (["echo 'f9a8cdb38b9c309326764ebc937cba1523a3a751a7ab05df3ecc99d18ae466c9 inputs/osslsigncode-1.7.1.tar.gz' | sha256sum -c" ], shell = True )
58- subprocess .check_call (['make' , '-C' , '../bitweb /depends' , 'download' , 'SOURCES_PATH=' + os .getcwd () + '/cache/common' ])
58+ subprocess .check_call (['make' , '-C' , '../Bitweb_old_api_for_back_compatibility /depends' , 'download' , 'SOURCES_PATH=' + os .getcwd () + '/cache/common' ])
5959
6060 if args .linux :
6161 print ('\n Compiling ' + args .version + ' Linux' )
62- subprocess .check_call (['bin/gbuild' , '-j' , args .jobs , '-m' , args .memory , '--commit' , 'bitweb =' + args .commit , '--url' , 'bitweb =' + args .url , '../bitweb /contrib/gitian-descriptors/gitian-linux.yml' ])
63- subprocess .check_call (['bin/gsign' , '-p' , args .sign_prog , '--signer' , args .signer , '--release' , args .version + '-linux' , '--destination' , '../gitian.sigs/' , '../bitweb /contrib/gitian-descriptors/gitian-linux.yml' ])
62+ subprocess .check_call (['bin/gbuild' , '-j' , args .jobs , '-m' , args .memory , '--commit' , 'Bitweb_old_api_for_back_compatibility =' + args .commit , '--url' , 'Bitweb_old_api_for_back_compatibility =' + args .url , '../Bitweb_old_api_for_back_compatibility /contrib/gitian-descriptors/gitian-linux.yml' ])
63+ subprocess .check_call (['bin/gsign' , '-p' , args .sign_prog , '--signer' , args .signer , '--release' , args .version + '-linux' , '--destination' , '../gitian.sigs/' , '../Bitweb_old_api_for_back_compatibility /contrib/gitian-descriptors/gitian-linux.yml' ])
6464 subprocess .check_call ('mv build/out/bitweb-*.tar.gz build/out/src/bitweb-*.tar.gz ../bitweb-binaries/' + args .version , shell = True )
6565
6666 if args .windows :
6767 print ('\n Compiling ' + args .version + ' Windows' )
68- subprocess .check_call (['bin/gbuild' , '-j' , args .jobs , '-m' , args .memory , '--commit' , 'bitweb =' + args .commit , '--url' , 'bitweb =' + args .url , '../bitweb /contrib/gitian-descriptors/gitian-win.yml' ])
69- subprocess .check_call (['bin/gsign' , '-p' , args .sign_prog , '--signer' , args .signer , '--release' , args .version + '-win-unsigned' , '--destination' , '../gitian.sigs/' , '../bitweb /contrib/gitian-descriptors/gitian-win.yml' ])
68+ subprocess .check_call (['bin/gbuild' , '-j' , args .jobs , '-m' , args .memory , '--commit' , 'Bitweb_old_api_for_back_compatibility =' + args .commit , '--url' , 'Bitweb_old_api_for_back_compatibility =' + args .url , '../Bitweb_old_api_for_back_compatibility /contrib/gitian-descriptors/gitian-win.yml' ])
69+ subprocess .check_call (['bin/gsign' , '-p' , args .sign_prog , '--signer' , args .signer , '--release' , args .version + '-win-unsigned' , '--destination' , '../gitian.sigs/' , '../Bitweb_old_api_for_back_compatibility /contrib/gitian-descriptors/gitian-win.yml' ])
7070 subprocess .check_call ('mv build/out/bitweb-*-win-unsigned.tar.gz inputs/' , shell = True )
7171 subprocess .check_call ('mv build/out/bitweb-*.zip build/out/bitweb-*.exe ../bitweb-binaries/' + args .version , shell = True )
7272
7373 if args .macos :
7474 print ('\n Compiling ' + args .version + ' MacOS' )
75- subprocess .check_call (['bin/gbuild' , '-j' , args .jobs , '-m' , args .memory , '--commit' , 'bitweb =' + args .commit , '--url' , 'bitweb =' + args .url , '../bitweb /contrib/gitian-descriptors/gitian-osx.yml' ])
76- subprocess .check_call (['bin/gsign' , '-p' , args .sign_prog , '--signer' , args .signer , '--release' , args .version + '-osx-unsigned' , '--destination' , '../gitian.sigs/' , '../bitweb /contrib/gitian-descriptors/gitian-osx.yml' ])
75+ subprocess .check_call (['bin/gbuild' , '-j' , args .jobs , '-m' , args .memory , '--commit' , 'Bitweb_old_api_for_back_compatibility =' + args .commit , '--url' , 'Bitweb_old_api_for_back_compatibility =' + args .url , '../Bitweb_old_api_for_back_compatibility /contrib/gitian-descriptors/gitian-osx.yml' ])
76+ subprocess .check_call (['bin/gsign' , '-p' , args .sign_prog , '--signer' , args .signer , '--release' , args .version + '-osx-unsigned' , '--destination' , '../gitian.sigs/' , '../Bitweb_old_api_for_back_compatibility /contrib/gitian-descriptors/gitian-osx.yml' ])
7777 subprocess .check_call ('mv build/out/bitweb-*-osx-unsigned.tar.gz inputs/' , shell = True )
7878 subprocess .check_call ('mv build/out/bitweb-*.tar.gz build/out/bitweb-*.dmg ../bitweb-binaries/' + args .version , shell = True )
7979
@@ -95,16 +95,16 @@ def sign():
9595 if args .windows :
9696 print ('\n Signing ' + args .version + ' Windows' )
9797 subprocess .check_call ('cp inputs/bitweb-' + args .version + '-win-unsigned.tar.gz inputs/bitweb-win-unsigned.tar.gz' , shell = True )
98- subprocess .check_call (['bin/gbuild' , '-i' , '--commit' , 'signature=' + args .commit , '../bitweb /contrib/gitian-descriptors/gitian-win-signer.yml' ])
99- subprocess .check_call (['bin/gsign' , '-p' , args .sign_prog , '--signer' , args .signer , '--release' , args .version + '-win-signed' , '--destination' , '../gitian.sigs/' , '../bitweb /contrib/gitian-descriptors/gitian-win-signer.yml' ])
98+ subprocess .check_call (['bin/gbuild' , '-i' , '--commit' , 'signature=' + args .commit , '../Bitweb_old_api_for_back_compatibility /contrib/gitian-descriptors/gitian-win-signer.yml' ])
99+ subprocess .check_call (['bin/gsign' , '-p' , args .sign_prog , '--signer' , args .signer , '--release' , args .version + '-win-signed' , '--destination' , '../gitian.sigs/' , '../Bitweb_old_api_for_back_compatibility /contrib/gitian-descriptors/gitian-win-signer.yml' ])
100100 subprocess .check_call ('mv build/out/bitweb-*win64-setup.exe ../bitweb-binaries/' + args .version , shell = True )
101101 subprocess .check_call ('mv build/out/bitweb-*win32-setup.exe ../bitweb-binaries/' + args .version , shell = True )
102102
103103 if args .macos :
104104 print ('\n Signing ' + args .version + ' MacOS' )
105105 subprocess .check_call ('cp inputs/bitweb-' + args .version + '-osx-unsigned.tar.gz inputs/bitweb-osx-unsigned.tar.gz' , shell = True )
106- subprocess .check_call (['bin/gbuild' , '-i' , '--commit' , 'signature=' + args .commit , '../bitweb /contrib/gitian-descriptors/gitian-osx-signer.yml' ])
107- subprocess .check_call (['bin/gsign' , '-p' , args .sign_prog , '--signer' , args .signer , '--release' , args .version + '-osx-signed' , '--destination' , '../gitian.sigs/' , '../bitweb /contrib/gitian-descriptors/gitian-osx-signer.yml' ])
106+ subprocess .check_call (['bin/gbuild' , '-i' , '--commit' , 'signature=' + args .commit , '../Bitweb_old_api_for_back_compatibility /contrib/gitian-descriptors/gitian-osx-signer.yml' ])
107+ subprocess .check_call (['bin/gsign' , '-p' , args .sign_prog , '--signer' , args .signer , '--release' , args .version + '-osx-signed' , '--destination' , '../gitian.sigs/' , '../Bitweb_old_api_for_back_compatibility /contrib/gitian-descriptors/gitian-osx-signer.yml' ])
108108 subprocess .check_call ('mv build/out/bitweb-osx-signed.dmg ../bitweb-binaries/' + args .version + '/bitweb-' + args .version + '-osx.dmg' , shell = True )
109109
110110 os .chdir (workdir )
@@ -122,15 +122,15 @@ def verify():
122122 os .chdir ('gitian-builder' )
123123
124124 print ('\n Verifying v' + args .version + ' Linux\n ' )
125- subprocess .check_call (['bin/gverify' , '-v' , '-d' , '../gitian.sigs/' , '-r' , args .version + '-linux' , '../bitweb /contrib/gitian-descriptors/gitian-linux.yml' ])
125+ subprocess .check_call (['bin/gverify' , '-v' , '-d' , '../gitian.sigs/' , '-r' , args .version + '-linux' , '../Bitweb_old_api_for_back_compatibility /contrib/gitian-descriptors/gitian-linux.yml' ])
126126 print ('\n Verifying v' + args .version + ' Windows\n ' )
127- subprocess .check_call (['bin/gverify' , '-v' , '-d' , '../gitian.sigs/' , '-r' , args .version + '-win-unsigned' , '../bitweb /contrib/gitian-descriptors/gitian-win.yml' ])
127+ subprocess .check_call (['bin/gverify' , '-v' , '-d' , '../gitian.sigs/' , '-r' , args .version + '-win-unsigned' , '../Bitweb_old_api_for_back_compatibility /contrib/gitian-descriptors/gitian-win.yml' ])
128128 print ('\n Verifying v' + args .version + ' MacOS\n ' )
129- subprocess .check_call (['bin/gverify' , '-v' , '-d' , '../gitian.sigs/' , '-r' , args .version + '-osx-unsigned' , '../bitweb /contrib/gitian-descriptors/gitian-osx.yml' ])
129+ subprocess .check_call (['bin/gverify' , '-v' , '-d' , '../gitian.sigs/' , '-r' , args .version + '-osx-unsigned' , '../Bitweb_old_api_for_back_compatibility /contrib/gitian-descriptors/gitian-osx.yml' ])
130130 print ('\n Verifying v' + args .version + ' Signed Windows\n ' )
131- subprocess .check_call (['bin/gverify' , '-v' , '-d' , '../gitian.sigs/' , '-r' , args .version + '-win-signed' , '../bitweb /contrib/gitian-descriptors/gitian-win-signer.yml' ])
131+ subprocess .check_call (['bin/gverify' , '-v' , '-d' , '../gitian.sigs/' , '-r' , args .version + '-win-signed' , '../Bitweb_old_api_for_back_compatibility /contrib/gitian-descriptors/gitian-win-signer.yml' ])
132132 print ('\n Verifying v' + args .version + ' Signed MacOS\n ' )
133- subprocess .check_call (['bin/gverify' , '-v' , '-d' , '../gitian.sigs/' , '-r' , args .version + '-osx-signed' , '../bitweb /contrib/gitian-descriptors/gitian-osx-signer.yml' ])
133+ subprocess .check_call (['bin/gverify' , '-v' , '-d' , '../gitian.sigs/' , '-r' , args .version + '-osx-signed' , '../Bitweb_old_api_for_back_compatibility /contrib/gitian-descriptors/gitian-osx-signer.yml' ])
134134
135135 os .chdir (workdir )
136136
@@ -208,10 +208,10 @@ def main():
208208 if args .setup :
209209 setup ()
210210
211- os .chdir ('bitweb ' )
211+ os .chdir ('Bitweb_old_api_for_back_compatibility ' )
212212 if args .pull :
213213 subprocess .check_call (['git' , 'fetch' , args .url , 'refs/pull/' + args .version + '/merge' ])
214- os .chdir ('../gitian-builder/inputs/bitweb ' )
214+ os .chdir ('../gitian-builder/inputs/Bitweb_old_api_for_back_compatibility ' )
215215 subprocess .check_call (['git' , 'fetch' , args .url , 'refs/pull/' + args .version + '/merge' ])
216216 args .commit = subprocess .check_output (['git' , 'show' , '-s' , '--format=%H' , 'FETCH_HEAD' ], universal_newlines = True , encoding = 'utf8' ).strip ()
217217 args .version = 'pull-' + args .version
0 commit comments