Skip to content

Latest commit

 

History

History
186 lines (155 loc) · 9.84 KB

RELEASING.md

File metadata and controls

186 lines (155 loc) · 9.84 KB

CLI and desktop release preparation

The release workflow builds the CLI and portable desktop on six native targets. Each package is extracted and checked with --version and --help; these checks open no desktop window. Native desktop builders additionally prepare MSI installers, custom-layout DMGs and DEB/RPM/AppImage packages. Native installation and tool verification remain separate from portable smoke checks. MCP and web builds are not packaged yet.

The version is 0.1.0. Each product has six archives, six SHA-256 sidecars, a consolidated notice file and a checksum manifest. Desktop also has ten native installers: two MSIs, two DMGs, two DEBs, two RPMs and two AppImages. Production publication adds a Minisign .minisig signature for each of the 22 packages: seventy release assets including their SHA-256 sidecars and both products' notice/checksum files. Package names follow the contracts below and in desktop packaging.

Production signing uses the release-signing environment with UPDATE_SIGNING_KEY and UPDATE_SIGNING_PASSWORD, checked against packaging/tablecraft-update-key.pub. Neither secret reaches verification or child environments; encrypted-key passphrases are passed only through stdin. The protected environment should admit main and version tags.

For a full signed rehearsal without creating a tag or publishing a release:

gh workflow run release.yml --repo replicraft/TableCraft --ref main \
  -f sign-packages=true

A manual run without sign-packages=true builds and performs disposable-key signature tests only. Production signing is limited to version-tag pushes or explicit signed rehearsals on main. Publication is limited to a version-tag push after both products and production signatures pass independent checks. Pull requests and all manual runs cannot publish. See signed update gates and the desktop release checklist.

Downloads

Names begin tablecraft-cli-<version>-, for example tablecraft-cli-0.1.0-macos-arm64.tar.gz.

Platform Rust target Archive suffix
Windows x64 x86_64-pc-windows-msvc windows-x64.zip
Windows ARM64 aarch64-pc-windows-msvc windows-arm64.zip
macOS Intel x86_64-apple-darwin macos-x64.tar.gz
macOS Apple Silicon aarch64-apple-darwin macos-arm64.tar.gz
Linux x64 x86_64-unknown-linux-gnu linux-x64.tar.gz
Linux ARM64 aarch64-unknown-linux-gnu linux-arm64.tar.gz

Each archive contains four files: tablecraft (tablecraft.exe on Windows), LICENSE, the consolidated ThirdPartyLicenses.txt, and RELEASE.json with version, target and payload hashes. The executable has Unix mode 0755. Extract into a directory of your choice and add that directory to PATH.

Each archive has a .sha256 sidecar. The complete set has fourteen assets: six archives, six sidecars, one shared ThirdPartyLicenses.txt alongside the archives, and SHA256SUMS.txt. The checksum manifest covers all thirteen other files, excluding itself. These are integrity checks; the additional archive Minisign signatures establish publisher authentication. Windows binaries are not Authenticode-signed; macOS packages are not Developer ID signed or notarized. Windows builds link the CRT statically; macOS targets 13.0 or newer. Linux builds use Ubuntu 22.04/glibc 2.35 and require compatible host runtime libraries.

Generated notices

CLI notices are generated at packaging time from the locked, six-target normal runtime dependency/feature closure, excluding build dependencies and proc macros. The shared collector and maintained policy have an explicit cli product scope. It retains native collation and Access error-message data notices while excluding desktop fonts, icons and UI packages. No expanded bundle or inventory is checked in.

The release workflow generates one CliThirdPartyLicenses.txt resource before building platform archives. Every builder and later assembly, signing and publication verifier uses that same independently generated reference through --notices. Archive contents, fourteen-file pre-signature membership and exact signed asset identities remain unchanged. Without --notices, the packaging commands generate a temporary bundle from current locked sources; fetch missing pinned source texts explicitly first. Generation performs no implicit networking.

cargo fetch --locked
python3 scripts/packaging/desktop_notices.py fetch --product cli
python3 scripts/packaging/desktop_notices.py generate --product cli \
  --output /tmp/CliThirdPartyLicenses.txt

