Skip to content

Commit

Permalink
Add build scripts; make them fat and build for 10.11
Browse files Browse the repository at this point in the history
  • Loading branch information
kirb committed Apr 3, 2021
1 parent 61ca4c3 commit 1836257
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ xcuserdata/
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
Expand Down Expand Up @@ -88,5 +87,11 @@ fastlane/test_output
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

.DS_Store
Betelguese/.DS_Store

build/*.tar.gz
build/libplist/
build/libusbmuxd/
build/sshpass/
38 changes: 38 additions & 0 deletions build/iproxy.sh
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/
20 changes: 20 additions & 0 deletions build/sshpass.sh
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/

0 comments on commit 1836257

Please sign in to comment.