Skip to content

Enter text to prompt #203

@sean-hill

Description

@sean-hill

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:

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:

Enter Passphrase for keystore:

Is there a way to pipe in commands from the terminal while using the sh.exec command?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions