This repository has been archived on 2023-05-28. You can view files and clone it, but cannot push or open issues/pull-requests.
SkyHook-Native/build.sh

24 lines
587 B
Bash
Executable File

#!/bin/bash
set -x
platform=$(uname)
echo Current platform: $platform
mkdir -p out/x86_64
mkdir -p out/aarch64
mkdir -p out/i686
if [[ $platform == 'Linux' ]]; then
cargo build --release --target x86_64-unknown-linux-gnu
cp target/x86_64-unknown-linux-gnu/release/libskyhook.so out/x86_64
elif [[ $platform == 'Darwin' ]]; then
cargo build --release --target x86_64-apple-darwin
cargo build --release --target aarch64-apple-darwin
cp target/x86_64-apple-darwin/release/libskyhook.dylib out/x86_64
cp target/aarch64-apple-darwin/release/libskyhook.dylib out/aarch64
fi