@@ -9,28 +9,28 @@ void main() async {
99
1010 final tmpDir = createTmpDir ();
1111 print ("Building in $tmpDir " );
12- final libDir = "$tmpDir /secp256k1" ;
12+ final libDir = "$tmpDir /secp256k1-coinlib " ;
1313
1414 exitOnCode (
1515 await execWithStdio (
16- "git" , ["clone" , "https://github.com/bitcoin-core /secp256k1" , libDir],
16+ "git" , ["clone" , "https://github.com/peercoin /secp256k1-coinlib " , libDir],
1717 ),
18- "Could not clone secp256k1 to temporary build directory" ,
18+ "Could not clone secp256k1-coinlib to temporary build directory" ,
1919 );
2020
21- // Checkout to 0.5 .0 commit
21+ // Checkout to 0.7 .0 commit
2222 exitOnCode (
2323 await execWithStdio (
24- "git" , ["checkout" , "e3a885d42a7800c1ccebad94ad1e2b82c4df5c65 " ],
24+ "git" , ["checkout" , "69018e5b939d8d540ca6b237945100f4ecb5681e " ],
2525 workingDir: libDir,
2626 ),
27- "Could not checkout to v0.5 .0 commit" ,
27+ "Could not checkout to v0.7 .0 commit" ,
2828 );
2929
30- // Generate configure
30+ // Generate configure. Do not move to cmake on macOS yet
3131 exitCode = await execWithStdio ("sh" , ["./autogen.sh" ], workingDir: libDir);
3232 if (exitCode != 0 ) {
33- print ("Couldn't generate configure for secp256k1" );
33+ print ("Couldn't generate configure for secp256k1-coinlib " );
3434 exit (1 );
3535 }
3636
@@ -48,14 +48,14 @@ void main() async {
4848 workingDir: libDir,
4949 );
5050 if (exitCode != 0 ) {
51- print ("Failed to configure secp256k1" );
51+ print ("Failed to configure secp256k1-coinlib " );
5252 exit (1 );
5353 }
5454
5555 // Run make
5656 exitCode = await execWithStdio ("make" , [], workingDir: libDir);
5757 if (exitCode != 0 ) {
58- print ("Failed to make secp256k1" );
58+ print ("Failed to make secp256k1-coinlib " );
5959 exit (1 );
6060 }
6161
@@ -69,7 +69,7 @@ void main() async {
6969 // Copy framework to build directory
7070 final buildDir = "${Directory .current .path }/build" ;
7171 Directory (buildDir).create ();
72- final libFile = File ("$libDir /build/lib/libsecp256k1.2 .dylib" );
72+ final libFile = File ("$libDir /build/lib/libsecp256k1.6 .dylib" );
7373 await libFile.copy ("$buildDir /libsecp256k1.dylib" );
7474 print ("Created dylib in build directory" );
7575
0 commit comments