Skip to content

Commit

Permalink
Remove extrainst binary and use shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
hirakujira committed Apr 16, 2021
1 parent ddad46a commit 0606a08
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 51 deletions.
9 changes: 1 addition & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,13 @@ THEOS_DEVICE_IP = 127.0.0.1 -p 2222

include $(THEOS)/makefiles/common.mk

TOOL_NAME = postrm extrainst_ killdaemon
TOOL_NAME = postrm killdaemon

postrm_FILES = postrm.mm
postrm_FRAMEWORKS = Foundation
postrm_INSTALL_PATH = /tmp
postrm_CODESIGN_FLAGS = -Sentitlements.xml

extrainst__FILES = extrainst.mm
extrainst__FRAMEWORKS = Foundation
extrainst__INSTALL_PATH = /tmp
extrainst__LIBRARIES = z
extrainst__CODESIGN_FLAGS = -Sentitlements.xml

killdaemon_FILES = killdaemon.mm
killdaemon_LIBRARIES = z
killdaemon_CODESIGN_FLAGS = -Sentitlements.xml
Expand All @@ -40,7 +34,6 @@ include $(THEOS_MAKE_PATH)/tweak.mk

after-stage::
mv -f $(THEOS_STAGING_DIR)/tmp/postrm ./layout/DEBIAN/postrm
mv -f $(THEOS_STAGING_DIR)/tmp/extrainst_ ./layout/DEBIAN/extrainst_
rm -Rf $(THEOS_STAGING_DIR)/tmp

before-package::
Expand Down
2 changes: 1 addition & 1 deletion control
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: com.cannathea.afc2d-arm64
Name: Apple File Conduit "2" (iOS 11+, arm64)
Version: 1.1.4
Version: 1.1.5
Description: Allow full file-system access over USB for all arm64 devices, especially useful for those on iOS 11 and above.
Section: System
Pre-Depends: dpkg (>= 1.14.25-8)
Expand Down
42 changes: 0 additions & 42 deletions extrainst.mm

This file was deleted.

3 changes: 3 additions & 0 deletions layout/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash

if [[ $1 == install || update ]]; then
echo "" > /usr/libexec/afc2dSupport
chmod 777 /usr/libexec/afc2dSupport

chown root:wheel /usr/bin/killdaemon
chmod 6755 /usr/bin/killdaemon
fi
Expand Down

0 comments on commit 0606a08

Please sign in to comment.