Comparing version 1.8.1 to 1.9.0
@@ -24,3 +24,4 @@ #!/usr/bin/env node | ||
'u', 'unsigned-provision', | ||
'V', 'dont-verify' | ||
'V', 'dont-verify', | ||
'B', 'bundleid-access-group' | ||
] | ||
@@ -52,3 +53,5 @@ }); | ||
dontVerify: conf['dont-verify'] || conf.V, | ||
selfSignedProvision: conf.S || conf['self-signed-provision'] | ||
selfSignedProvision: conf.S || conf['self-signed-provision'], | ||
customKeychainGroup: conf.K || conf['add-access-group'], | ||
bundleIdKeychainGroup: conf.B || conf['bundleid-access-group'] | ||
}; | ||
@@ -86,2 +89,3 @@ | ||
-b, --bundleid [BUNDLEID] Change the bundleid when repackaging | ||
-B, --bundleid-access-group Add $(TeamIdentifier).bundleid to keychain-access-groups | ||
-c, --clone-entitlements Clone the entitlements from the provisioning to the bin | ||
@@ -94,2 +98,3 @@ -e, --entitlements [ENTITL] Specify entitlements file (EXPERIMENTAL) | ||
-k, --keychain [KEYCHAIN] Specify alternative keychain file | ||
-K, --add-access-group [NAME] Add $(TeamIdentifier).NAME to keychain-access-groups | ||
-l, --lipo [arm64|armv7] Lipo -thin all bins inside the IPA for the given architecture | ||
@@ -96,0 +101,0 @@ -L, --identities List local codesign identities |
@@ -41,3 +41,5 @@ 'use strict'; | ||
selfSignedProvision: opt.selfSignedProvision || false, | ||
dontVerify: opt.dontVerify || false | ||
dontVerify: opt.dontVerify || false, | ||
bundleIdKeychainGroup: opt.bundleIdKeychainGroup || false, | ||
customKeychainGroup: opt.customKeychainGroup || undefined | ||
}; | ||
@@ -44,0 +46,0 @@ } |
@@ -67,3 +67,3 @@ { | ||
"name": "applesign", | ||
"version": "1.8.1" | ||
"version": "1.9.0" | ||
} |
@@ -357,2 +357,26 @@ 'use strict'; | ||
} | ||
const additionalKeychainGroups = []; | ||
if (typeof this.config.customKeychainGroup === 'string') { | ||
additionalKeychainGroups.push(this.config.customKeychainGroup); | ||
} | ||
if (this.config.bundleIdKeychainGroup) { | ||
if (typeof this.config.bundleid === 'string') { | ||
additionalKeychainGroups.push(this.config.bundleid); | ||
} else { | ||
const infoPlist = path.join(this.config.appdir, 'Info.plist'); | ||
const plistData = plist.readFileSync(infoPlist); | ||
const bundleid = plistData['CFBundleIdentifier']; | ||
additionalKeychainGroups.push(bundleid); | ||
} | ||
} | ||
if (additionalKeychainGroups.length > 0) { | ||
const newGroups = additionalKeychainGroups.map(group => `${teamId}.${group}`); | ||
const groups = entMacho['keychain-access-groups']; | ||
if (typeof groups === 'undefined') { | ||
entMacho['keychain-access-groups'] = newGroups; | ||
} else { | ||
groups.push(...newGroups); | ||
} | ||
changed = true; | ||
} | ||
if (changed || this.config.entry) { | ||
@@ -359,0 +383,0 @@ const newEntitlementsFile = file + '.entitlements'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55534
1432