File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,25 +46,20 @@ jobs:
4646 run : |
4747 EXT_VERSION=$(node -p "require('./extension/package.json').version")
4848 cd extension-package
49- zip -r ../opencli-extension.zip .
50- cp ../opencli-extension.zip ../opencli-extension-v${EXT_VERSION}.zip
49+ zip -r ../opencli-extension-v${EXT_VERSION}.zip .
5150
5251 - name : Upload Artifacts (Action Run)
5352 uses : actions/upload-artifact@v7
5453 with :
5554 name : opencli-extension-build
56- path : |
57- opencli-extension.zip
58- opencli-extension-v*.zip
55+ path : opencli-extension-v*.zip
5956 retention-days : 7
6057
6158 - name : Attach to GitHub Release
6259 if : startsWith(github.ref, 'refs/tags/')
6360 uses : softprops/action-gh-release@v2.6.1
6461 with :
65- files : |
66- opencli-extension.zip
67- opencli-extension-v*.zip
62+ files : opencli-extension-v*.zip
6863 draft : false
6964 prerelease : false
7065 env :
Original file line number Diff line number Diff line change @@ -42,15 +42,13 @@ jobs:
4242 run : |
4343 EXT_VERSION=$(node -p "require('./extension/package.json').version")
4444 cd extension-package
45- zip -r ../opencli-extension.zip .
46- cp ../opencli-extension.zip ../opencli-extension-v${EXT_VERSION}.zip
45+ zip -r ../opencli-extension-v${EXT_VERSION}.zip .
4746
4847 - name : Create GitHub Release
4948 uses : softprops/action-gh-release@v2.6.1
5049 with :
5150 generate_release_notes : true
5251 files : |
53- opencli-extension.zip
5452 opencli-extension-v*.zip
5553
5654 - name : Publish to npm
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ npm install -g @jackwener/opencli
4949
5050OpenCLI connects to Chrome/Chromium through a lightweight Browser Bridge extension plus a small local daemon. The daemon auto-starts when needed.
5151
52- 1 . Download the latest ` opencli-extension.zip ` from the GitHub [ Releases page] ( https://github.com/jackwener/opencli/releases ) .
52+ 1 . Download the latest ` opencli-extension-v{version} .zip ` from the GitHub [ Releases page] ( https://github.com/jackwener/opencli/releases ) .
53532 . Unzip it, open ` chrome://extensions ` , and enable ** Developer mode** .
54543 . Click ** Load unpacked** and select the unzipped folder.
5555
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ npm install -g @jackwener/opencli
3737
3838OpenCLI 通过轻量 Browser Bridge 扩展和本地微型 daemon 与 Chrome/Chromium 通信。daemon 会按需自动启动。
3939
40- 1 . 到 GitHub [ Releases 页面] ( https://github.com/jackwener/opencli/releases ) 下载最新的 ` opencli-extension.zip ` 。
40+ 1 . 到 GitHub [ Releases 页面] ( https://github.com/jackwener/opencli/releases ) 下载最新的 ` opencli-extension-v{version} .zip ` 。
41412 . 解压后打开 ` chrome://extensions ` ,启用 ** 开发者模式** 。
42423 . 点击 ** 加载已解压的扩展程序** ,选择解压后的目录。
4343
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ OpenCLI connects to your browser through a lightweight **Browser Bridge** Chrome
88
99### Method 1: Download Pre-built Release (Recommended)
1010
11- 1 . Go to the GitHub [ Releases page] ( https://github.com/jackwener/opencli/releases ) and download the latest ` opencli-extension.zip ` .
11+ 1 . Go to the GitHub [ Releases page] ( https://github.com/jackwener/opencli/releases ) and download the latest ` opencli-extension-v{version} .zip ` .
12122 . Unzip the file and open ` chrome://extensions ` , enable ** Developer mode** (top-right toggle).
13133 . Click ** Load unpacked** and select the unzipped folder.
1414
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ OpenCLI 通过轻量级 **Browser Bridge** Chrome 扩展 + 微守护进程连接
88
99### 方法 1:下载预构建版本(推荐)
1010
11- 1 . 前往 GitHub [ Releases 页面] ( https://github.com/jackwener/opencli/releases ) 下载最新的 ` opencli-extension.zip ` 。
11+ 1 . 前往 GitHub [ Releases 页面] ( https://github.com/jackwener/opencli/releases ) 下载最新的 ` opencli-extension-v{version} .zip ` 。
12122 . 解压后打开 ` chrome://extensions ` ,启用** 开发者模式** 。
13133 . 点击** 加载已解压的扩展程序** ,选择解压后的文件夹。
1414
You can’t perform that action at this time.
0 commit comments