File tree 3 files changed +10
-5
lines changed
3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -32,5 +32,5 @@ allprojects {
32
32
else -> throw IllegalArgumentException (" Unknown platform: $triplet " )
33
33
}
34
34
35
- ext[" platform" ] = getPlatform(project.properties[ " target" ] as ? String ? : " " )
35
+ ext[" platform" ] = getPlatform(project.property( " target" ) as ? String ? : throw AssertionError ( " Invalid target " ) )
36
36
}
Original file line number Diff line number Diff line change 8
8
# Example: ./build.sh x86_64-unknown-linux-gnu
9
9
# ###################################################################################
10
10
11
+ target=$1
12
+
13
+ echo " Building for target: $target "
14
+
11
15
pushd native
12
- cargo build -r --target=$1
16
+ cargo build -r --target=$target
13
17
popd
14
18
15
19
chmod u+x gradlew
16
- ./gradlew build -Dtarget= $1
20
+ ./gradlew --console plain build -Ptarget= $target
Original file line number Diff line number Diff line change 8
8
# Example: ./install.sh x86_64-unknown-linux-gnu
9
9
# ###################################################################################
10
10
11
- ./build.sh $1
12
- ./gradlew publishToMavenLocal -Dtarget=$1
11
+ target=$1
12
+ ./build.sh $target
13
+ ./gradlew --console plain publishToMavenLocal -Ptarget=$target
You can’t perform that action at this time.
0 commit comments