Skip to content

Commit

Permalink
fix: info 版本同步
Browse files Browse the repository at this point in the history
  • Loading branch information
xnmeet committed Jan 19, 2025
1 parent f00ac18 commit 4c63c5a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 17 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@ jobs:
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add appcast.json
git commit -m "chore: update appcast.json for version ${{ steps.get_latest_tag.outputs.version }}"
git add bob-plugin/info.json
git commit -m "chore: update version files for ${{ steps.get_latest_tag.outputs.version }}"
git push
16 changes: 1 addition & 15 deletions appcast.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
{
"identifier": "com.meet.bob-plugin-voi",
"versions": [
{
"version": "0.0.3",
"desc": "auto",
"sha256": "895cedb135f44bda74c5d80ed1f940fbe75c95592d5f2028af1c3c6eafd77c9a",
"url": "https://raw.githubusercontent.com/xnmeet/voi/releases/download/v0.0.3/voi-0.0.3.bobplugin",
"minBobVersion": "0.5.0"
},
{
"version": "0.0.2",
"desc": "auto",
"sha256": "280ac320f36a91fa4afebbdebba2dbcedbcb5624bff1d9c929c362836bc2a0a2",
"url": "https://raw.githubusercontent.com/xnmeet/voi/releases/download/v0.0.2/voi-0.0.2.bobplugin",
"minBobVersion": "0.5.0"
},
{
"version": "0.0.1",
"desc": "auto",
Expand All @@ -23,4 +9,4 @@
"minBobVersion": "0.5.0"
}
]
}
}
2 changes: 1 addition & 1 deletion bob-plugin/src/info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"identifier": "com.meet.bob-plugin-voi",
"version": "0.0.1",
"version": "0.0.2",
"category": "tts",
"name": "Kokoro 语音",
"summary": "使用 Kokoro 本地部署模型作为语音合成服务",
Expand Down
10 changes: 10 additions & 0 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ def calculate_sha256(filename):
return sha256_hash.hexdigest()

def create_plugin_package(version):
# Update version in info.json first
info_json_path = "bob-plugin/info.json"
with open(info_json_path, 'r') as f:
info = json.load(f)

info['version'] = version

with open(info_json_path, 'w') as f:
json.dump(info, f, indent=2)

# Create zip file from src directory
src_dir = "bob-plugin"
output_name = f"voi-{version}"
Expand Down

0 comments on commit 4c63c5a

Please sign in to comment.