diff options
author | Sander van der Burg <svanderburg@gmail.com> | 2018-03-21 14:57:57 +0100 |
---|---|---|
committer | Sander van der Burg <svanderburg@gmail.com> | 2018-03-21 14:57:57 +0100 |
commit | 4beb695eceea1aa00201e7f0ee5165fc948e9eb3 (patch) | |
tree | 6ff59c3752814a24ffeb4c892d883562e38794bf /pkgs/development/mobile | |
parent | 3583cf8f4b3e7d7691d3463797f5d98d505ba811 (diff) | |
download | nixlib-4beb695eceea1aa00201e7f0ee5165fc948e9eb3.tar nixlib-4beb695eceea1aa00201e7f0ee5165fc948e9eb3.tar.gz nixlib-4beb695eceea1aa00201e7f0ee5165fc948e9eb3.tar.bz2 nixlib-4beb695eceea1aa00201e7f0ee5165fc948e9eb3.tar.lz nixlib-4beb695eceea1aa00201e7f0ee5165fc948e9eb3.tar.xz nixlib-4beb695eceea1aa00201e7f0ee5165fc948e9eb3.tar.zst nixlib-4beb695eceea1aa00201e7f0ee5165fc948e9eb3.zip |
titaniumenv: fix Android signing on darwin
Diffstat (limited to 'pkgs/development/mobile')
-rw-r--r-- | pkgs/development/mobile/titaniumenv/build-app.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/mobile/titaniumenv/build-app.nix b/pkgs/development/mobile/titaniumenv/build-app.nix index a6bf05c2465b..83bd941e5ffa 100644 --- a/pkgs/development/mobile/titaniumenv/build-app.nix +++ b/pkgs/development/mobile/titaniumenv/build-app.nix @@ -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''} '' |