Skip to content

Commit bf212b6

Browse files
authored
Merge pull request #16 from SideStore/feature/XCConfig2
XCConfig for bundle/sign ids
2 parents 9b4674a + 3b5a3ad commit bf212b6

File tree

10 files changed

+273
-26
lines changed

10 files changed

+273
-26
lines changed

AltServer.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "Build.xcconfig"

AltServer/AppDelegate.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,13 @@ class AppDelegate: NSObject, NSApplicationDelegate {
6666
ALTDeviceManager.shared.start()
6767

6868
#if STAGING
69-
SUUpdater.shared().feedURL = URL(string: "https://altstore.io/altserver/sparkle-macos-staging.xml")
69+
let feedURL: String = Bundle.main.infoDictionary!["SUFeedURL"]! as! String
7070
#else
71-
SUUpdater.shared().feedURL = URL(string: "https://altstore.io/altserver/sparkle-macos.xml")
71+
let feedURL: String = Bundle.main.infoDictionary!["SUFeedURL"]! as! String
7272
#endif
7373

74+
SUUpdater.shared().feedURL = URL(string: feedURL)
75+
7476
let item = NSStatusBar.system.statusItem(withLength: -1)
7577
item.menu = self.appMenu
7678
item.button?.image = NSImage(named: "MenuBarIcon")

AltServer/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,7 @@
3232
<string>NSApplication</string>
3333
<key>SUFeedURL</key>
3434
<string>https://altstore.io/altserver/sparkle-macos.xml</string>
35+
<key>SUFeedURL-Staging</key>
36+
<string>https://altstore.io/altserver/sparkle-macos-staging.xml</string>
3537
</dict>
3638
</plist>

AltStore.xcodeproj/project.pbxproj

Lines changed: 131 additions & 22 deletions
Large diffs are not rendered by default.

AltStore.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AltStore.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 70 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AltXPC.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "Build.xcconfig"

Build.xcconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Configuration settings file format documentation can be found at:
2+
// https://help.apple.com/xcode/#/dev745c5c974
3+
4+
MARKETING_VERSION = 1.5.1b
5+
CURRENT_PROJECT_VERSION = 2780
6+
7+
// Vars to be overwritten by `CodeSigning.xcconfig` if exists
8+
DEVELOPMENT_TEAM = S32Z3HMYVQ
9+
ORG_IDENTIFIER = com.joemattiello
10+
11+
// Codesigning settings defined optionally, see `CodeSigning.xcconfig.example`
12+
#include? "CodeSigning.xcconfig"
13+
14+
ORG_PREFIX = $(ORG_IDENTIFIER)
15+
16+
PRODUCT_NAME = AltStore
17+
//PRODUCT_NAME[configuration=Debug] = Prov Debug
18+
19+
PRODUCT_BUNDLE_IDENTIFIER = $(ORG_PREFIX).$(PROJECT_NAME)
20+
//PRODUCT_BUNDLE_IDENTIFIER[configuration=Debug] = $(ORG_PREFIX).$(PROJECT_NAME:lower)-debug
21+
22+
APP_GROUP_IDENTIFIER = $(ORG_PREFIX).$(PROJECT_NAME)
23+
ICLOUD_CONTAINER_IDENTIFIER = iCloud.$(ORG_PREFIX).$(PROJECT_NAME)

CodeSigning.xcconfig.sample

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// Your Team ID.
2+
// If you have a paid Apple Developer account, you can find your Team ID at
3+
// https://developer.apple.com/account/#/membership
4+
DEVELOPMENT_TEAM = XYZ0123456
5+
6+
// Prefix of unique bundle IDs registered to you in Apple Developer Portal.
7+
// You need to register:
8+
// - com.myuniquename.provenance
9+
// - com.myuniquename.provenance.spotlight
10+
// - com.myuniquename.provenance.topshelf
11+
ORG_IDENTIFIER = com.myuniquename
12+
13+
// Set to YES if you have a valid paid Apple Developer account
14+
DEVELOPER_ACCOUNT_PAID = NO
15+
16+
// Name of the iOS development signing certificate, you probably do not need
17+
// to change this.
18+
CODE_SIGN_IDENTITY_IOS = Apple Development
19+
20+
// Name of the iOS development signing certificate, you probably do not need
21+
// to change this.
22+
CODE_SIGN_IDENTITY_TVOS = Apple Development
23+
24+
// The values below are specific to macOS development. If you do not define
25+
// these keys, the build will default to ad-hoc signing. You will need to
26+
// follow `Documentation/MacDevelopment.md` to disable library verification and
27+
// remove unsupported entitlements.
28+
29+
// Name of the macOS development signing certificate. Comment out this line to
30+
// use ad-hoc signing.
31+
CODE_SIGN_IDENTITY_MAC = Apple Development
32+
33+
// Create a Mac provisioning profile for com.myuniquename.UTM with the
34+
// Hypervisor entitlements and get its UUID. If you do not have access to these
35+
// entitlements, comment out the line and delete the following entitlements
36+
// - com.apple.vm.device-access
37+
// from the following file
38+
// - Provenance/macOS.entitlements
39+
PROVISIONING_PROFILE_SPECIFIER_MAC = 00000000-1111-2222-3333-444444444444

Dependencies/AltSign

0 commit comments

Comments
 (0)