afterAllArtifactBuild script fires before latest.yml is created
See original GitHub issue- Version: 21.0.1
- Target: mac: dmg, zip; win: nsis
In the afterAllArtifactBuild script, latest.yml
(and latest-mac.yml
) are not created yet or are not saved to the output directory yet.
mac CI logs output from afterAllArtifactBuild:
windows CI logs output from afterAllArtifactBuild:
The arrays starting on line 167 and 92 respectfully are all the files in the outDir
folder.
Note: BUILD TYPE trial
is something specific to my app
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:12 (2 by maintainers)
Top Results From Across the Web
Electron-builder does not create latest.yml for auto updates ...
I'm trying to generate the auto update files to upload to a server. After signing and notarizing I expect the latest.yml file to...
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
Still relevant in 23.0.2. I’m trying to automate a modification to the yml file before it gets uploaded, and this is impossible directly with afterAllArtifactBuild, as the yml file doesn’t exist when afterAllArtifactBuild is called. The above solution by asd seems like a possible hack/workaround, but doesn’t seem like it should be the expected approach.
If afterAllArtifactBuild is meant to be used solely for the application artifacts and not the yml file, then a new hook along the lines of “beforeUpload” should be available.
I solved this problem by using chokidar