From 5a918f5f5cfe30cf10698e8b7cd38498828398b3 Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Fri, 1 Aug 2014 18:34:18 +0200 Subject: [PATCH] Add experimental link to proxy to page that does wireless distributions of IPA files --- pkgs/development/mobile/xcodeenv/build-app.nix | 12 ++++++++++++ .../mobile/xcodeenv/install.html.template | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/development/mobile/xcodeenv/install.html.template diff --git a/pkgs/development/mobile/xcodeenv/build-app.nix b/pkgs/development/mobile/xcodeenv/build-app.nix index b5766c80552..92e68f1bda7 100644 --- a/pkgs/development/mobile/xcodeenv/build-app.nix +++ b/pkgs/development/mobile/xcodeenv/build-app.nix @@ -15,9 +15,15 @@ , provisioningProfile ? null , generateIPA ? false , generateXCArchive ? false +, enableWirelessDistribution ? false +, installURL ? null +, bundleId ? null +, version ? null +, title ? null }: assert release -> codeSignIdentity != null && certificateFile != null && certificatePassword != null && provisioningProfile != null; +assert enableWirelessDistribution -> installURL != null && bundleId != null && version != null && title != null; let # Set some default values here @@ -84,6 +90,12 @@ stdenv.mkDerivation { # Add IPA to Hydra build products mkdir -p $out/nix-support echo "file binary-dist \"$(echo $out/*.ipa)\"" > $out/nix-support/hydra-build-products + + ${stdenv.lib.optionalString enableWirelessDistribution '' + appname=$(basename $out/*.ipa .ipa) + sed -e "s|@INSTALL_URL@|${installURL}?bundleId=${bundleId}\&version=${version}\&title=$appname|" ${./install.html.template} > $out/$appname.html + echo "doc install $out/$appname.html" >> $out/nix-support/hydra-build-products + ''} ''} # Delete our temp keychain diff --git a/pkgs/development/mobile/xcodeenv/install.html.template b/pkgs/development/mobile/xcodeenv/install.html.template new file mode 100644 index 00000000000..b7c6a9fe662 --- /dev/null +++ b/pkgs/development/mobile/xcodeenv/install.html.template @@ -0,0 +1,11 @@ + + + + + Install IPA + + + + + +