titaniumenv: fix Android signing on darwin

This commit is contained in:
Sander van der Burg 2018-03-21 14:57:57 +01:00
parent 3583cf8f4b
commit 4beb695ece

View File

@ -58,7 +58,13 @@ stdenv.mkDerivation {
export GRADLE_USER_HOME=$TMPDIR/gradle
${if release then
''titanium build --config-file $TMPDIR/config.json --no-colors --force --platform android --target dist-playstore --keystore ${androidKeyStore} --alias ${androidKeyAlias} --store-password ${androidKeyStorePassword} --output-dir $out''
''
${stdenv.lib.optionalString stdenv.isDarwin ''
# Signing the app does not work with OpenJDK on macOS, use host SDK instead
export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)"
''}
titanium build --config-file $TMPDIR/config.json --no-colors --force --platform android --target dist-playstore --keystore ${androidKeyStore} --alias ${androidKeyAlias} --store-password ${androidKeyStorePassword} --output-dir $out
''
else
''titanium build --config-file $TMPDIR/config.json --no-colors --force --platform android --target emulator --build-only -B foo --output $out''}
''