The reviewed libm 0.2.16 entry includes its complete published LICENSE.txt and full Sun Microsystems copyright/permission header from pow.rs. Its current scalbn implementation delegates to generic Rust without an additional notice. The CLI-only objc2-io-kit framework crate uses the exact reviewed upstream root license corresponding to its published VCS commit, as its crate archive omits that license text. Sources and product decisions live in the compact maintained policy; expanded manifests and consolidated copies remain generated artifacts.

Local verification

Use the toolchain in rust-toolchain.toml and locked dependencies:

cargo build --locked --release -p tablecraft-cli --target aarch64-apple-darwin
python3 scripts/packaging/package_cli.py validate
python3 scripts/packaging/package_cli.py package --version 0.1.0 \
  --target aarch64-apple-darwin \
  --binary target/aarch64-apple-darwin/release/tablecraft --output dist
python3 scripts/packaging/package_cli.py verify-archive --version 0.1.0 \
  --target aarch64-apple-darwin \
  --archive dist/tablecraft-cli-0.1.0-macos-arm64.tar.gz --smoke

For Windows, set RUSTFLAGS=-C target-feature=+crt-static before building and use the corresponding MSVC target. Smoke checks execute only inert version/help commands on the native platform. Package creation does not execute its input.

The scripts require the workspace version, a matching tag when supplied, nonempty release notes and both license/notice files. They check PE/ELF/thin Mach-O architecture, exact archive contents, payload hashes and executable permissions. Extra paths, duplicate names, symlinks and stale output files refuse. Temporary extraction has owned cleanup and does not follow archive paths outside its directory.

Every Windows ZIP member, including RELEASE.json, now explicitly records the same fixed timestamp, creator system, regular-file mode and compression method. The manifest previously inherited the host clock/platform metadata when passed as a filename to writestr; Python documents that timestamp behavior. A focused test now varies the host clock and checks byte-identical archives and every member's metadata. This makes the packaging of identical inputs reproducible; it is not a claim of reproducible Rust binaries across toolchains or platforms. Python ZIP metadata contract

After collecting all six archives, sidecars and the identical shared ThirdPartyLicenses.txt into a fresh directory:

python3 scripts/packaging/package_cli.py finalize --version 0.1.0 --output dist
python3 scripts/packaging/package_cli.py verify --version 0.1.0 --output dist
(cd dist && sha256sum --check SHA256SUMS.txt)

Assembly requires the exact complete set and verifies every archive's version, architecture, notices, payload manifest and sidecar. It cannot execute foreign binaries; each native build job must pass its own extracted smoke test first.

CI and future publication

Pull requests changing packaging or release inputs run the Python tests and the six native builds. Native labels follow the GitHub runner reference. Actions use current official version tags for checkout, setup-python, upload-artifact and download-artifact. The workflow uses the repository Rust toolchain without overriding incremental compilation settings.

A future authorized v0.1.0 tag must match Cargo and the nonempty release notes. Its isolated publication job runs only after all builds and complete assembly succeed. It verifies checksums, uploads to a draft, checks exact asset names and publishes. Existing published versions refuse replacement. Future prerelease tags set GitHub's prerelease flag; 0.1.0 is stable. Pull requests and manual runs cannot publish.

python3 -m unittest discover -s scripts/tests -p 'test_package_*.py'
actionlint -shellcheck= .github/workflows/release.yml

Synthetic packaging tests, local native smoke checks, remote CI and publication are separate evidence. Packaging does not change native database compatibility, writing or VBA limits.

The current cross-platform packaging audit passes 27 tracked CLI/desktop archive tests and eight association-metadata tests locally on macOS. Both workflow files pass the retained actionlint 1.7.12 check. The updated six-platform headless CI configuration has not been remotely rerun here; no workflow, tag, push or release was initiated. The current release workflow also builds desktop artifacts and requires production archive signatures. Desktop archives support packaging-time notice generation from maintained exception policy and locked sources; generated inventories and notice bundles stay in release staging. The earlier audit above remains historical local evidence; new remote build results must be recorded separately.