Skip to content

Commit

Permalink
fix: 修复版本号更新脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Jul 17, 2023
1 parent 902ac4e commit 6dd6d4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import os
import sys
import json

if len(os.argv) < 3:
if len(sys.argv) < 3:
print("Usage: python update_resource_version.py <properties_file> <version>")
exit(1)

properties_file = os.argv[1]
version = os.argv[2]
properties_file = sys.argv[1]
version = sys.argv[2]

with open(properties_file, "r") as f:
data = json.load(f)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Install
shell: bash
run: |
python3 tools/update_resource_version.py assets/resource/properties.json ${{ needs.meta.outputs.tag }}
python3 .github/update_resource_version.py assets/resource/properties.json ${{ needs.meta.outputs.tag }}
cd source/cli/${{ matrix.msbuild_target }}/Release
mkdir -p install
cp -r docs include resource MaaAgentBinary *.exe *.dll install
Expand Down

0 comments on commit 6dd6d4d

Please sign in to comment.