Compare commits
No commits in common. "538fffdf185c8ba70091368ddd14c92359c6401f" and "e2f970c0bada852350c6550f765427d6ca381b63" have entirely different histories.
538fffdf18
...
e2f970c0ba
|
@ -1,4 +1,3 @@
|
|||
/target
|
||||
/Cargo.lock
|
||||
out
|
||||
.DS_Store
|
28
build.sh
28
build.sh
|
@ -2,27 +2,19 @@
|
|||
|
||||
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
|
||||
cargo build --release --target x86_64-pc-windows-gnu
|
||||
cargo build --release --target i686-pc-windows-gnu
|
||||
# x86_64
|
||||
cargo build --release --target x86_64-unknown-linux-gnu
|
||||
# cargo build --release --target x86_64-apple-darwin
|
||||
cargo build --release --target x86_64-pc-windows-gnu
|
||||
|
||||
cp target/x86_64-unknown-linux-gnu/release/libskyhook.so out/x86_64
|
||||
cp target/x86_64-pc-windows-gnu/release/skyhook.dll out/x86_64
|
||||
|
||||
cp target/i686-pc-windows-gnu/release/skyhook.dll out/i686
|
||||
elif [[ $platform == 'Darwin' ]]; then
|
||||
cargo build --release --target x86_64-apple-darwin
|
||||
cargo build --release --target aarch64-apple-darwin
|
||||
# i686
|
||||
cargo build --release --target i686-pc-windows-gnu
|
||||
|
||||
cp target/x86_64-apple-darwin/release/libskyhook.dylib out/x86_64
|
||||
cp target/aarch64-apple-darwin/release/libskyhook.dylib out/aarch64
|
||||
fi
|
||||
cp target/x86_64-unknown-linux-gnu/release/libskyhook.so out/x86_64
|
||||
cp target/x86_64-pc-windows-gnu/release/skyhook.dll out/x86_64
|
||||
|
||||
cp target/i686-pc-windows-gnu/release/skyhook.dll out/i686
|
||||
|
|
|
@ -9,8 +9,5 @@ rustup target add x86_64-pc-windows-gnu
|
|||
rustup target add i686-unknown-linux-gnu
|
||||
rustup target add i686-pc-windows-gnu
|
||||
|
||||
# ARM
|
||||
rustup target add aarch64-apple-darwin
|
||||
|
||||
# sudo pacman -S mingw-w64-binutils mingw-w64-gcc mingw-w64-headers \
|
||||
# clang gcc zlib libmpc mpfr gmp
|
Reference in New Issue