Skip to content

App name: packages and CI named from the values - #1908

Open
vmillet-dev wants to merge 1 commit into
app-name-neutralfrom
app-name-ci
Open

vmillet-dev wants to merge 1 commit into
app-name-neutralfrom
app-name-ci

Conversation

@vmillet-dev

Copy link
Copy Markdown
Owner

Part of #1896: step 7. The last pull request of the ticket closes it.

Stacked on #1907 (steps 5, 6 and 9): its base is app-name-neutral, so this diff is this step alone. Merge #1898, #1900, #1901, #1902, #1903, #1904, #1905, #1907 in that order; this pull request then targets dev/1.3.3.

The reader. scripts/names.mjs reads [workspace.metadata] for the CI, the way scripts/version.mjs reads the version. Run as node scripts/names.mjs slug (or display-name, …), it fails with ::error:: on a name the manifest lacks. Its tests read the six names of the repository.

Packages.

  • package.yml reads the display name and the slug once (step « Read the names ») and hands them to each package action as inputs: slug for deb, rpm, appimage and nsis, both for dmg.
  • Each action checks the binary, the icon, the desktop entry and the doc and licence paths under the slug.
  • The dmg action renames <Name>_<version>_<arch>.dmg and <Name>.app.tar.gz to <slug>_…, detaches /Volumes/<Name> and verifies <Name>.app.
  • The release's files are named from the slug: <slug>_<version>_… and <slug>-<version>-linux|windows.exe. latest-json.mjs matches them by suffix, so it needed no change.

Install and update. packages.yml reads the names into APP_NAME/APP_SLUG, and so do installed.sh and close-and-quit.sh. With them they find:

  • the installed AppImage and .app (named after the display name, as the packager names them);
  • the window, through wmctrl;
  • the executable and the Windows uninstall entry.

Fixtures. scripts/latest-json.test.mjs and scripts/release-preview.test.mjs take the slug from names.mjs. The architecture-links fixture uses example.org.

Left as they are, not names of the application: -Dsonar.projectKey=devnotes-rust (an external project's key), and the website workflow's devnotes-website repository and commit message. The repositories and the domain move with the owner's step 12.

Wiki. releasing.md says 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 slug gives devnotes, display-name gives DevNotes, an unknown key exits 1.
  • Every workflow and action parses as YAML (yaml.safe_load). The two scripts pass bash -n.
  • node scripts/architecture-links.mjs.
  • The workflows themselves run on GitHub only: packages.yml runs on this pull request once it targets dev/1.3.3 (it touches packaging). That run is the real check of the renamed steps.

Generated by Claude Code

`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
@vmillet-dev vmillet-dev added the refactor Restructuring without behaviour change label Dec 4, 2026 — with Claude

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Restructuring without behaviour change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants