We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey there,
I'm trying to automate a build process for Android apps with gulp. Here is the gulp task I have wrapped around shelljs:
shelljs
gulp.task('jarsign-android', function(callback){ var command = 'jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore release-key.keystore <path-to-apk> release'; sh.exec(command, callback); });
However the jarsigner command asks for the password to the keystore file with a prompt:
jarsigner
Enter Passphrase for keystore:
Is there a way to pipe in commands from the terminal while using the sh.exec command?
sh.exec
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
Save your passphrase in a file, eg. passkey.txt
Then use the command like this;
var command = 'jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore release-key.keystore <path-to-apk> release < passkey.txt';
Sweet thanks!
No branches or pull requests
Hey there,
I'm trying to automate a build process for Android apps with gulp. Here is the gulp task I have wrapped around
shelljs
:However the
jarsigner
command asks for the password to the keystore file with a prompt:Is there a way to pipe in commands from the terminal while using the
sh.exec
command?The text was updated successfully, but these errors were encountered: