xcodeenv: Allow app names with with spaces in them
This commit is contained in:
parent
ec9c096e25
commit
5d6ffdb623
@ -2,14 +2,14 @@
|
|||||||
{name, app, device ? "iPhone", baseDir ? ""}:
|
{name, app, device ? "iPhone", baseDir ? ""}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
inherit name;
|
name = stdenv.lib.replaceChars [" "] [""] name;
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
ensureDir $out/bin
|
ensureDir $out/bin
|
||||||
cat > $out/bin/run-test-simulator << "EOF"
|
cat > $out/bin/run-test-simulator << "EOF"
|
||||||
#! ${stdenv.shell} -e
|
#! ${stdenv.shell} -e
|
||||||
|
|
||||||
cd ${app}/${baseDir}/${name}.app
|
cd '${app}/${baseDir}/${name}.app'
|
||||||
"$(readlink "${xcodewrapper}/bin/iPhone Simulator")" -SimulateApplication ./${name} -SimulateDevice '${device}'
|
"$(readlink "${xcodewrapper}/bin/iPhone Simulator")" -SimulateApplication './${name}' -SimulateDevice '${device}'
|
||||||
EOF
|
EOF
|
||||||
chmod +x $out/bin/run-test-simulator
|
chmod +x $out/bin/run-test-simulator
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user