Skip to content
This repository was archived by the owner on May 6, 2026. It is now read-only.

Commit 6aa8d4e

Browse files
yysjasmineclaude
andcommitted
release: rename artifacts to AgentPack-<ver>-<platform>[-<arch>].<ext>
Adopt a consistent, self-describing naming scheme across all three platforms so users can tell at a glance which file is theirs: AgentPack-1.0.0-windows-x64.exe (was AgentPack-Setup-1.0.0.exe) AgentPack-1.0.0-macos-universal.pkg (was AgentPack-1.0.0.pkg) AgentPack-1.0.0-linux.sh (was install.sh) Also bundle linux/install.sh as a release asset so the Linux download matches Windows/macOS — users can grab a single file instead of relying on the curl | bash one-liner (which still works, and still documented). Changed: - windows/installer.iss OutputBaseFilename - macos/build-pkg.sh productbuild output path - .github/workflows/release.yml artifact globs + Linux staging step - scripts/release.sh filename expectations - README.md / README.zh-CN.md download table + "Build from Source" output paths Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent fea14dd commit 6aa8d4e

6 files changed

Lines changed: 55 additions & 24 deletions

File tree

.github/workflows/release.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
uses: actions/upload-artifact@v4
5353
with:
5454
name: windows-exe
55-
path: dist/AgentPack-Setup-*.exe
55+
path: dist/AgentPack-*-windows-*.exe
5656
if-no-files-found: error
5757

5858
build-macos:
@@ -69,14 +69,20 @@ jobs:
6969
uses: actions/upload-artifact@v4
7070
with:
7171
name: macos-pkg
72-
path: dist/AgentPack-*.pkg
72+
path: dist/AgentPack-*-macos-*.pkg
7373
if-no-files-found: error
7474

7575
release:
7676
name: Create GitHub Release
7777
needs: [build-windows, build-macos]
7878
runs-on: ubuntu-latest
7979
steps:
80+
# Checkout so we can grab linux/install.sh for the Linux download.
81+
# Nothing to build for Linux — install.sh bootstraps itself by
82+
# cloning agent_pack on the user's machine, same shape as the
83+
# curl | bash one-liner in the README.
84+
- uses: actions/checkout@v4
85+
8086
- name: Download Windows artifact
8187
uses: actions/download-artifact@v4
8288
with:
@@ -89,19 +95,29 @@ jobs:
8995
name: macos-pkg
9096
path: dist
9197

92-
- name: Resolve tag
98+
- name: Resolve tag and version
9399
id: tag
94100
# On tag pushes, github.ref_name is the tag (e.g. v1.0.0).
95101
# On workflow_dispatch, the user-supplied input is the tag.
102+
# Also expose the bare version (no leading v) — build-pkg.sh and
103+
# installer.iss both hard-code "1.0.0" internally and we match that.
96104
run: |
97105
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
98-
echo "tag=${{ inputs.tag }}" >> "$GITHUB_OUTPUT"
106+
tag="${{ inputs.tag }}"
99107
else
100-
echo "tag=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
108+
tag="${{ github.ref_name }}"
101109
fi
110+
echo "tag=$tag" >> "$GITHUB_OUTPUT"
111+
echo "version=${tag#v}" >> "$GITHUB_OUTPUT"
112+
113+
- name: Stage Linux installer
114+
# Rename to AgentPack-<ver>-linux.sh so all three downloads share
115+
# the same "AgentPack-<ver>-<platform>[-<arch>].<ext>" shape.
116+
run: cp linux/install.sh "dist/AgentPack-${{ steps.tag.outputs.version }}-linux.sh"
102117

103118
- name: Generate checksums
104119
working-directory: dist
120+
# Cover all three platforms' downloads.
105121
run: sha256sum AgentPack-* > SHA256SUMS
106122

