Skip to content

Commit 0631554

Browse files
committed
Update release action
1 parent 367789c commit 0631554

File tree

5 files changed

+195
-185
lines changed

5 files changed

+195
-185
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
runs-on: ubuntu-latest
128128
environment:
129129
name: pypi
130-
url: https://pypi.org/p/cyberstore
130+
url: https://pypi.org/p/cyberstore-tui
131131
permissions:
132132
id-token: write # Required for trusted publishing (OIDC)
133133
steps:

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,21 @@
3030

3131
## Installation
3232

33-
Install via the install script (downloads the latest release binary):
33+
### Option 1: Install via pipx (recommended)
3434

3535
```bash
36-
curl -fsSL https://raw.githubusercontent.com/amazingchow/CyberStore/main/scripts/install.sh | bash
36+
pipx install cyberstore-tui
37+
```
38+
39+
### Option 2: Install via install script (downloads the latest release binary)
40+
41+
```bash
42+
curl -fsSL https://raw.githubusercontent.com/amazingchow/cyberstore/master/scripts/install.sh | bash
3743
```
3844

3945
Optional environment variables:
4046

41-
- `INSTALL_DIR` — Directory to install the binary (default: `/usr/local/bin`). Example, install to your user bin: `INSTALL_DIR=~/.local/bin bash -c "$(curl -fsSL https://raw.githubusercontent.com/amazingchow/CyberStore/main/scripts/install.sh)"`
47+
- `INSTALL_DIR` — Directory to install the binary (default: `/usr/local/bin`). Example, install to your user bin: `INSTALL_DIR=~/.local/bin bash -c "$(curl -fsSL https://raw.githubusercontent.com/amazingchow/cyberstore/master/scripts/install.sh)"`
4248
- `CYBERSTORE_VERSION` — Pin to a specific release (e.g. `v1.2.0`). Omit to install the latest.
4349

4450
Then run:

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["hatchling"]
33
build-backend = "hatchling.build"
44

55
[project]
6-
name = "cyberstore"
6+
name = "cyberstore-tui"
77
version = "0.1.0"
88
description = "Object Storage TUI client (Cloudflare R2 / Aliyun OSS)"
99
readme = "README.md"
@@ -44,6 +44,9 @@ dev = [
4444
[project.scripts]
4545
cyberstore = "cyberstore.__main__:main"
4646

47+
[tool.hatch.build.targets.wheel]
48+
packages = ["cyberstore"]
49+
4750
[tool.ruff]
4851
lint.select = [
4952
"E", # pycodestyle

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
# CyberStore install script
33
# Usage:
4-
# curl -fsSL https://raw.githubusercontent.com/amazingchow/CyberStore/main/scripts/install.sh | bash
4+
# curl -fsSL https://raw.githubusercontent.com/amazingchow/cyberstore/master/scripts/install.sh | bash
55
# INSTALL_DIR=~/.local/bin bash install.sh # custom install dir
66
# CYBERSTORE_VERSION=v1.2.0 bash install.sh # specific version
77

0 commit comments

Comments
 (0)