Split build and package steps
See original GitHub issue- Version: 20.2.0
- Target: OSX (“dmg”, “zip”), Windows (“squirrel”, “nsis”), Linux (“deb”, “AppImage”)
This is more a question than an issue… We’re using electron-builder to build and package our app. We call electron-builder from a gulp task like this:
builder.build({
targets: builder.Platform.MAC.createTarget(["dmg", "zip"]),
config
});
We want to split building and packaging into two distinct steps so that we can sign the built files in a separate step that occurs externally. Is this possible in the current API? It might look something like this:
Step 1: Build
// Output of this step is the unpacked folder (contains unsigned binaries)
builder.build({
config
});
Step 2: Sign
Upload files to Signing Service. We get them back at some point in the future.
Step 3: Package
// Input to this step is the unpacked folder (or in our case, a copy of it containing the now-signed binaries)
// Output of this step is the packaged app (dmg, zip, etc.)
builder.package({
targets: builder.Platform.MAC.createTarget(["dmg", "zip"]),
config
});
I’m perusing the documentation and sources to see how it can be accomplished, but thought I’d ask here too.
Thank you.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Can I split maven compilation / package and test into two ...
The build server can easily setup a build/publish step by skipping the tests and I'd like to run a testing only test that...
Read more >Separating Build and Release Pipelines for Effective DevOps
Reuse — Reuse specific steps in a complex pipeline, e.g., ... One such pattern is to split the Build and Release into separate...
Read more >Splitting package / Creating & Modifying ... - Arch Linux Forums
Hello,. I'm maintaining the following package: https://aur.archlinux.org/pkgbase/gridcoinresearch/ Which builds 2 separate packages: ...
Read more >A guide to test splitting - CircleCI
Each node is its own separate container, so each one will need to spin up, check out the code, and perform any steps...
Read more >Split up the CI/CD Pipeline into two Pipelines
This post shows how to split up the existing CI/CD pipeline into a CI and a ... Build and push Docker image and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This was pretty simple, it turns out. Here’s my solution in case it benefits others.
Step 1: Build
Step 3: Package
@eanders-MS
Yes. External code signing is supported for Windows — https://www.electron.build/configuration/win