forked from SoCuul/SCInsta
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-dev.sh
More file actions
executable file
·39 lines (31 loc) · 1.7 KB
/
build-dev.sh
File metadata and controls
executable file
·39 lines (31 loc) · 1.7 KB
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
36
37
38
39
#!/usr/bin/env bash
set -e
echo 'Note: This script is meant to be used while developing the tweak.'
echo ' This does not build "libflex" or "FLEXing", they must be built manually and moved to ./packages'
echo
if [ "$1" == "true" ];
then
# Package & deploy app to device
./build.sh sideload --dev
# Install to device
cp -fr ./packages/SCInsta-sideloaded.ipa ~/Documents/Signing/SCInsta/ipas/UNSIGNED.ipa
cd ~/Documents/Signing
./sign.sh SCInsta
./deploy.sh SCInsta true
else
# Kill LiveContainer process on iPhone
pymobiledevice3 developer dvt pkill "LiveContainer" --tunnel ""
# Built tweak and deploy to live container
make clean
make DEV=1
# Change framework locations to @rpath
install_name_tool -change "/Library/Frameworks/Cephei.framework/Cephei" "@rpath/Cephei.framework/Cephei" ".theos/obj/debug/SCInsta.dylib" 2>/dev/null || true
install_name_tool -change "/Library/Frameworks/CepheiPrefs.framework/CepheiPrefs" "@rpath/CepheiPrefs.framework/CepheiPrefs" ".theos/obj/debug/SCInsta.dylib" 2>/dev/null || true
install_name_tool -change "/Library/Frameworks/CepheiUI.framework/CepheiUI" "@rpath/CepheiUI.framework/CepheiUI" ".theos/obj/debug/SCInsta.dylib" 2>/dev/null || true
install_name_tool -change "/Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate" "@rpath/CydiaSubstrate.framework/CydiaSubstrate" ".theos/obj/debug/SCInsta.dylib" 2>/dev/null || true
# Copy to livecontainer tweaks folder
cp -fr .theos/obj/debug/SCInsta.dylib livecontainer/Documents/Tweaks/SCInsta/SCInsta.dylib
# Launch SCInsta on iPhone
sleep 1
pymobiledevice3 developer dvt launch --kill-existing --tunnel "" com.socuul.scinsta-devlauncher
fi