Skip to content

Commit fe65103

Browse files
committedJan 31, 2018
titaniumenv: add parameter that specifies than an IPA build is a store build
1 parent d8d5bea commit fe65103

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎pkgs/development/mobile/titaniumenv/build-app.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{ name, src, preBuild ? "", target, androidPlatformVersions ? [ "25" ], androidAbiVersions ? [ "armeabi" "armeabi-v7a" ], tiVersion ? null
33
, release ? false, androidKeyStore ? null, androidKeyAlias ? null, androidKeyStorePassword ? null
44
, iosMobileProvisioningProfile ? null, iosCertificateName ? null, iosCertificate ? null, iosCertificatePassword ? null, iosVersion ? "11.2"
5-
, enableWirelessDistribution ? false, installURL ? null
5+
, enableWirelessDistribution ? false, iosBuildStore ? false, installURL ? null
66
}:
77

88
assert (release && target == "android") -> androidKeyStore != null && androidKeyAlias != null && androidKeyStorePassword != null;
@@ -145,7 +145,7 @@ stdenv.mkDerivation {
145145
security default-keychain -s $keychainName
146146
147147
# Do the actual build
148-
titanium build --config-file $TMPDIR/config.json --force --no-colors --platform ios --target dist-adhoc --pp-uuid $provisioningId --distribution-name "${iosCertificateName}" --keychain $HOME/Library/Keychains/$keychainName-db --device-family universal --ios-version ${iosVersion} --output-dir $out
148+
titanium build --config-file $TMPDIR/config.json --force --no-colors --platform ios --target ${if iosBuildStore then "dist-appstore" else "dist-adhoc"} --pp-uuid $provisioningId --distribution-name "${iosCertificateName}" --keychain $HOME/Library/Keychains/$keychainName-db --device-family universal --ios-version ${iosVersion} --output-dir $out
149149
150150
# Remove our generated keychain
151151
${deleteKeychain}

0 commit comments

Comments
 (0)
Please sign in to comment.