mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-17 02:33:27 +01:00
Rename AltStore with variables (#17)
* iOS 14 for xcode 14 errors Signed-off-by: Joseph Mattello <mail@joemattiello.com> * add group.APP_GROUP to more plists Signed-off-by: Joseph Mattello <mail@joemattiello.com> * reorder altid groups Signed-off-by: Joseph Mattello <mail@joemattiello.com> * update to newer sparkle api Signed-off-by: Joseph Mattello <mail@joemattiello.com> * fix warnings in altsign and libmobdevice Signed-off-by: Joseph Mattello <mail@joemattiello.com> Co-authored-by: JJTech <jjtech@jjtech.dev>
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>ALTAppGroups</key>
|
<key>ALTAppGroups</key>
|
||||||
<array>
|
<array>
|
||||||
|
<string>group.$(APP_GROUP_IDENTIFIER)</string>
|
||||||
<string>group.com.rileytestut.AltStore</string>
|
<string>group.com.rileytestut.AltStore</string>
|
||||||
</array>
|
</array>
|
||||||
<key>ALTBundleIdentifier</key>
|
<key>ALTBundleIdentifier</key>
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict/>
|
<dict>
|
||||||
|
<key>com.apple.security.temporary-exception.mach-lookup.global-name</key>
|
||||||
|
<array>
|
||||||
|
<string>$(PRODUCT_BUNDLE_IDENTIFIER)-spks</string>
|
||||||
|
<string>$(PRODUCT_BUNDLE_IDENTIFIER)-spki</string>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
@@ -44,7 +44,8 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|||||||
@IBOutlet private var installMailPluginMenuItem: NSMenuItem!
|
@IBOutlet private var installMailPluginMenuItem: NSMenuItem!
|
||||||
@IBOutlet private var installAltStoreMenuItem: NSMenuItem!
|
@IBOutlet private var installAltStoreMenuItem: NSMenuItem!
|
||||||
@IBOutlet private var sideloadAppMenuItem: NSMenuItem!
|
@IBOutlet private var sideloadAppMenuItem: NSMenuItem!
|
||||||
|
@IBOutlet private var checkForUpdatesMenuItem: NSMenuItem!
|
||||||
|
|
||||||
private weak var authenticationAppleIDTextField: NSTextField?
|
private weak var authenticationAppleIDTextField: NSTextField?
|
||||||
private weak var authenticationPasswordTextField: NSSecureTextField?
|
private weak var authenticationPasswordTextField: NSSecureTextField?
|
||||||
|
|
||||||
@@ -56,23 +57,18 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|||||||
|
|
||||||
private var isAltPluginUpdateAvailable = false
|
private var isAltPluginUpdateAvailable = false
|
||||||
|
|
||||||
func applicationDidFinishLaunching(_ aNotification: Notification)
|
@IBOutlet private var updaterController: SPUStandardUpdaterController! = {
|
||||||
{
|
return SPUStandardUpdaterController(startingUpdater: true, updaterDelegate: nil, userDriverDelegate: nil)
|
||||||
|
}()
|
||||||
|
|
||||||
|
func applicationDidFinishLaunching(_ aNotification: Notification) {
|
||||||
UserDefaults.standard.registerDefaults()
|
UserDefaults.standard.registerDefaults()
|
||||||
|
|
||||||
UNUserNotificationCenter.current().delegate = self
|
UNUserNotificationCenter.current().delegate = self
|
||||||
|
|
||||||
ServerConnectionManager.shared.start()
|
ServerConnectionManager.shared.start()
|
||||||
ALTDeviceManager.shared.start()
|
ALTDeviceManager.shared.start()
|
||||||
|
|
||||||
#if STAGING
|
|
||||||
let feedURL: String = Bundle.main.infoDictionary!["SUFeedURL"]! as! String
|
|
||||||
#else
|
|
||||||
let feedURL: String = Bundle.main.infoDictionary!["SUFeedURL"]! as! String
|
|
||||||
#endif
|
|
||||||
|
|
||||||
SUUpdater.shared().feedURL = URL(string: feedURL)
|
|
||||||
|
|
||||||
let item = NSStatusBar.system.statusItem(withLength: -1)
|
let item = NSStatusBar.system.statusItem(withLength: -1)
|
||||||
item.menu = self.appMenu
|
item.menu = self.appMenu
|
||||||
item.button?.image = NSImage(named: "MenuBarIcon")
|
item.button?.image = NSImage(named: "MenuBarIcon")
|
||||||
@@ -610,3 +606,12 @@ extension AppDelegate: UNUserNotificationCenterDelegate
|
|||||||
completionHandler([.alert, .sound, .badge])
|
completionHandler([.alert, .sound, .badge])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MARK: - Sparkle
|
||||||
|
//extension AppDelegate: SPUUpdaterDelegate {
|
||||||
|
//
|
||||||
|
//}
|
||||||
|
//
|
||||||
|
//extension AppDelegate: SPUStandardUserDriverDelegate {
|
||||||
|
//
|
||||||
|
//}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="19529" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="21179.7" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19529"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="21179.7"/>
|
||||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<scenes>
|
<scenes>
|
||||||
@@ -61,6 +61,7 @@
|
|||||||
<outlet property="appMenu" destination="uQy-DD-JDr" id="7cY-Ov-AOW"/>
|
<outlet property="appMenu" destination="uQy-DD-JDr" id="7cY-Ov-AOW"/>
|
||||||
<outlet property="authenticationAppleIDTextField" destination="zLd-d8-ghZ" id="wW5-0J-zdq"/>
|
<outlet property="authenticationAppleIDTextField" destination="zLd-d8-ghZ" id="wW5-0J-zdq"/>
|
||||||
<outlet property="authenticationPasswordTextField" destination="9rp-Vx-rvB" id="ZoC-DI-jzQ"/>
|
<outlet property="authenticationPasswordTextField" destination="9rp-Vx-rvB" id="ZoC-DI-jzQ"/>
|
||||||
|
<outlet property="checkForUpdatesMenuItem" destination="Tnq-gD-Eic" id="wIe-Tx-KlM"/>
|
||||||
<outlet property="connectedDevicesMenu" destination="KJ9-WY-pW1" id="Mcv-64-iFU"/>
|
<outlet property="connectedDevicesMenu" destination="KJ9-WY-pW1" id="Mcv-64-iFU"/>
|
||||||
<outlet property="enableJITMenu" destination="la4-Sa-L3C" id="YrW-hR-uA7"/>
|
<outlet property="enableJITMenu" destination="la4-Sa-L3C" id="YrW-hR-uA7"/>
|
||||||
<outlet property="installAltStoreMenuItem" destination="MJ8-Lt-SSV" id="KYp-c5-8Ru"/>
|
<outlet property="installAltStoreMenuItem" destination="MJ8-Lt-SSV" id="KYp-c5-8Ru"/>
|
||||||
@@ -68,9 +69,10 @@
|
|||||||
<outlet property="launchAtLoginMenuItem" destination="IyR-FQ-upe" id="Fxn-EP-hwH"/>
|
<outlet property="launchAtLoginMenuItem" destination="IyR-FQ-upe" id="Fxn-EP-hwH"/>
|
||||||
<outlet property="sideloadAppMenuItem" destination="x0e-zI-0A2" id="GJo-FY-1GO"/>
|
<outlet property="sideloadAppMenuItem" destination="x0e-zI-0A2" id="GJo-FY-1GO"/>
|
||||||
<outlet property="sideloadIPAConnectedDevicesMenu" destination="IuI-bV-fTY" id="QQw-St-HfG"/>
|
<outlet property="sideloadIPAConnectedDevicesMenu" destination="IuI-bV-fTY" id="QQw-St-HfG"/>
|
||||||
|
<outlet property="updaterController" destination="9QV-ha-p2H" id="oSL-jR-IAQ"/>
|
||||||
</connections>
|
</connections>
|
||||||
</customObject>
|
</customObject>
|
||||||
<customObject id="Arf-IC-5eb" customClass="SUUpdater"/>
|
<customObject id="9QV-ha-p2H" customClass="SPUStandardUpdaterController"/>
|
||||||
<application id="hnw-xV-0zn" sceneMemberID="viewController">
|
<application id="hnw-xV-0zn" sceneMemberID="viewController">
|
||||||
<menu key="mainMenu" title="Main Menu" systemMenu="main" id="AYu-sK-qS6">
|
<menu key="mainMenu" title="Main Menu" systemMenu="main" id="AYu-sK-qS6">
|
||||||
<items>
|
<items>
|
||||||
@@ -132,7 +134,7 @@
|
|||||||
<menuItem title="Check for Updates..." id="Tnq-gD-Eic" userLabel="Check for Updates">
|
<menuItem title="Check for Updates..." id="Tnq-gD-Eic" userLabel="Check for Updates">
|
||||||
<modifierMask key="keyEquivalentModifierMask"/>
|
<modifierMask key="keyEquivalentModifierMask"/>
|
||||||
<connections>
|
<connections>
|
||||||
<action selector="checkForUpdates:" target="Arf-IC-5eb" id="7JG-du-nr4"/>
|
<action selector="checkForUpdates:" target="9QV-ha-p2H" id="9fB-b9-def"/>
|
||||||
</connections>
|
</connections>
|
||||||
</menuItem>
|
</menuItem>
|
||||||
<menuItem isSeparatorItem="YES" id="hmG-xg-qgm"/>
|
<menuItem isSeparatorItem="YES" id="hmG-xg-qgm"/>
|
||||||
|
|||||||
@@ -1923,8 +1923,6 @@
|
|||||||
BF45868B229872EA00BD7491 /* Resources */,
|
BF45868B229872EA00BD7491 /* Resources */,
|
||||||
BF4588462298D4AA00BD7491 /* Frameworks */,
|
BF4588462298D4AA00BD7491 /* Frameworks */,
|
||||||
BF0201BC22C2EFA3000B93E4 /* Embed Frameworks */,
|
BF0201BC22C2EFA3000B93E4 /* Embed Frameworks */,
|
||||||
BF7FDA2C23203B6B00B5D3A4 /* Copy Launcher App */,
|
|
||||||
BF914C242383659400E713BA /* Sign Frameworks */,
|
|
||||||
BFF7C910257844C900E55F36 /* Embed XPC Services */,
|
BFF7C910257844C900E55F36 /* Embed XPC Services */,
|
||||||
);
|
);
|
||||||
buildRules = (
|
buildRules = (
|
||||||
@@ -2278,45 +2276,6 @@
|
|||||||
};
|
};
|
||||||
/* End PBXResourcesBuildPhase section */
|
/* End PBXResourcesBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXShellScriptBuildPhase section */
|
|
||||||
BF7FDA2C23203B6B00B5D3A4 /* Copy Launcher App */ = {
|
|
||||||
isa = PBXShellScriptBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
inputFileListPaths = (
|
|
||||||
);
|
|
||||||
inputPaths = (
|
|
||||||
);
|
|
||||||
name = "Copy Launcher App";
|
|
||||||
outputFileListPaths = (
|
|
||||||
);
|
|
||||||
outputPaths = (
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
shellPath = /bin/sh;
|
|
||||||
shellScript = "\"${BUILT_PRODUCTS_DIR}/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/copy-helper-swiftpm.sh\"\n";
|
|
||||||
};
|
|
||||||
BF914C242383659400E713BA /* Sign Frameworks */ = {
|
|
||||||
isa = PBXShellScriptBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
inputFileListPaths = (
|
|
||||||
);
|
|
||||||
inputPaths = (
|
|
||||||
);
|
|
||||||
name = "Sign Frameworks";
|
|
||||||
outputFileListPaths = (
|
|
||||||
);
|
|
||||||
outputPaths = (
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
shellPath = /bin/sh;
|
|
||||||
shellScript = "#LOCATION=\"${BUILT_PRODUCTS_DIR}\"/\"${FRAMEWORKS_FOLDER_PATH}\"\n#IDENTITY=${EXPANDED_CODE_SIGN_IDENTITY_NAME}\n#\n#codesign --verbose --force --deep -o runtime --sign \"$IDENTITY\" \"$LOCATION/Sparkle.framework/Versions/A/Resources/AutoUpdate.app\"\n#codesign --verbose --force -o runtime --sign \"$IDENTITY\" \"$LOCATION/Sparkle.framework/Versions/A\"\n";
|
|
||||||
};
|
|
||||||
/* End PBXShellScriptBuildPhase section */
|
|
||||||
|
|
||||||
/* Begin PBXSourcesBuildPhase section */
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
BF18BFE324857D7900DD5981 /* Sources */ = {
|
BF18BFE324857D7900DD5981 /* Sources */ = {
|
||||||
isa = PBXSourcesBuildPhase;
|
isa = PBXSourcesBuildPhase;
|
||||||
@@ -2808,10 +2767,6 @@
|
|||||||
CURRENT_PROJECT_VERSION = 66;
|
CURRENT_PROJECT_VERSION = 66;
|
||||||
DEVELOPMENT_TEAM = "$(DEVELOPMENT_TEAM)";
|
DEVELOPMENT_TEAM = "$(DEVELOPMENT_TEAM)";
|
||||||
ENABLE_HARDENED_RUNTIME = YES;
|
ENABLE_HARDENED_RUNTIME = YES;
|
||||||
FRAMEWORK_SEARCH_PATHS = (
|
|
||||||
"$(inherited)",
|
|
||||||
"$(PROJECT_DIR)/Carthage/Build/Mac",
|
|
||||||
);
|
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
HAVE_OPENSSL,
|
HAVE_OPENSSL,
|
||||||
@@ -2862,10 +2817,6 @@
|
|||||||
CURRENT_PROJECT_VERSION = 66;
|
CURRENT_PROJECT_VERSION = 66;
|
||||||
DEVELOPMENT_TEAM = "$(DEVELOPMENT_TEAM)";
|
DEVELOPMENT_TEAM = "$(DEVELOPMENT_TEAM)";
|
||||||
ENABLE_HARDENED_RUNTIME = YES;
|
ENABLE_HARDENED_RUNTIME = YES;
|
||||||
FRAMEWORK_SEARCH_PATHS = (
|
|
||||||
"$(inherited)",
|
|
||||||
"$(PROJECT_DIR)/Carthage/Build/Mac",
|
|
||||||
);
|
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
HAVE_OPENSSL,
|
HAVE_OPENSSL,
|
||||||
@@ -3366,7 +3317,7 @@
|
|||||||
DEVELOPMENT_TEAM = "$(DEVELOPMENT_TEAM)";
|
DEVELOPMENT_TEAM = "$(DEVELOPMENT_TEAM)";
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
INFOPLIST_FILE = AltStore/Info.plist;
|
INFOPLIST_FILE = AltStore/Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 12.2;
|
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
@@ -3401,7 +3352,7 @@
|
|||||||
DEVELOPMENT_TEAM = "$(DEVELOPMENT_TEAM)";
|
DEVELOPMENT_TEAM = "$(DEVELOPMENT_TEAM)";
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
INFOPLIST_FILE = AltStore/Info.plist;
|
INFOPLIST_FILE = AltStore/Info.plist;
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 12.2;
|
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
|
|||||||
@@ -33,10 +33,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
|||||||
|
|
||||||
var window: UIWindow?
|
var window: UIWindow?
|
||||||
|
|
||||||
@available(iOS 14, *)
|
private lazy var intentHandler = IntentHandler()
|
||||||
private lazy var intentHandler = IntentHandler()
|
|
||||||
|
|
||||||
@available(iOS 14, *)
|
|
||||||
private lazy var viewAppIntentHandler = ViewAppIntentHandler()
|
private lazy var viewAppIntentHandler = ViewAppIntentHandler()
|
||||||
|
|
||||||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool
|
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>ALTAppGroups</key>
|
<key>ALTAppGroups</key>
|
||||||
<array>
|
<array>
|
||||||
|
<string>group.$(APP_GROUP_IDENTIFIER)</string>
|
||||||
<string>group.com.rileytestut.AltStore</string>
|
<string>group.com.rileytestut.AltStore</string>
|
||||||
<string>$(APP_GROUP_IDENTIFIER)</string>
|
|
||||||
</array>
|
</array>
|
||||||
<key>ALTDeviceID</key>
|
<key>ALTDeviceID</key>
|
||||||
<string>00008110-000A68390A82801E</string>
|
<string>00008110-000A68390A82801E</string>
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
<dict>
|
<dict>
|
||||||
<key>ALTAppGroups</key>
|
<key>ALTAppGroups</key>
|
||||||
<array>
|
<array>
|
||||||
|
<string>group.$(APP_GROUP_IDENTIFIER)</string>
|
||||||
<string>group.com.rileytestut.AltStore</string>
|
<string>group.com.rileytestut.AltStore</string>
|
||||||
<string>$(APP_GROUP_IDENTIFIER)</string>
|
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||||
|
|||||||
2
Dependencies/AltSign
vendored
2
Dependencies/AltSign
vendored
Submodule Dependencies/AltSign updated: 18c03405e3...03580f7258
2
Dependencies/libimobiledevice
vendored
2
Dependencies/libimobiledevice
vendored
Submodule Dependencies/libimobiledevice updated: 9b98387dd8...1d555f6f2c
Reference in New Issue
Block a user