0

I would like to command "electron-packer ." (it takes some time) and then "asar pack app app.asar"

Is it possible to do this?

Or should I simply wait for the first one and command the second?

enter image description here

1
  • This question is similar to: Running NPM scripts sequentially. If you believe it’s different, please edit the question, make it clear how it’s different and/or how the answers on that question are not helpful for your problem. Commented Jan 2 at 22:01

1 Answer 1

3

You can queue commands like this.

npm run pack1 && npm run pack2

Or you can add another line that does the above and just run that alone.

"scripts": {
  "pack": "npm run pack1 && npm run pack2"
}

Add this inside your "scripts" and you can just run npm run pack to run both of those commands.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.