Skip to content

Commit 14d4b87

Browse files
committed
release(v0.3.1): add release installer groundwork
1 parent 9d6fea5 commit 14d4b87

28 files changed

Lines changed: 239 additions & 28 deletions

.github/workflows/release-artifacts.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ jobs:
5757
name="runglass-${version}-${target}"
5858
mkdir -p "dist/${name}"
5959
mkdir -p "dist/${name}/share/man/man1"
60+
mkdir -p "dist/${name}/scripts"
6061
cp target/release/runglass "dist/${name}/"
6162
cp README.md CHANGELOG.md LICENSE "dist/${name}/"
6263
cp docs/man/*.1 "dist/${name}/share/man/man1/"
64+
cp scripts/install-release.sh "dist/${name}/scripts/"
6365
tar -C dist -czf "dist/${name}.tar.gz" "${name}"
6466
sha256sum "dist/${name}.tar.gz" > "dist/${name}.tar.gz.sha256"
6567
@@ -125,9 +127,11 @@ jobs:
125127
name="runglass-${version}-${target}"
126128
mkdir -p "dist/${name}"
127129
mkdir -p "dist/${name}/share/man/man1"
130+
mkdir -p "dist/${name}/scripts"
128131
cp target/release/runglass "dist/${name}/"
129132
cp README.md CHANGELOG.md LICENSE "dist/${name}/"
130133
cp docs/man/*.1 "dist/${name}/share/man/man1/"
134+
cp scripts/install-release.sh "dist/${name}/scripts/"
131135
tar -C dist -czf "dist/${name}.tar.gz" "${name}"
132136
shasum -a 256 "dist/${name}.tar.gz" > "dist/${name}.tar.gz.sha256"
133137

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## v0.3.1 - 05/28/2026
4+
5+
- Added `scripts/install-release.sh` for installing release archives into a user-selected prefix, including the `runglass` binary, generated man pages, and docs.
6+
- Release archives now include the installer script alongside the binary, README, changelog, license, and `share/man/man1/` pages.
7+
- Documented the difference between `cargo install` and release archive installation: Cargo installs the binary only, while release archives can install man pages.
8+
39
## v0.3.0 - 05/15/2026
410

511
- Added `runglass run --review -- <command>` for a guided post-run flow that summarizes impact and offers keep, revert preview, supported file revert, export, or open-UI actions.

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ members = [
77
resolver = "2"
88

99
[workspace.package]
10-
version = "0.3.0"
10+
version = "0.3.1"
1111
edition = "2021"
1212
license = "MIT"
1313
repository = "https://github.com/error311/runglass"

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ Install from crates.io:
6868
cargo install runglass --locked
6969
```
7070

71+
Cargo installs the `runglass` binary only. Use a release archive if you also want generated man pages installed.
72+
7173
Prebuilt release archives are published from tagged GitHub releases and include SHA-256 checksum files:
7274

7375
```text
@@ -85,6 +87,35 @@ Release archives also include generated man pages under `share/man/man1/`:
8587
man ./share/man/man1/runglass.1
8688
```
8789

90+
Install a downloaded release archive into `~/.local`:
91+
92+
```bash
93+
tar -xzf runglass-<version>-<target>.tar.gz
94+
cd runglass-<version>-<target>
95+
./scripts/install-release.sh
96+
```
97+
98+
Or install directly from an archive path into a custom prefix:
99+
100+
```bash
101+
PREFIX=/tmp/runglass-install ./scripts/install-release.sh ./runglass-<version>-<target>.tar.gz
102+
```
103+
104+
If `~/.local/bin` and `~/.local/share/man` are on your path/manpath, this gives you:
105+
106+
```bash
107+
runglass --version
108+
man runglass
109+
```
110+
111+
Uninstall a default user-prefix install:
112+
113+
```bash
114+
rm -f "$HOME/.local/bin/runglass"
115+
rm -f "$HOME/.local/share/man/man1"/runglass*.1
116+
rm -rf "$HOME/.local/share/doc/runglass"
117+
```
118+
88119
For local development, install this checkout into your Cargo bin directory:
89120

90121
```bash

crates/runglass-cli/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ description = "Run one command and get a live receipt of what happened."
1212
anyhow = "1.0"
1313
chrono = "0.4"
1414
clap = { version = "4.5", features = ["derive"] }
15-
runglass-core = { path = "../runglass-core", version = "0.3.0" }
16-
runglass-web = { path = "../runglass-web", version = "0.3.0" }
15+
runglass-core = { path = "../runglass-core", version = "0.3.1" }
16+
runglass-web = { path = "../runglass-web", version = "0.3.1" }
1717
serde_json = "1.0"
1818
ureq = { version = "2.12", features = ["json"] }
1919

crates/runglass-cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2151,7 +2151,7 @@ mod tests {
21512151
let mut buffer = Vec::new();
21522152
clap_mangen::Man::new(command)
21532153
.title(title)
2154-
.date("2026-05-15")
2154+
.date("2026-05-28")
21552155
.source(format!("runglass {}", env!("CARGO_PKG_VERSION")))
21562156
.manual("RunGlass Manual")
21572157
.render(&mut buffer)

crates/runglass-web/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description = "Embedded local web UI and export renderer for RunGlass receipts."
1111
[dependencies]
1212
anyhow = "1.0"
1313
chrono = { version = "0.4", features = ["serde"] }
14-
runglass-core = { path = "../runglass-core", version = "0.3.0" }
14+
runglass-core = { path = "../runglass-core", version = "0.3.1" }
1515
serde_json = "1.0"
1616
tiny_http = "0.12"
1717
ureq = { version = "2.12", features = ["json"] }

docs/man/runglass-ci.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.ie \n(.g .ds Aq \(aq
22
.el .ds Aq '
3-
.TH runglass-ci 1 2026-05-15 "runglass 0.3.0" "RunGlass Manual"
3+
.TH runglass-ci 1 2026-05-28 "runglass 0.3.1" "RunGlass Manual"
44
.SH NAME
55
runglass\-ci \- Run one command in CI and write receipt artifacts
66
.SH SYNOPSIS

docs/man/runglass-delete.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.ie \n(.g .ds Aq \(aq
22
.el .ds Aq '
3-
.TH runglass-delete 1 2026-05-15 "runglass 0.3.0" "RunGlass Manual"
3+
.TH runglass-delete 1 2026-05-28 "runglass 0.3.1" "RunGlass Manual"
44
.SH NAME
55
runglass\-delete
66
.SH SYNOPSIS

0 commit comments

Comments
 (0)