Skip to content

Commit

Permalink
Force install cbindgen
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-mullvad committed Sep 5, 2024
1 parent 428f4eb commit b560d6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build-apk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ mkdir -p "app/build/extraAssets"
mkdir -p "app/build/extraJni"
popd

cargo install --force cbindgen

for ARCHITECTURE in ${ARCHITECTURES:-x86_64}; do
case "$ARCHITECTURE" in
"x86_64")
Expand All @@ -98,7 +100,7 @@ for ARCHITECTURE in ${ARCHITECTURES:-x86_64}; do
esac

echo "Building mullvad-daemon for $TARGET"
cargo build "${CARGO_ARGS[@]}" --target "$TARGET" --package mullvad-jni -j 1
cargo build "${CARGO_ARGS[@]}" --target "$TARGET" --package mullvad-jni

STRIP_TOOL="${NDK_TOOLCHAIN_DIR}/llvm-strip"
TARGET_LIB_PATH="$SCRIPT_DIR/android/app/build/extraJni/$ABI/libmullvad_jni.so"
Expand Down

0 comments on commit b560d6d

Please sign in to comment.