-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build scripts; make them fat and build for 10.11
- Loading branch information
Showing
3 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [[ ! -d libplist ]]; then | ||
echo 'Downloading libplist' | ||
curl -L# https://github.com/libimobiledevice/libplist/archive/2.2.0.tar.gz -o libplist.tar.gz | ||
rm -rf libplist | ||
mkdir libplist | ||
tar -xf libplist.tar.gz -C libplist --strip-components=1 | ||
fi | ||
|
||
if [[ ! -d libusbmuxd ]]; then | ||
echo 'Downloading libusbmuxd' | ||
curl -L# https://github.com/libimobiledevice/libusbmuxd/archive/2.0.2.tar.gz -o libusbmuxd.tar.gz | ||
rm -rf libusbmuxd | ||
mkdir libusbmuxd | ||
tar -xf libusbmuxd.tar.gz -C libusbmuxd --strip-components=1 | ||
fi | ||
|
||
export CFLAGS="-arch x86_64 -arch arm64 -mmacosx-version-min=10.11" | ||
|
||
cd libplist | ||
./autogen.sh \ | ||
--disable-shared \ | ||
--without-cython | ||
make clean | ||
make -j16 | ||
cd .. | ||
|
||
cd libusbmuxd | ||
libplist_LIBS="$PWD/../libplist/src/.libs/libplist-2.0.la" \ | ||
./autogen.sh \ | ||
--disable-shared | ||
make clean | ||
make -j16 | ||
cd .. | ||
|
||
cp libusbmuxd/tools/iproxy ../Betelguese/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [[ ! -d sshpass ]]; then | ||
echo 'Downloading sshpass' | ||
curl -L# https://downloads.sourceforge.net/project/sshpass/sshpass/1.09/sshpass-1.09.tar.gz -o sshpass.tar.gz | ||
rm -rf sshpass | ||
mkdir sshpass | ||
tar -xf sshpass.tar.gz -C sshpass --strip-components=1 | ||
fi | ||
|
||
export CFLAGS="-arch x86_64 -arch arm64 -mmacosx-version-min=10.11 -Os" | ||
|
||
cd sshpass | ||
./configure | ||
make clean | ||
make -j16 | ||
cd .. | ||
|
||
cp sshpass/sshpass ../Betelguese/ |