From da2c0d0331d10c5e6279e77623ff5de52163ff0f Mon Sep 17 00:00:00 2001 From: cxfksword Date: Tue, 11 Oct 2022 17:38:07 +0800 Subject: [PATCH] Fix github action build --- .github/workflows/publish.yaml | 2 +- build_plugin.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 9c0b73e..46be68c 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -23,7 +23,7 @@ jobs: with: dotnet-version: ${{ env.dotnet-version }} - name: Restore nuget packages - run: dotnet restore ${{ env.project }} + run: dotnet restore ${{ env.project }} # 需要指定项目,要不然会同时build多个项目导致出错 - name: Setup python uses: actions/setup-python@v2 with: diff --git a/build_plugin.py b/build_plugin.py index 262e72b..16b543a 100644 --- a/build_plugin.py +++ b/build_plugin.py @@ -39,9 +39,10 @@ os.system('jprm repo add --url=%s %s %s' % (jellyfin_repo_url, jellyfin_repo_fil os.system('sed -i "s/\/danmu\//\/%s\//" %s' % (git_version, jellyfin_repo_file)) +# 国内加速 os.system('cp -f %s %s' % (jellyfin_repo_file, jellyfin_repo_file_cn)) -os.system('sed "s/github.com/raw.iqiq.io/" %s' % (jellyfin_repo_file_cn)) +os.system('sed -i "s/github.com/raw.iqiq.io/" %s' % (jellyfin_repo_file_cn)) print(version)