Skip to content

Commit

Permalink
"/Library/Application Support" => "/Library"
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelomer committed Feb 18, 2020
1 parent bb7bcd7 commit 2992a13
Show file tree
Hide file tree
Showing 18 changed files with 30 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ExampleMods/colorfulgoose/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include $(THEOS)/makefiles/common.mk
BUNDLE_NAME = ColorfulGoose
ColorfulGoose_FILES = PXColorfulGoose.m
ColorfulGoose_CFLAGS = -fobjc-arc
ColorfulGoose_INSTALL_PATH = /Library/Application Support/MobileGoose/Mods
ColorfulGoose_INSTALL_PATH = /Library/MobileGoose/Mods
ColorfulGoose_FRAMEWORKS = UIKit Foundation

include $(THEOS_MAKE_PATH)/bundle.mk
2 changes: 1 addition & 1 deletion ExampleMods/colorfulgoose/control
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: com.pixelomer.colorfulgoose
Name: ColorfulGoose
Description: Add color to your goose
Version: 1.1-1
Version: 1.1.1
Priority: optional
Section: Tweaks
Architecture: iphoneos-arm
Expand Down
2 changes: 1 addition & 1 deletion ExampleMods/joethegoose/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include $(THEOS)/makefiles/common.mk
BUNDLE_NAME = JoeTheGoose
JoeTheGoose_FILES = PXJoeTheGooseMod.m
JoeTheGoose_CFLAGS = -fobjc-arc
JoeTheGoose_INSTALL_PATH = /Library/Application Support/MobileGoose/Mods
JoeTheGoose_INSTALL_PATH = /Library/MobileGoose/Mods
JoeTheGoose_FRAMEWORKS = UIKit Foundation

include $(THEOS_MAKE_PATH)/bundle.mk
2 changes: 1 addition & 1 deletion Prefs/Resources/Root.plist
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<key>label</key>
<string>Gifts</string>
<key>footerText</key>
<string>You can put images and notes inside "/Library/Application Support/MobileGoose" for the goose to bring.</string>
<string>You can put images and notes inside "/Library/MobileGoose" for the goose to bring.</string>
</dict>
<dict>
<key>cell</key>
Expand Down
2 changes: 1 addition & 1 deletion Template/goose_mod/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ include @@THEOS@@/makefiles/common.mk
BUNDLE_NAME = @@PROJECTNAME@@
@@PROJECTNAME@@_FILES = @@CLASSNAME@@.m
@@PROJECTNAME@@_CFLAGS = -fobjc-arc
@@PROJECTNAME@@_INSTALL_PATH = /Library/Application Support/MobileGoose/Mods
@@PROJECTNAME@@_INSTALL_PATH = /Library/MobileGoose/Mods
@@PROJECTNAME@@_FRAMEWORKS = UIKit Foundation

include $(THEOS_MAKE_PATH)/bundle.mk
Binary file modified Template/iphone_goose_mod.nic.tar
Binary file not shown.
2 changes: 1 addition & 1 deletion Tweak.xm
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static void MGResetPreferences(
NULL,
0
);
NSString *dir = @"/Library/Application Support/MobileGoose/Mods";
NSString *dir = @"/Library/MobileGoose/Mods";
NSArray *mods = [NSFileManager.defaultManager
contentsOfDirectoryAtPath:dir
error:nil
Expand Down
2 changes: 1 addition & 1 deletion control
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: com.pixelomer.mobilegoose
Name: MobileGoose
Depends: mobilesubstrate, preferenceloader
Version: 1.1
Version: 1.1.1
Architecture: iphoneos-arm
Description: An annoying goose for your iDevice
Maintainer: PixelOmer
Expand Down
22 changes: 22 additions & 0 deletions layout/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

mv() {
command mv "/Library/Application Support/MobileGoose/$1/"* "/Library/MobileGoose/$1/" 2> /dev/null > /dev/null || true
}

case "$1" in

triggered)
#echo "Refreshing active mods..."
;;

configure)
mv Memes
mv Notes

rm -rf "/Library/Application Support/MobileGoose/Memes" "/Library/Application Support/MobileGoose/Notes" || true
rmdir "/Library/Application Support/MobileGoose/Mods" 2> /dev/null > /dev/null || true
rmdir "/Library/Application Support/MobileGoose" 2> /dev/null > /dev/null || true
;;

esac
1 change: 1 addition & 0 deletions layout/DEBIAN/triggers
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
interest /Library/MobileGoose/Mods

0 comments on commit 2992a13

Please sign in to comment.