Skip to content

Commit

Permalink
Refactoring phase 3
Browse files Browse the repository at this point in the history
There are several changes rolled into this commit. I probably should've
done it as 2 or 3 commits, but it's not worth taking the time to redo it.

-renamed insert-dylib.sh to insert-hax.sh (it's more descriptive IMO)
-changed other files to account for insert-dylib->insert-hax
-changed set-vars to end by invoking insert-hax
-changed insert-hax to instruct the user to quit Terminal and start the
 installer the normal way
  • Loading branch information
barrykn committed Jun 26, 2020
1 parent 3c7f144 commit ab660c7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions payloads/insert-dylib.sh → payloads/insert-hax.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ pmset -a displaysleep 0 sleep 0

launchctl setenv DYLD_INSERT_LIBRARIES "$LIBPATH"

echo
echo 'You may now quit Terminal and start the Installer as normal.'
2 changes: 1 addition & 1 deletion payloads/run-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ INSTALLERNAME="$BASE/$APPNAME/Contents/MacOS/InstallAssistant"

# Before actually running the installer, run insert-dylib.sh to
# set things up.
"$BASE/insert-dylib.sh"
"$BASE/insert-hax.sh"

# The obvious, sane, and efficient approach would be to use the return
# value of insert-dylib.sh to determine whether to proceed or stop. However,
Expand Down
6 changes: 4 additions & 2 deletions payloads/set-vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ csrutil authenticated-root disable

echo
echo 'Done changing boot-args and csrutil settings.'
echo 'You may now run the installer using:'
echo '/Volumes/Image\ Volume/run-installer.sh'
echo

# Now set things up to run the installer.
"/Volumes/Image Volume/insert-hax.sh"

0 comments on commit ab660c7

Please sign in to comment.