mirror of
https://github.com/aiclientproxy/proxycast.git
synced 2026-09-24 23:10:56 +08:00
refactor: 解耦 MachineIdTool 插件
- 移除 release workflow 中的插件打包步骤 - 更新插件下载 URL 指向 MachineIdTool 仓库 - 删除本地 plugins/machine-id-tool 目录 - 插件包现由 MachineIdTool 仓库独立管理
This commit is contained in:
@@ -15,24 +15,6 @@ permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
# 打包插件
|
||||
package-plugins:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Package machine-id-tool plugin
|
||||
run: |
|
||||
cd plugins
|
||||
zip -j machine-id-tool.zip machine-id-tool/plugin.json machine-id-tool/config.json
|
||||
|
||||
- name: Upload plugin artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: plugins
|
||||
path: plugins/*.zip
|
||||
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -120,22 +102,3 @@ jobs:
|
||||
releaseDraft: false
|
||||
prerelease: false
|
||||
args: --target ${{ matrix.target }}
|
||||
|
||||
# 上传插件到 Release
|
||||
upload-plugins:
|
||||
needs: [build, package-plugins]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Download plugin artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: plugins
|
||||
path: plugins
|
||||
|
||||
- name: Upload plugins to release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: ${{ github.event.inputs.version || github.ref_name }}
|
||||
files: plugins/*.zip
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"enabled": true,
|
||||
"settings": {}
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
{
|
||||
"name": "machine-id-tool",
|
||||
"version": "0.2.0",
|
||||
"description": "Machine ID 管理工具 - 查看、修改和管理系统机器码,支持跨平台操作",
|
||||
"author": "ProxyCast Team",
|
||||
"homepage": "https://github.com/aiclientproxy/MachineIdTool",
|
||||
"license": "MIT",
|
||||
"plugin_type": "binary",
|
||||
"entry": "machine-id-tool-cli",
|
||||
"hooks": [],
|
||||
"min_proxycast_version": "1.0.0",
|
||||
"binary": {
|
||||
"binary_name": "machine-id-tool-cli",
|
||||
"github_owner": "aiclientproxy",
|
||||
"github_repo": "MachineIdTool",
|
||||
"platform_binaries": {
|
||||
"macos-arm64": "machine-id-tool-aarch64-apple-darwin",
|
||||
"macos-x64": "machine-id-tool-x86_64-apple-darwin",
|
||||
"linux-x64": "machine-id-tool-x86_64-unknown-linux-gnu",
|
||||
"linux-arm64": "machine-id-tool-aarch64-unknown-linux-gnu",
|
||||
"windows-x64": "machine-id-tool-x86_64-pc-windows-msvc.exe"
|
||||
},
|
||||
"checksum_file": "checksums.txt"
|
||||
},
|
||||
"ui": {
|
||||
"surfaces": ["tools"],
|
||||
"icon": "Cpu",
|
||||
"title": "机器码管理工具",
|
||||
"default_width": 800,
|
||||
"default_height": 600
|
||||
}
|
||||
}
|
||||
@@ -106,9 +106,9 @@ const recommendedPlugins: RecommendedPlugin[] = [
|
||||
name: "机器码管理工具",
|
||||
description: "查看、修改和管理系统机器码,支持跨平台操作",
|
||||
icon: Cpu,
|
||||
// 插件包从 ProxyCast release 下载
|
||||
// 插件包从 MachineIdTool 仓库 release 下载
|
||||
downloadUrl:
|
||||
"https://github.com/aiclientproxy/proxycast/releases/latest/download/machine-id-tool.zip",
|
||||
"https://github.com/aiclientproxy/MachineIdTool/releases/latest/download/machine-id-tool-plugin.zip",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -228,9 +228,9 @@ const recommendedPlugins: RecommendedPlugin[] = [
|
||||
name: "机器码管理工具",
|
||||
description: "查看、修改和管理系统机器码,支持跨平台操作",
|
||||
icon: "Cpu",
|
||||
// 插件包从 ProxyCast release 下载
|
||||
// 插件包从 MachineIdTool 仓库 release 下载
|
||||
downloadUrl:
|
||||
"https://github.com/aiclientproxy/proxycast/releases/latest/download/machine-id-tool.zip",
|
||||
"https://github.com/aiclientproxy/MachineIdTool/releases/latest/download/machine-id-tool-plugin.zip",
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user