From 6dd6d4dbc48dcc1aa133c52bac000db4ecf7ba45 Mon Sep 17 00:00:00 2001 From: MistEO Date: Mon, 17 Jul 2023 23:55:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7=E6=9B=B4=E6=96=B0=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- {tools => .github}/update_resource_version.py | 8 ++++---- .github/workflows/ci.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) rename {tools => .github}/update_resource_version.py (76%) diff --git a/tools/update_resource_version.py b/.github/update_resource_version.py similarity index 76% rename from tools/update_resource_version.py rename to .github/update_resource_version.py index e322b23..15a00eb 100644 --- a/tools/update_resource_version.py +++ b/.github/update_resource_version.py @@ -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 ") 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) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac52660..f511e6d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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