Skip to content

Commit

Permalink
titaniumenv: fix Android signing on darwin
Browse files Browse the repository at this point in the history
(cherry picked from commit 4beb695)
  • Loading branch information
svanderburg committed Mar 21, 2018
1 parent fd016e3 commit f5b485d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkgs/development/mobile/titaniumenv/build-app.nix
Expand Up @@ -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''}
''
Expand Down

0 comments on commit f5b485d

Please sign in to comment.