107123
- name: Create / update Release
@@ -114,6 +130,7 @@ jobs:
114130
# silently went missing before upload.
115131
fail_on_unmatched_files: true
116132
files: |
117-
dist/AgentPack-Setup-*.exe
118-
dist/AgentPack-*.pkg
133+
dist/AgentPack-*-windows-*.exe
134+
dist/AgentPack-*-macos-*.pkg
135+
dist/AgentPack-*-linux.sh
119136
dist/SHA256SUMS

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ Pre-built installers live on the [GitHub Releases page](https://github.com/Sense
8989

9090
| Platform | Download | How to Use |
9191
|----------|----------|------------|
92-
| Windows | [`AgentPack-Setup-1.0.0.exe`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-Setup-1.0.0.exe) | Double-click and follow the wizard; installation runs inside WSL2, and the PowerShell window is taken over by the installed agent when setup finishes |
93-
| macOS | [`AgentPack-1.0.0.pkg`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.0.pkg) | Double-click, then complete setup in the Terminal window that opens; the same window becomes the agent's REPL / gateway once installation finishes |
94-
| Linux | bash one-liner | `curl -fsSL https://raw.githubusercontent.com/SenseTime-FVG/agent_pack/main/linux/install.sh \| bash` — the shell that ran the installer is handed over to the agent via `exec` |
92+
| Windows | [`AgentPack-1.0.0-windows-x64.exe`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.0-windows-x64.exe) | Double-click and follow the wizard; installation runs inside WSL2, and the PowerShell window is taken over by the installed agent when setup finishes |
93+
| macOS | [`AgentPack-1.0.0-macos-universal.pkg`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.0-macos-universal.pkg) | Double-click, then complete setup in the Terminal window that opens; the same window becomes the agent's REPL / gateway once installation finishes |
94+
| Linux | [`AgentPack-1.0.0-linux.sh`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.0-linux.sh) *or* the one-liner below | Download and run `chmod +x AgentPack-1.0.0-linux.sh && ./AgentPack-1.0.0-linux.sh`, or paste `curl -fsSL https://raw.githubusercontent.com/SenseTime-FVG/agent_pack/main/linux/install.sh \| bash` either way the shell that ran the installer is handed over to the agent via `exec` |
9595

9696
## Building from Source
9797

@@ -104,7 +104,7 @@ cd windows
104104
iscc installer.iss
105105
```
106106

107-
Output: `dist/AgentPack-Setup-1.0.0.exe`
107+
Output: `dist/AgentPack-1.0.0-windows-x64.exe`
108108

109109
### macOS (.pkg)
110110

@@ -115,7 +115,7 @@ cd macos
115115
./build-pkg.sh
116116
```
117117

118-
Output: `dist/AgentPack-1.0.0.pkg`
118+
Output: `dist/AgentPack-1.0.0-macos-universal.pkg`
119119

120120
### Linux
121121

README.zh-CN.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ Bundled skills 已经直接放进 `repos/hermes-agent/skills/` 和 `repos/opencl
8888

8989
| 平台 | 下载 | 使用方式 |
9090
|------|------|---------|
91-
| Windows | [`AgentPack-Setup-1.0.0.exe`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-Setup-1.0.0.exe) | 双击运行向导;安装过程在 WSL2 中执行,安装完成后当前 PowerShell 窗口会被接管,直接跑起 agent |
92-
| macOS | [`AgentPack-1.0.0.pkg`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.0.pkg) | 双击后在自动打开的 Terminal 窗口中完成安装;安装结束后同一个窗口会变成 agent 的 REPL / gateway |
93-
| Linux | bash 一行命令 | `curl -fsSL https://raw.githubusercontent.com/SenseTime-FVG/agent_pack/main/linux/install.sh \| bash`安装结束后会在当前 shell 里 `exec` 拉起 agent |
91+
| Windows | [`AgentPack-1.0.0-windows-x64.exe`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.0-windows-x64.exe) | 双击运行向导;安装过程在 WSL2 中执行,安装完成后当前 PowerShell 窗口会被接管,直接跑起 agent |
92+
| macOS | [`AgentPack-1.0.0-macos-universal.pkg`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.0-macos-universal.pkg) | 双击后在自动打开的 Terminal 窗口中完成安装;安装结束后同一个窗口会变成 agent 的 REPL / gateway |
93+
| Linux | [`AgentPack-1.0.0-linux.sh`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.0-linux.sh) 或下面的一行命令 | 下载后 `chmod +x AgentPack-1.0.0-linux.sh && ./AgentPack-1.0.0-linux.sh`,或直接粘贴 `curl -fsSL https://raw.githubusercontent.com/SenseTime-FVG/agent_pack/main/linux/install.sh \| bash`两种方式都会在安装结束后用 `exec` 在当前 shell 里拉起 agent |
9494

9595
## 从源码构建
9696

@@ -103,7 +103,7 @@ cd windows
103103
iscc installer.iss
104104
```
105105

106-
产物:`dist/AgentPack-Setup-1.0.0.exe`
106+
产物:`dist/AgentPack-1.0.0-windows-x64.exe`
107107

108108
### macOS (.pkg)
109109

@@ -114,7 +114,7 @@ cd macos
114114
./build-pkg.sh
115115
```
116116

117-
产物:`dist/AgentPack-1.0.0.pkg`
117+
产物:`dist/AgentPack-1.0.0-macos-universal.pkg`
118118

119119
### Linux
120120

macos/build-pkg.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ productbuild \
3333
--distribution "$SCRIPT_DIR/distribution.xml" \
3434
--resources "$SCRIPT_DIR/resources" \
3535
--package-path "$BUILD_DIR" \
36-
"$DIST_DIR/AgentPack-$VERSION.pkg"
36+
"$DIST_DIR/AgentPack-$VERSION-macos-universal.pkg"
3737

3838
echo ""
39-
echo "Built: $DIST_DIR/AgentPack-$VERSION.pkg"
39+
echo "Built: $DIST_DIR/AgentPack-$VERSION-macos-universal.pkg"
4040

4141
# Cleanup
4242
rm -rf "$BUILD_DIR"

scripts/release.sh

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# scripts/release.sh v1.0.0 --notes-file RELEASE_NOTES.md
1111
#
1212
# What it does:
13-
# 1. Verifies dist/AgentPack-Setup-<ver>.exe exists (mandatory).
13+
# 1. Verifies dist/AgentPack-<ver>-windows-x64.exe exists (mandatory).
1414
# 2. Includes dist/AgentPack-<ver>.pkg if present (skipped with a warning
1515
# otherwise — you can re-run with --include-pkg-only after you build
1616
# the .pkg on a Mac, and `gh release upload` will add it then).
@@ -56,10 +56,17 @@ command -v sha256sum >/dev/null 2>&1 || command -v shasum >/dev/null 2>&1 \
5656
|| die "sha256sum / shasum not found."
5757

5858
# Extract the version from the tag (strip leading v). We use it to locate
59-
# files by exact name, so a tag like v1.0.0 must match AgentPack-Setup-1.0.0.exe.
59+
# files by exact name, so a tag like v1.0.0 must match the
60+
# AgentPack-1.0.0-<platform>[-<arch>].<ext> naming produced by the builders.
6061
VER="${TAG#v}"
61-
EXE="$DIST_DIR/AgentPack-Setup-${VER}.exe"
62-
PKG="$DIST_DIR/AgentPack-${VER}.pkg"
62+
EXE="$DIST_DIR/AgentPack-${VER}-windows-x64.exe"
63+
PKG="$DIST_DIR/AgentPack-${VER}-macos-universal.pkg"
64+
# Stage the Linux installer next to the other artifacts. linux/install.sh
65+
# is a self-bootstrapping script — if the user downloads just this file and
66+
# runs it, it'll clone agent_pack on its own (same shape as the curl | bash
67+
# one-liner in the README) — so nothing to build, just copy + rename.
68+
LINUX_SRC="$PROJECT_ROOT/linux/install.sh"
69+
LINUX_DST="$DIST_DIR/AgentPack-${VER}-linux.sh"
6370

6471
# Collect whatever's actually built. The .exe is required — releasing
6572
# without the Windows installer would mean the README links 404 on Windows.
@@ -77,6 +84,13 @@ else
7784
echo " Then: gh release upload $TAG '$PKG' --clobber" >&2
7885
fi
7986

87+
# Linux installer: copy from linux/ into dist/ so SHA256SUMS and gh upload
88+
# both see it under a flat, versionless name.
89+
[ -f "$LINUX_SRC" ] || die "Missing $LINUX_SRC (unexpected — it's tracked in git)."
90+
cp "$LINUX_SRC" "$LINUX_DST"
91+
FILES+=("$LINUX_DST")
92+
ok "Staged $(basename "$LINUX_DST") (from linux/install.sh)"
93+
8094
# Generate checksums for everything we're about to upload.
8195
CHECKSUMS="$DIST_DIR/SHA256SUMS"
8296
note "Writing $CHECKSUMS"

windows/installer.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ AppPublisherURL={#MyAppURL}
1515
DefaultDirName={autopf}\AgentPack
1616
DefaultGroupName={#MyAppName}
1717
OutputDir=..\dist
18-
OutputBaseFilename=AgentPack-Setup-{#MyAppVersion}
18+
OutputBaseFilename=AgentPack-{#MyAppVersion}-windows-x64
1919
Compression=lzma2
2020
SolidCompression=yes
2121
WizardStyle=modern

0 commit comments

Comments
 (0)