File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/sh
22
33set -e
44
@@ -8,12 +8,12 @@ cargo build --release
88
99[ " $CARGO_TARGET_DIR " = " " ] && CARGO_TARGET_DIR=target
1010
11- if [ " $( uname) " == " Darwin" ]; then
12- cp " $CARGO_TARGET_DIR " /release/libspectre_oxi.dylib ../lua/spectre_oxi.so
13- elif [ " $( expr substr $( uname -s) 1 5) " == " Linux" ]; then
14- cp " $CARGO_TARGET_DIR " /release/libspectre_oxi.so ../lua/spectre_oxi.so
15- elif [ " $( expr substr $( uname -s) 1 10) " == " MINGW32_NT" ]; then
16- cp " $CARGO_TARGET_DIR " /release/libspectre_oxi.dll ../lua/spectre_oxi.dll
11+ if [ " $( uname) " = " Darwin" ]; then
12+ cp -f " $CARGO_TARGET_DIR " /release/libspectre_oxi.dylib ../lua/spectre_oxi.so
13+ elif [ " $( expr substr $( uname -s) 1 5) " = " Linux" ]; then
14+ cp -f " $CARGO_TARGET_DIR " /release/libspectre_oxi.so ../lua/spectre_oxi.so
15+ elif [ " $( expr substr $( uname -s) 1 10) " = " MINGW32_NT" ]; then
16+ cp -f " $CARGO_TARGET_DIR " /release/libspectre_oxi.dll ../lua/spectre_oxi.dll
1717fi
1818rm -rf target
1919echo " Build Done"
You can’t perform that action at this time.
0 commit comments