Repository navigation
App name: packages and CI named from the values - #1908
Open
vmillet-dev wants to merge 1 commit into
Open
vmillet-dev wants to merge 1 commit into
vmillet-dev wants to merge 1 commit into
Conversation
`scripts/names.mjs` reads `[workspace.metadata]` for the CI, as `scripts/version.mjs` reads the version. `package.yml` reads the display name and the slug once and hands them to each package action; the release's files are named from the slug, and each action checks the binary, the icon, the desktop entry and the doc paths under it. `packages.yml`, `installed.sh` and `close-and-quit.sh` find the installed application, its window and its uninstall entry by the names. The fixtures of `scripts/*.test.mjs` take the slug from the same script. Part of #1896 (step 7) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Part of #1896: step 7. The last pull request of the ticket closes it.
The reader.
scripts/names.mjsreads[workspace.metadata]for the CI, the wayscripts/version.mjsreads the version. Run asnode scripts/names.mjs slug(ordisplay-name, …), it fails with::error::on a name the manifest lacks. Its tests read the six names of the repository.Packages.
package.ymlreads the display name and the slug once (step « Read the names ») and hands them to each package action as inputs:slugfordeb,rpm,appimageandnsis, both fordmg.<Name>_<version>_<arch>.dmgand<Name>.app.tar.gzto<slug>_…, detaches/Volumes/<Name>and verifies<Name>.app.<slug>_<version>_…and<slug>-<version>-linux|windows.exe.latest-json.mjsmatches them by suffix, so it needed no change.Install and update.
packages.ymlreads the names intoAPP_NAME/APP_SLUG, and so doinstalled.shandclose-and-quit.sh. With them they find:.app(named after the display name, as the packager names them);wmctrl;Fixtures.
scripts/latest-json.test.mjsandscripts/release-preview.test.mjstake the slug fromnames.mjs. The architecture-links fixture usesexample.org.Left as they are, not names of the application:
-Dsonar.projectKey=devnotes-rust(an external project's key), and the website workflow'sdevnotes-websiterepository and commit message. The repositories and the domain move with the owner's step 12.Wiki.
releasing.mdsays how the CI reads the names, beside « One version ».Checks run
node --test "scripts/*.test.mjs": 80 pass, the three new ones included.node scripts/names.mjs sluggivesdevnotes,display-namegivesDevNotes, an unknown key exits 1.yaml.safe_load). The two scripts passbash -n.node scripts/architecture-links.mjs.packages.ymlruns on this pull request once it targetsdev/1.3.3(it touches packaging). That run is the real check of the renamed steps.Generated by Claude Code