Add experimental link to proxy to page that does wireless distributions of IPA files
This commit is contained in:
parent
64561b437d
commit
5a918f5f5c
@ -15,9 +15,15 @@
|
|||||||
, provisioningProfile ? null
|
, provisioningProfile ? null
|
||||||
, generateIPA ? false
|
, generateIPA ? false
|
||||||
, generateXCArchive ? false
|
, generateXCArchive ? false
|
||||||
|
, enableWirelessDistribution ? false
|
||||||
|
, installURL ? null
|
||||||
|
, bundleId ? null
|
||||||
|
, version ? null
|
||||||
|
, title ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert release -> codeSignIdentity != null && certificateFile != null && certificatePassword != null && provisioningProfile != null;
|
assert release -> codeSignIdentity != null && certificateFile != null && certificatePassword != null && provisioningProfile != null;
|
||||||
|
assert enableWirelessDistribution -> installURL != null && bundleId != null && version != null && title != null;
|
||||||
|
|
||||||
let
|
let
|
||||||
# Set some default values here
|
# Set some default values here
|
||||||
@ -84,6 +90,12 @@ stdenv.mkDerivation {
|
|||||||
# Add IPA to Hydra build products
|
# Add IPA to Hydra build products
|
||||||
mkdir -p $out/nix-support
|
mkdir -p $out/nix-support
|
||||||
echo "file binary-dist \"$(echo $out/*.ipa)\"" > $out/nix-support/hydra-build-products
|
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
|
# Delete our temp keychain
|
||||||
|
11
pkgs/development/mobile/xcodeenv/install.html.template
Normal file
11
pkgs/development/mobile/xcodeenv/install.html.template
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Install IPA</title>
|
||||||
|
<meta http-equiv="refresh" content="1; url=@INSTALL_URL@">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
x
Reference in New Issue
Block a user