Skip to content

Commit 8851482

Browse files
committed
Fix installing with correct app group. Also, makes it install as an AltStore app
Removes the legacy bundle id form, and by installing as an AltStore app, it adds the pairing and app group correctly
1 parent 1742e69 commit 8851482

File tree

5 files changed

+14
-20
lines changed

5 files changed

+14
-20
lines changed

AltServer/AltPlugin.zip

-15.9 KB
Binary file not shown.

AltServer/AppDelegate.swift

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,7 @@ import AltSign
1414
import LaunchAtLogin
1515
import Sparkle
1616

17-
#if STAGING
18-
private let altstoreAppURL = URL(string: "https://f000.backblazeb2.com/file/altstore-staging/altstore.ipa")!
19-
#elseif BETA
20-
private let altstoreAppURL = URL(string: "https://cdn.altstore.io/file/altstore/altstore-beta.ipa")!
21-
#else
22-
private let altstoreAppURL = URL(string: "https://cdn.altstore.io/file/altstore/altstore.ipa")!
23-
#endif
17+
private let altstoreAppURL = URL(string: "https://github.com/SideStore/SideStore/releases/download/0.1.1/SideStore.ipa")!
2418

2519
extension ALTDevice: MenuDisplayable {}
2620

AltServer/Base.lproj/Main.storyboard

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="19529" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="21507" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
33
<dependencies>
44
<deployment identifier="macosx"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="19529"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="21507"/>
66
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
77
</dependencies>
88
<scenes>
@@ -85,9 +85,9 @@
8585
</connections>
8686
</menuItem>
8787
<menuItem isSeparatorItem="YES" id="wFC-TO-SCJ"/>
88-
<menuItem title="Install AltStore" id="MJ8-Lt-SSV">
88+
<menuItem title="Install SideStore" id="MJ8-Lt-SSV">
8989
<modifierMask key="keyEquivalentModifierMask"/>
90-
<menu key="submenu" title="Install AltStore" systemMenu="recentDocuments" id="KJ9-WY-pW1">
90+
<menu key="submenu" title="Install SideStore" systemMenu="recentDocuments" id="KJ9-WY-pW1">
9191
<items>
9292
<menuItem title="No Connected Devices" id="N5N-3K-XuR">
9393
<modifierMask key="keyEquivalentModifierMask"/>

AltServer/Devices/ALTDeviceManager+Installation.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -532,15 +532,15 @@ private extension ALTDeviceManager
532532
let parentBundleID = parentApp?.bundleIdentifier ?? application.bundleIdentifier
533533
let updatedParentBundleID: String
534534

535-
if application.isAltStoreApp
536-
{
537-
// Use legacy bundle ID format for AltStore (and its extensions).
538-
updatedParentBundleID = "com.\(team.identifier).\(parentBundleID)"
539-
}
540-
else
541-
{
535+
// if application.isAltStoreApp
536+
// {
537+
// // Use legacy bundle ID format for AltStore (and its extensions).
538+
// updatedParentBundleID = "com.\(team.identifier).\(parentBundleID)"
539+
// }
540+
// else
541+
// {
542542
updatedParentBundleID = parentBundleID + "." + team.identifier // Append just team identifier to make it harder to track.
543-
}
543+
// }
544544

545545
let bundleID = application.bundleIdentifier.replacingOccurrences(of: parentBundleID, with: updatedParentBundleID)
546546

Shared/Extensions/Bundle+AltStore.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public extension Bundle
5454

5555
public extension Bundle
5656
{
57-
static var baseAltStoreAppGroupID = "group.com.rileytestut.AltStore"
57+
static var baseAltStoreAppGroupID = "group.com.SideStore.SideStore"
5858

5959
var appGroups: [String] {
6060
return self.infoDictionary?[Bundle.Info.appGroups] as? [String] ?? []

0 commit comments

Comments
 (0)