diff options
| author | spv <aquaticvegetable@gmail.com> | 2022-04-20 14:10:27 -0400 |
|---|---|---|
| committer | spv <aquaticvegetable@gmail.com> | 2022-04-20 14:10:27 -0400 |
| commit | 7caa231e0b0fa607080586725fbbc9628a1cc031 (patch) | |
| tree | e22a643aefbc73c703b90f2454c0f75374696399 /build.sh | |
hello and welcome back to hell
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..03fbe43 --- /dev/null +++ b/build.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +cat js/*.js > exp.js +echo >> exp.js +echo "main();" >> exp.js + +# build for host +clang -I $(pwd)/inc/ \ + src/main.c \ + src/ip_tools.c \ + src/stage0_primitives.c \ + src/stage1_primitives.c \ + src/patchfinder.c \ + src/stage2.c \ + src/shit.c \ + -o bin/main \ + -D__WHOAMI__="\"$(whoami)\"" \ + -D__PWD__="\"$(pwd)\"" \ + -g + +# build armv7 (for untether install) +xcrun -sdk iphoneos clang -arch armv7 src/main.c \ + src/ip_tools.c \ + src/stage0_primitives.c \ + src/stage1_primitives.c \ + src/patchfinder.c \ + src/stage2.c \ + src/shit.c \ + -o bin/main_arm \ + -D__WHOAMI__="\"$(whoami)\"" \ + -D__PWD__="\"$(pwd)\"" \ + -framework JavaScriptCore \ + -g + +ldid -Sent.xml bin/main_arm
\ No newline at end of file |
