diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2e3c10d..374f2c1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,6 +34,7 @@ on: - .github/workflows/release.yml - scripts/set-version.mjs - scripts/release-notes.sh + - scripts/changelog.sh - src-tauri/tauri.conf.json permissions: @@ -377,6 +378,7 @@ jobs: GH_TOKEN: ${{ github.token }} GH_REPO: ${{ github.repository }} TAG: ${{ needs.prepare.outputs.tag }} + VERSION: ${{ needs.prepare.outputs.version }} PRERELEASE: ${{ needs.prepare.outputs.prerelease }} DRAFT: ${{ inputs.draft || false }} steps: @@ -428,9 +430,12 @@ jobs: gh release edit "$TAG" --notes-file notes.md >/dev/null else # a draft first: nobody sees the release before all files are on it - # changes since the previous release (pull requests and contributors) - gh api "repos/$GITHUB_REPOSITORY/releases/generate-notes" -f tag_name="$TAG" -f target_commitish="$GITHUB_SHA" --jq .body | - bash scripts/release-notes.sh index/downloads.md > notes.md + # the version's section of CHANGELOG.md, then the changes since the previous + # release (pull requests and contributors) + { + bash scripts/changelog.sh "$VERSION" + gh api "repos/$GITHUB_REPOSITORY/releases/generate-notes" -f tag_name="$TAG" -f target_commitish="$GITHUB_SHA" --jq .body + } | bash scripts/release-notes.sh index/downloads.md > notes.md args=(--title "Rust Commander $TAG" --notes-file notes.md --verify-tag --draft) if [ "$PRERELEASE" = true ]; then args+=(--prerelease); fi gh release create "$TAG" dist/* "${args[@]}" diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..3640c0e --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,129 @@ +# Changelog + +All notable changes to Rust Commander are listed here. The format follows +[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow +[Semantic Versioning](https://semver.org/). + +The release workflow puts the section of the released version into the release notes on +GitHub (see [Releasing](docs/src/development/releasing.md)), so add an entry here before +cutting a release. + +## [0.0.2] - 2026-11-20 + +### Added + +- **Keyboard layouts.** The original Norton Commander layout is the new default: F1 Help, + F2 Menu, F3 View, F4 Edit, F5 Copy, F6 Rename/Move, F7 Mkdir, F8 Delete, F9 Pull-down + menu, F10 Quit, Alt+F1/F2 drive, Ctrl+F3–F6 sorting, Ctrl+O, Ctrl+U and Alt+letter quick + search. The Total Commander layout (F2 reread, Shift+F6 rename, Ctrl+D hotlist, Ctrl+S + filter, Alt+Down history, …) and the previous Rust Commander layout can be chosen in the + View menu, in Preferences or in the F1 dialog (setting `keymap`). A function key bar above + the status bar shows the Shift/Ctrl/Alt layers (setting `showKeyBar`), and menus, toolbar, + context menu and the F1 list follow the active layout. F10 / Alt+F4 quit the desktop app + after a confirmation. + ([#39](https://github.com/bobnautic/rustCommander/pull/39)) +- **Skins.** A skin sets the whole look — colors, file icons, terminal and syntax colors, + shadows, fonts, corner radii, row height, striped rows — in a light and/or dark variant. + Ten skins are built in: Rust Commander (default, unchanged look), Ember, Graphite, + Retro Blue, High Contrast, Nord, Solarized, Catppuccin, Gruvbox and Dracula. + ([#42](https://github.com/bobnautic/rustCommander/pull/42)) + - Preferences → Appearance: skin gallery with live previews, adjustments on top of any + skin (accent, row height, list font size, corner radius, striped rows, fonts), + import/export and a link to the skins folder; View → Skin menu. + - Skin editor with grouped tokens, color pickers, a live preview of panels, editor, + terminal and controls, contrast warnings and a JSON view. + - User skins are JSON files in `/skins/` and reload when the window gets the + focus again, so they can be written in any editor. A JSON schema and a token reference + are part of the docs. +- **Jobs and sessions survive a restart.** Unfinished jobs come back on the next start: + finished files are skipped and a half-written file is continued. Open connections are + reconnected and the panels return to them. Settings `resumeJobs` and `restoreSessions`. + ([#9](https://github.com/bobnautic/rustCommander/pull/9)) +- **Queue controls:** pause, resume or cancel all jobs, change the speed limit of a running + job and retry only what failed. Paused jobs no longer take a slot. + ([#9](https://github.com/bobnautic/rustCommander/pull/9)) +- **Trash and undo:** in the desktop app, deleting local files moves them to the system trash + and Shift+Delete deletes for good (setting `useTrash`). Ctrl+Z undoes the last rename or + move within a session. ([#9](https://github.com/bobnautic/rustCommander/pull/9)) +- **Sync conflicts** can be resolved in the checklist (left wins, right wins, keep both, + skip, resolve all, with a diff button) and in scripts + (`synchronize -conflict=skip|local|remote|both|fail`). + ([#9](https://github.com/bobnautic/rustCommander/pull/9)) +- **Downloads:** every release now has an `.rpm` (pre-releases too), a `SHA256SUMS.txt` and a + download table with first-start notes for macOS and Windows. + ([#7](https://github.com/bobnautic/rustCommander/pull/7), + [#26](https://github.com/bobnautic/rustCommander/pull/26)) + +### Changed + +- **Faster on SSH hosts:** deleting folders, recursive chmod/chown, folder sizes and search + run as commands on the SFTP/SCP server (guarded, with a fallback to the generic way). + ([#9](https://github.com/bobnautic/rustCommander/pull/9)) +- **Faster on object stores:** S3, Azure and GCS answer MD5 checksums from the object + metadata, transfers and syncs compare with the strongest algorithm both sides compute + themselves, and uploads keep the source modification time. Checksum comparisons during a + sync run in parallel. ([#9](https://github.com/bobnautic/rustCommander/pull/9)) +- **Releases** are created as a draft with all files, every uploaded file is checked against + the built one (size and SHA-256), and only then the release is published. A release + created by hand on GitHub shows a note with a link to the running build. + ([#7](https://github.com/bobnautic/rustCommander/pull/7), + [#26](https://github.com/bobnautic/rustCommander/pull/26)) + +### Fixed + +- Pausing or resuming a job right after it was queued, before it had started, was lost. + ([#9](https://github.com/bobnautic/rustCommander/pull/9)) +- A conflict between a file and a folder in a sync also listed the folder's content as + actions. ([#9](https://github.com/bobnautic/rustCommander/pull/9)) + +### Security + +- `zip` 2.6 → 9.5 (RUSTSEC-2026-0367, RUSTSEC-2026-0368, RUSTSEC-2026-0369, + RUSTSEC-2026-0429); extracting an archive no longer sets setuid/setgid bits. + ([#9](https://github.com/bobnautic/rustCommander/pull/9)) +- CI audits the dependencies (`cargo audit`, `npm audit`) and runs the Playwright smoke test; + Dependabot keeps Cargo, npm and GitHub Actions dependencies up to date. + ([#9](https://github.com/bobnautic/rustCommander/pull/9)) + +### Dependencies + +- UI: React 19, Vite 8, TypeScript 7, `@vitejs/plugin-react` 6 and minor updates + (lucide-react, zustand, prettier, CodeMirror lint). + ([#25](https://github.com/bobnautic/rustCommander/pull/25), + [#27](https://github.com/bobnautic/rustCommander/pull/27), + [#33](https://github.com/bobnautic/rustCommander/pull/33)) +- RustCrypto: `digest` 0.11 stack (`sha1` 0.11, `sha2`, `md-5`, `hmac` 0.13) and `argon2` 0.6; + existing password hashes keep working. + ([#25](https://github.com/bobnautic/rustCommander/pull/25)) +- `x509-cert` 0.3, `async_zip` 0.0.19, `axum-server` 0.9, `parking_lot` 0.13, + `tokio-tungstenite` 0.30, `base64` 0.23, `roxmltree` 0.21 and minor updates (`russh`, + `notify`, `trash`, `uuid`, `flate2`, `rust-embed`, `webpki-roots`, `rpassword`). + ([#25](https://github.com/bobnautic/rustCommander/pull/25), + [#28](https://github.com/bobnautic/rustCommander/pull/28), + [#31](https://github.com/bobnautic/rustCommander/pull/31), + [#32](https://github.com/bobnautic/rustCommander/pull/32), + [#34](https://github.com/bobnautic/rustCommander/pull/34), + [#35](https://github.com/bobnautic/rustCommander/pull/35), + [#36](https://github.com/bobnautic/rustCommander/pull/36)) +- GitHub Actions: `actions/checkout` 7, `actions/setup-node` 7, `actions/upload-artifact` 7, + `actions/download-artifact` 8. ([#25](https://github.com/bobnautic/rustCommander/pull/25)) + +### Documentation + +- New guides: *Skins and appearance*, *Creating skins* (tutorial, recipes, tools) and the + skin token reference; the keyboard shortcut reference covers all three layouts. +- Transfers, file operations and synchronization describe resuming, trash/undo and + conflict resolution; *Releasing* describes the new release process. +- Feature analysis and implementation plan (`docs/feature-analyse.md`, + `docs/implementierungsplan.md`). + ([#8](https://github.com/bobnautic/rustCommander/pull/8), + [#9](https://github.com/bobnautic/rustCommander/pull/9)) + +## [0.0.1-alpha] - 2026-10-30 + +First version: a two-panel file manager in Rust and Tauri with a web mode, LAN discovery, +a read-only remote explorer for SSH hosts, an editor with linting and formatting, and +release builds for macOS, Windows and Linux plus the `rcmd` CLI. + +[0.0.2]: https://github.com/bobnautic/rustCommander/compare/v0.0.1-alpha...v0.0.2 +[0.0.1-alpha]: https://github.com/bobnautic/rustCommander/releases/tag/v0.0.1-alpha diff --git a/Cargo.lock b/Cargo.lock index b3f4258..8f9aa40 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4638,7 +4638,7 @@ checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539" [[package]] name = "rc-api" -version = "0.1.0" +version = "0.0.2" dependencies = [ "argon2", "async-trait", @@ -4668,7 +4668,7 @@ dependencies = [ [[package]] name = "rc-cli" -version = "0.1.0" +version = "0.0.2" dependencies = [ "anyhow", "async-trait", @@ -4687,7 +4687,7 @@ dependencies = [ [[package]] name = "rc-core" -version = "0.1.0" +version = "0.0.2" dependencies = [ "argon2", "async-trait", @@ -4741,7 +4741,7 @@ dependencies = [ [[package]] name = "rc-discovery" -version = "0.1.0" +version = "0.0.2" dependencies = [ "chrono", "if-addrs", @@ -4756,7 +4756,7 @@ dependencies = [ [[package]] name = "rc-server" -version = "0.1.0" +version = "0.0.2" dependencies = [ "async-trait", "async_zip", @@ -5265,7 +5265,7 @@ dependencies = [ [[package]] name = "rust-commander" -version = "0.1.0" +version = "0.0.2" dependencies = [ "rc-api", "rc-core", diff --git a/Cargo.toml b/Cargo.toml index e2a56cf..6b221ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ members = [ ] [workspace.package] -version = "0.1.0" +version = "0.0.2" edition = "2021" license = "MIT" authors = ["Rust Commander contributors"] diff --git a/README.md b/README.md index e1e7a35..8045ff8 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ Download the latest version from the | `rustCommander--macos-universal.dmg` | `rustCommander--windows-x64-setup.exe`
or `…-portable.exe` | `.AppImage` · `.deb` · `.rpm` | See [Installation](docs/src/getting-started/installation.md) for first-start notes, or -[build it](#-building) yourself. Start **Rust Commander**, press **Ctrl+N** to open the Site +[build it](#-building) yourself. What changed in each version: [CHANGELOG.md](CHANGELOG.md). Start **Rust Commander**, press **Ctrl+N** to open the Site Manager and connect. The keys follow the original Norton Commander: **F5** copy, **F6** move, **F7** new folder, **F8** delete, **F4** edit, **F2** user menu, **F9** menu, **F1** all shortcuts. *View* → **Keyboard layout** switches to Total Commander. diff --git a/docs/src/development/releasing.md b/docs/src/development/releasing.md index 41cca23..8fb7a26 100644 --- a/docs/src/development/releasing.md +++ b/docs/src/development/releasing.md @@ -7,8 +7,11 @@ as `-beta.1`). ## Cutting a release -1. Optional, but keeps `main` in step with the releases: set the version in the repository - and merge it. +1. Add a section `## [0.2.0] - ` to `CHANGELOG.md` with the changes since the previous + release (*Added*, *Changed*, *Fixed*, … as in [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)). + The workflow puts this section into the release notes, above the generated list of pull + requests. Optional, but keeps `main` in step with the releases: set the version in the + repository as well. Merge both. ```bash node scripts/set-version.mjs 0.2.0 # Cargo workspace + Cargo.lock, tauri.conf.json, package.json files @@ -48,7 +51,7 @@ skipped. | Desktop (Linux) | `ubuntu-22.04` | `.AppImage`, `.deb` and `.rpm` | | rcmd | Linux x86_64/aarch64, macOS arm64/x86_64, Windows x64 | `rcmd--.tar.gz` / `.zip` | | Downloads | | checks that exactly the expected files were built (none missing or empty), `SHA256SUMS.txt`, the download table | -| Publish release | | the GitHub release with all files, `SHA256SUMS.txt`, download table and generated release notes | +| Publish release | | the GitHub release with all files, `SHA256SUMS.txt`, download table, the version's section of `CHANGELOG.md` and generated release notes | The release is only created when **every** job succeeded. It is created as a draft, all files are uploaded and compared with the built ones (size and SHA-256 digest), and only then it is diff --git a/package-lock.json b/package-lock.json index ee3187e..bf9843f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "rust-commander", - "version": "0.1.0", + "version": "0.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "rust-commander", - "version": "0.1.0", + "version": "0.0.2", "devDependencies": { "@tauri-apps/cli": "^2.9.0" } diff --git a/package.json b/package.json index 68591cd..39f4bd2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "rust-commander", "private": true, - "version": "0.1.0", + "version": "0.0.2", "description": "Rust Commander — workspace scripts (the UI lives in ui/)", "scripts": { "tauri": "tauri", diff --git a/scripts/changelog.sh b/scripts/changelog.sh new file mode 100755 index 0000000..a329f21 --- /dev/null +++ b/scripts/changelog.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash +# The section of one version in CHANGELOG.md, as release notes: +# bash scripts/changelog.sh 0.2.0 > section.md +# Prints the entries below "## [0.2.0]" (up to the next "## " heading) under a "## Changelog" +# heading, followed by an empty line. Prints nothing if CHANGELOG.md has no section for the +# version, so a release without an entry still gets the generated notes. +set -euo pipefail + +version="${1#v}" +file="$(dirname "$0")/../CHANGELOG.md" +[ -f "$file" ] || exit 0 + +# leading empty lines are dropped by sed, trailing ones by the command substitution; the link +# definitions at the end of the file ("[0.2.0]: https://...") are not part of a section +section=$(awk -v v="$version" ' + /^## / { + if (found) exit + if (index($0, "## [" v "]") == 1 || index($0, "## " v " ") == 1 || $0 == "## " v) { found = 1; next } + } + found && !/^\[[^]]+\]: / { print } +' "$file" | sed -e '/./,$!d') + +if [ -z "$section" ]; then + echo "CHANGELOG.md has no section for $version" >&2 + exit 0 +fi + +echo '## Changelog' +echo +printf '%s\n' "$section" +echo diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 8e74266..ff909f2 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Rust Commander", - "version": "0.1.0", + "version": "0.0.2", "identifier": "dev.rustcommander.app", "build": { "frontendDist": "../ui/dist", diff --git a/ui/package-lock.json b/ui/package-lock.json index f99f346..6f342f0 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -1,12 +1,12 @@ { "name": "rust-commander-ui", - "version": "0.1.0", + "version": "0.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "rust-commander-ui", - "version": "0.1.0", + "version": "0.0.2", "dependencies": { "@codemirror/commands": "^6.11.1", "@codemirror/lang-json": "^6.0.2", diff --git a/ui/package.json b/ui/package.json index c927d70..7552439 100644 --- a/ui/package.json +++ b/ui/package.json @@ -1,7 +1,7 @@ { "name": "rust-commander-ui", "private": true, - "version": "0.1.0", + "version": "0.0.2", "description": "Rust Commander frontend (Tauri desktop + web mode)", "type": "module", "scripts": {