Version strategy: releases follow semantic versioning. The release version is sourced from Cargo.toml.
Set the release tag once per shell:
VERSION="v$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -n 1)"- Confirm
Cargo.tomlhas the intended version. - Confirm
README.mdexamples match the current output. - Confirm
man/man1/me.1documents the current CLI flags and project context summary. - Run
scripts/check-release.shbefore every release. This is required and includes:cargo fmt --checkcargo test --lockedcargo clippy --locked --all-targets --all-features -- -D warnings- version consistency validation
- Windows target compilation checks for
x86_64-pc-windows-msvcandaarch64-pc-windows-msvc
- Command:
scripts/check-release.sh- If you changed release scripts, version checks, or cross-platform tests, do not tag until the Windows target checks above pass locally.
git status --short
git add Cargo.toml Cargo.lock README.md README_CN.md RELEASE_NOTES.md RELEASE_CHECKLIST.md HOMEBREW.md .github/workflows/release.yml scripts man src tests
git commit -m "Prepare ${VERSION} release"
git tag -a "${VERSION}" -m "Release ${VERSION}"
git push origin main
git push origin "${VERSION}"The release workflow builds and uploads:
me-${VERSION}-macos-arm64.tar.gzme-${VERSION}-macos-x64.tar.gzme-${VERSION}-linux-x64.tar.gzme-${VERSION}-linux-arm64.tar.gzme-${VERSION}-windows-x64.zipme-${VERSION}-windows-arm64.zipSHA256SUMS.txt
For a local build on a supported host:
scripts/build.shLinux ARM64 cross-compilation uses cross when the host is not Linux ARM64:
cargo install cross --locked
scripts/build.sh aarch64-unknown-linux-gnuWindows MSVC artifacts are built on Windows runners. macOS artifacts are built on macOS runners.
- Confirm the
release.ymlworkflow completed. - Confirm the Windows release jobs completed successfully before considering the release done.
- Confirm all expected artifacts are attached to the GitHub release.
- Confirm
SHA256SUMS.txtis attached to the GitHub release. - Copy the relevant text from
RELEASE_NOTES.mdinto the release description if needed. - Smoke-test one downloaded artifact:
tmpdir="$(mktemp -d)"
curl -L -o "${tmpdir}/me.tar.gz" "https://github.com/harveyTon/me/releases/download/${VERSION}/me-${VERSION}-linux-x64.tar.gz"
tar -C "${tmpdir}" -xzf "${tmpdir}/me.tar.gz"
"${tmpdir}/me" --helpmacOS:
tmpdir="$(mktemp -d)"
curl -L -o "${tmpdir}/me.tar.gz" "https://github.com/harveyTon/me/releases/download/${VERSION}/me-${VERSION}-macos-arm64.tar.gz"
tar -C "${tmpdir}" -xzf "${tmpdir}/me.tar.gz"
"${tmpdir}/me" --helpLinux:
tmpdir="$(mktemp -d)"
curl -L -o "${tmpdir}/me.tar.gz" "https://github.com/harveyTon/me/releases/download/${VERSION}/me-${VERSION}-linux-x64.tar.gz"
tar -C "${tmpdir}" -xzf "${tmpdir}/me.tar.gz"
"${tmpdir}/me" --helpWindows PowerShell:
$version = "vX.Y.Z"
$tmpdir = New-Item -ItemType Directory -Force "$env:TEMP\me-$version"
Invoke-WebRequest -Uri "https://github.com/harveyTon/me/releases/download/$version/me-$version-windows-x64.zip" -OutFile "$tmpdir\me.zip"
Expand-Archive "$tmpdir\me.zip" -DestinationPath $tmpdir -Force
& "$tmpdir\me.exe" --helpThe release workflow updates harveyTon/homebrew-me automatically after the GitHub Release is published.
Required repository secret:
HOMEBREW_TAP_TOKENUse a fine-grained token with contents write access to harveyTon/homebrew-me.
If the tap update job fails, update the formula manually:
- Generate the source tarball SHA:
curl -L "https://github.com/harveyTon/me/archive/refs/tags/${VERSION}.tar.gz" | shasum -a 256- Generate the release archive SHA values from
SHA256SUMS.txt, then updateFormula/me.rbin the Homebrew tap with:- the source tarball URL and SHA
- the macOS/Linux prebuilt archive URLs and SHA values
- Publish it to
harveyTon/homebrew-me. - Follow
HOMEBREW.mdfor the exact tap setup and install verification steps.
Git:
cargo install --git https://github.com/harveyTon/me --tag "${VERSION}"GitHub Releases installer on macOS/Linux:
bash <(curl -fsSL https://raw.githubusercontent.com/harveyTon/me/main/scripts/install.sh)Pinned version:
bash <(curl -fsSL https://raw.githubusercontent.com/harveyTon/me/main/scripts/install.sh) -- "${VERSION}"Homebrew, after harveyTon/homebrew-me is published:
brew tap harveyTon/me
brew install meCrates.io, after publication:
cargo install me