Allow appnames with spaces everywhere
This commit is contained in:
parent
1dbd3a55c4
commit
647bca444c
@ -13,7 +13,8 @@ let
|
|||||||
androidsdkComposition = androidsdk { inherit platformVersions useGoogleAPIs; };
|
androidsdkComposition = androidsdk { inherit platformVersions useGoogleAPIs; };
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
inherit name src;
|
name = stdenv.lib.replaceChars [" "] [""] name;
|
||||||
|
inherit src;
|
||||||
|
|
||||||
ANDROID_HOME = "${androidsdkComposition}/libexec/android-sdk-${platformName}";
|
ANDROID_HOME = "${androidsdkComposition}/libexec/android-sdk-${platformName}";
|
||||||
|
|
||||||
@ -36,9 +37,9 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
mv bin/*-${if release then "release" else "debug"}.apk $out
|
mv "bin/*-${if release then "release" else "debug"}.apk" $out
|
||||||
|
|
||||||
mkdir -p $out/nix-support
|
mkdir -p $out/nix-support
|
||||||
echo "file binary-dist $(echo $out/*.apk)" > $out/nix-support/hydra-build-products
|
echo "file binary-dist \"$(echo $out/*.apk)\"" > $out/nix-support/hydra-build-products
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
@ -110,13 +110,17 @@ stdenv.mkDerivation {
|
|||||||
if target == "android" then
|
if target == "android" then
|
||||||
''cp $(ls build/android/bin/*.apk | grep -v '\-unsigned.apk') $out''
|
''cp $(ls build/android/bin/*.apk | grep -v '\-unsigned.apk') $out''
|
||||||
else if target == "iphone" && release then
|
else if target == "iphone" && release then
|
||||||
"cp -av build/iphone/build/* $out"
|
''
|
||||||
|
cp -av build/iphone/build/* $out
|
||||||
|
mkdir -p $out/nix-support
|
||||||
|
echo "file binary-dist \"$(echo $out/Release-iphoneos/*.ipa)\"" > $out/nix-support/hydra-build-products
|
||||||
|
''
|
||||||
else if target == "iphone" then ""
|
else if target == "iphone" then ""
|
||||||
else throw "Target: ${target} is not supported!"}
|
else throw "Target: ${target} is not supported!"}
|
||||||
|
|
||||||
${if target == "android" then ''
|
${if target == "android" then ''
|
||||||
mkdir -p $out/nix-support
|
mkdir -p $out/nix-support
|
||||||
echo "file binary-dist $(ls $out/*.apk)" > $out/nix-support/hydra-build-products
|
echo "file binary-dist \"$(ls $out/*.apk)\"" > $out/nix-support/hydra-build-products
|
||||||
'' else ""}
|
'' else ""}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -44,7 +44,8 @@ let
|
|||||||
deleteKeychain = "security delete-keychain $keychainName";
|
deleteKeychain = "security delete-keychain $keychainName";
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
inherit name src;
|
name = stdenv.lib.replaceChars [" "] [""] name;
|
||||||
|
inherit src;
|
||||||
buildInputs = [ xcodewrapper ];
|
buildInputs = [ xcodewrapper ];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
${stdenv.lib.optionalString release ''
|
${stdenv.lib.optionalString release ''
|
||||||
@ -79,11 +80,11 @@ stdenv.mkDerivation {
|
|||||||
${stdenv.lib.optionalString release ''
|
${stdenv.lib.optionalString release ''
|
||||||
${stdenv.lib.optionalString generateIPA ''
|
${stdenv.lib.optionalString generateIPA ''
|
||||||
# Produce an IPA file
|
# Produce an IPA file
|
||||||
xcrun -sdk iphoneos PackageApplication -v $out/*.app -o $out/${name}.ipa
|
xcrun -sdk iphoneos PackageApplication -v $out/*.app -o "$out/${name}.ipa"
|
||||||
|
|
||||||
# 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
|
||||||
''}
|
''}
|
||||||
|
|
||||||
# Delete our temp keychain
|
# Delete our temp keychain
|
||||||
|
Loading…
Reference in New Issue
Block a user