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)