-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Expand file tree
/
Copy pathbuild-dev.sh
More file actions
executable file
·28 lines (20 loc) · 748 Bytes
/
build-dev.sh
File metadata and controls
executable file
·28 lines (20 loc) · 748 Bytes
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
#!/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
_scinsta_dev_before
# Build tweak and package into ipa
./build.sh sideload --dev
_scinsta_dev_after
else
_scinsta_devquick_before
# Built tweak and deploy to live container
make clean
make DEV=1
# Change framework locations to @rpath
install_name_tool -change "/Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate" "@rpath/CydiaSubstrate.framework/CydiaSubstrate" ".theos/obj/debug/SCInsta.dylib" 2>/dev/null || true
_scinsta_devquick_after
fi