-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
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
set electron-updater releaseNotes at build time #1511
Comments
Sorry for late response. Now you can:
For GitHub these fields computed automatically now. |
It seems this is related to my question here I don't understand how the above can be used to add release notes? |
And how should that
Like this? |
Wait a moment (or 10 hours), I will add docs and push some changes. |
Did I wait long enough? :) |
19.7.0 Create |
@develar Thanks for your quick implementation! With 19.7.0 on Mac building with |
This file generated only for old clients (electron-updater 1.x). electron-updater 2.x doesn't use this file. |
@develar My bad - I forgot to update the electron-updater package. Thanks for the clarification! |
If I just create |
Found it. Updating |
I don't understand how the above can be used to add release notes? |
@shivamthakur98 I don't know if you already found out, but for the record, my solution was "build": {
"releaseInfo": {
"releaseNotesFile": "public/release-notes.md"
},
} And then place the |
Feature request
Use case
Publishing an electron app through AWS S3 with release notes. (On S3 there is no online-interface for editing the
latest-mac.json
orlatest.yml
files.)Currently working procedure:
build -nw --publish always
latest-mac.json
andlatest.yml
from S3"releaseNotes":"Something",
/releaseNotes: Something
It would be great to be able to specify the releaseNotes locally at build time. I could imagine the following procedures coming in handy:
Feature A
Being able to just build, then modify
latest-mac.json
andlatest.yml
, then just publish (without rebuilding)npm run dist
that executesbuild -mw
"releaseNotes":"Something",
/releaseNotes: Something
to json/ymlnpm run release
That only runs the publish step of electron-builder, pushing the artifacts and latest-files to s3 or other provider with something likebuild --publish-only
Feature B
Being able to specify releaseNotes in the
package.json
or with a command line option likebuild --releaseNotes "Something"
Considerations: Release notes are likely to be multi-lined markdown that have to be converted to different formats for yml and json (See example below).
For latest.yml
String to be inserted has to be
'releaseNotes: |\n# My shiny new version release notes\nWith some details\n - Detail a\n - Detail b\n'
For latest-mac.json
String to be inserted has to be
'"releaseNotes": "# My shiny new version release notes\nWith some details\n - Detail a\n - Detail b",'
The text was updated successfully, but these errors were encountered: