Repository navigation
docs: correct update-channel metadata claims and note admin merges in ship-release #3457
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: RocketChat/Rocket.Chat.Electron
Length of output: 36283
🏁 Script executed:
Repository: RocketChat/Rocket.Chat.Electron
Length of output: 6036
🏁 Script executed:
Repository: RocketChat/Rocket.Chat.Electron
Length of output: 39862
🌐 Web query:
electron-builder official documentation generateUpdatesFilesForAllChannels update metadata filename latest-alpha.yml latest-beta.yml💡 Result:
To generate update metadata files for all channels in electron-builder, you must set the build configuration option
generateUpdatesFilesForAllChannelstotrue[1][2][3]. When this option is enabled, electron-builder generates update metadata files (such as.ymlfiles) for all available channels (typically "latest", "beta", and "alpha") regardless of the specific version you are currently building [3][4]. Key behaviors regarding these files include: 1. Metadata Filenames: The filenames are based on the channel name, such as latest.yml, beta.yml, and alpha.yml [3][4]. Platform-specific versions may also be generated, such as latest-mac.yml, beta-linux.yml, etc., depending on your target platforms [4]. 2. Channel Detection: By default, electron-builder detects the update channel from the version string in your package.json (e.g., a version ending in -beta automatically targets the beta channel) [2][3][5]. WithgenerateUpdatesFilesForAllChannelsset totrue, it ensures that the metadata for other channels is also updated or created, preventing mismatches when users on different channels check for updates [2][6][4]. 3. Configuration: You can enable this in your package.json or your electron-builder configuration file:json "build": { "generateUpdatesFilesForAllChannels": true }4. Important Notes: - This setting automatically enablesallowDowngrade, which is necessary for users to switch between channels (e.g., from beta back to latest) [1][2]. - If you are publishing to GitHub Releases, the channel is not always automatically detected from the version string. In such cases, you must explicitly set thechannelproperty in your publish configuration to ensure the correct metadata file is associated with the release [2][4][5]. - This configuration does not create additional application installer files (like.exe or.dmg) for every channel; it only generates the corresponding YAML metadata files that point to the current build [3]. Top results: [1][2][3][4][5]Citations:
Document the channel-specific update metadata files.
generateUpdatesFilesForAllChannelsgeneratesalpha*.ymlandbeta*.ymlalongsidelatest*.yml, and the uploader includes them. Update the release and troubleshooting documentation to describe these assets and instruct users to check the file for their selected channel.🧰 Tools
🪛 LanguageTool
[uncategorized] ~36-~36: Do not mix variants of the same word (‘prerelease’ and ‘pre-release’) within a single text.
Context: ..., and whether the client has opted into prereleases (electron-updater's
allowPrereleasei...(EN_WORD_COHERENCY)
🤖 Prompt for AI Agents