on master help sign in
add command to use keytool regardless of what version of nix you are using
commitdb6d3ae09f415e0c47f87d7542f039b5239eecf4 authorhsloan <ishaqsloan@gmail.com> dateTue 23 Oct 2018, 14:55 (8 years ago) parentf8b64d1
1 file changed+1−1
README.md+1−1
README.md+1−1
@@ -258,7 +258,7 @@ The previous section would have generated a debug version of the app. In order t
258258First, if you do not already have a keystore, create it as follows (for more information, see the [Android documentation](https://developer.android.com/studio/publish/app-signing#signing-manually)):
259259
260260```
261−nix-shell -p androidenv.platformTools --run "keytool -genkey -v -keystore myandroidkey.jks -keyalg RSA -keysize 2048 -validity 10000 -alias myandroidalias"
261+nix-shell -E "let pkgs = import <nixpkgs> {}; in pkgs.mkShell { buildInputs = [ pkgs.jdk9 ]; }" --run "keytool -genkey -v -keystore myandroidkey.jks -keyalg RSA -keysize 2048 -validity 10000 -alias myandroidalias"
262262```
263263
264264(Be sure to give an appropriate keystore filename and key alias string above.)