Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- uses: taiki-e/install-action@v2
with:
tool: just
- run: cargo install fusor-cli --version 0.1.4 --locked
- run: cargo install fusor-cli --version 0.1.5 --locked
- run: fusor install --manifest-path apps/Cargo.toml -p hypercmd-docs --locked
- run: npm install --global vercel@59.23.2
- run: vercel pull --yes --environment=${{ inputs.environment }}
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,15 @@ jobs:
else
cargo publish --workspace --locked "${skip[@]}"
fi

ready:
if: github.event_name == 'release'
needs: [attach, crates-io]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- run: gh release upload "$GITHUB_REF_NAME" install.sh --clobber --repo "$GITHUB_REPOSITORY"
env:
GH_TOKEN: ${{ github.token }}
11 changes: 9 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The workflow caches Cargo downloads and installed tools, but not `apps/target`:
cache action removes Fusor's ownership manifests from site staging directories.

For a local deployment, install the site prerequisites with
`cargo install fusor-cli --version 0.1.4 --locked` and
`cargo install fusor-cli --version 0.1.5 --locked` and
`fusor install --manifest-path apps/Cargo.toml -p hypercmd-docs --locked`.
Install Vercel CLI 59.23.2, then run `vercel login` and
`vercel link --yes --scope pirela --project hypercmd` once. Run
Expand Down Expand Up @@ -72,7 +72,14 @@ linked) and macOS (Apple Silicon and Intel), installs each archive with
`install.sh` and creates a new app with it. Once every platform passes, it
attaches the archives and their `.sha256` checksums to the release, checks that
the tag matches the version, runs `just check` and a dry run, and publishes to
crates.io. Rerunning a stopped release skips crates already published.
crates.io. After both uploads and crate publication succeed, it attaches `install.sh`.
The CLI treats that final asset as the release readiness signal for upgrades and
version notifications. Rerunning a stopped release skips crates already published.

The CLI embeds the root installer through `crates/hypercmd-cli/install.sh`, a symlink
that Cargo flattens into the package archive. Edit the root script. `just cli` exercises
upgrades between two builds of the real CLI using local release archives and an HTTP
fixture selected by `HYPERCMD_RELEASE_URL` and `HYPERCMD_DOWNLOAD_BASE`.

To try the binaries without releasing, run the `Release` workflow by hand from
the Actions tab; it keeps the archives as workflow artifacts and publishes
Expand Down
49 changes: 31 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exclude = ["tests/consumer", "tests/browser-consumer", "apps"]
resolver = "2"

[workspace.package]
version = "0.1.1"
version = "0.1.2"
edition = "2024"
rust-version = "1.85"
license = "MIT"
Expand Down Expand Up @@ -35,19 +35,19 @@ struct_excessive_bools = "deny"
excessive_nesting = "deny"

[workspace.dependencies]
hypercmd = { path = "crates/hypercmd", version = "=0.1.1", default-features = false }
hypercmd-build = { path = "crates/hypercmd-build", version = "=0.1.1" }
hypercmd-job-controls = { path = "examples/job-controls", version = "=0.1.1" }
hypercmd = { path = "crates/hypercmd", version = "=0.1.2", default-features = false }
hypercmd-build = { path = "crates/hypercmd-build", version = "=0.1.2" }
hypercmd-job-controls = { path = "examples/job-controls", version = "=0.1.2" }
portable-pty = "=0.9.0"
rustix = "=1.1.4"
tempfile = "=3.23.0"
fusor = { package = "fusor-core", version = "=0.1.4", default-features = false }
fusor-build = { version = "=0.1.4" }
fusor-components = { version = "=0.1.4", default-features = false }
fusor-router = { version = "=0.1.4", default-features = false }
fusor-async = { version = "=0.1.4", default-features = false }
fusor-test = { version = "=0.1.4", default-features = false }
fusor-std = { version = "=0.1.4", default-features = false }
fusor = { package = "fusor-core", version = "=0.1.5", default-features = false }
fusor-build = { version = "=0.1.5" }
fusor-components = { version = "=0.1.5", default-features = false }
fusor-router = { version = "=0.1.5", default-features = false }
fusor-async = { version = "=0.1.5", default-features = false }
fusor-test = { version = "=0.1.5", default-features = false }
fusor-std = { version = "=0.1.5", default-features = false }
proc-macro2 = "1.0.103"
quote = "1.0.42"
syn = { version = "2.0.111", features = ["full"] }
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ curl -fsSL https://raw.githubusercontent.com/fusor-rs/hypercmd/main/install.sh |

The installer downloads the latest release, verifies its checksum, and puts `hypercmd` in `.hypercmd/bin` under your home directory; it prints the line to add to your `PATH`. The script is [install.sh](install.sh) if you want to read it first. With Rust installed, `cargo install hypercmd-cli` works too.

Run `hypercmd upgrade` to upgrade the CLI. Interactive commands warn when a newer
release is available, checking at most once a day. See [CLI upgrades](docs/cli.md#hypercmd-upgrade).

Create and run an app:

```sh
Expand All @@ -100,12 +103,12 @@ again. See the [CLI reference](docs/cli.md) for commands and options.

```toml
[dependencies]
hypercmd = "=0.1.1"
fusor = { package = "fusor-core", version = "=0.1.4", default-features = false }
fusor-components = { version = "=0.1.4", default-features = false }
hypercmd = "=0.1.2"
fusor = { package = "fusor-core", version = "=0.1.5", default-features = false }
fusor-components = { version = "=0.1.5", default-features = false }

[build-dependencies]
hypercmd-build = "=0.1.1"
hypercmd-build = "=0.1.2"

[package.metadata.hypercmd]
entry = "ui/app.html" # the <App> template
Expand Down
40 changes: 20 additions & 20 deletions apps/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading