-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-cygwin.sh
35 lines (33 loc) · 1.15 KB
/
build-cygwin.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
function build_libimobiledevice(){
libs=( "libplist" "libusbmuxd" "libimobiledevice" "libirecovery" "idevicerestore" )
buildlibs() {
for i in "${libs[@]}"
do
echo -e "\033[1;33m[*] Fetching $i...\033[1;32m"
git clone https://github.com/libimobiledevice/${i}.git
cd $i
echo -e "\033[1;33m[*] Configuring $i...\033[1;32m"
autoreconf --install
./autogen.sh --prefix=/usr --without-cython
echo -e "\033[1;33m[*] Building $i...\033[1;32m"
make > /dev/null
echo -e "\033[1;33m[*] Installing $i...\033[1;32m"
sudo make install > /dev/null
cd ..
done
}
echo -e "\033[1;33m[*] Building and installing libplist, libusbmuxd, libimobiledevice, libirecovery, idevicerestore..."
# Create a new dist folder
if [ -d `pwd`/dist ]; then
echo -e "\033[1;31m[*] Removing old dist directory"
rm -rf ./dist
fi
echo -e "\033[1;33m[*] Creating new dist directory"
mkdir dist
cd dist
buildlibs
cd ..
echo -e "\033[1;33m[*] Finished"
}
build_libimobiledevice