diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d980e04..da80d57 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,4 +35,4 @@ jobs: secret-key: ${{ secrets.COS_SECRET_KEY }} bucket: ${{ secrets.COS_BUCKET }} coscli-version: 'v0.12.0-beta' # Optional, default to 'v0.12.0-beta'. Use 'latest' to get the latest version. - - run: coscli sync ./temp cos://${{ secrets.COS_BUCKET }}/release --recursive --exclude "temp file path.txt" \ No newline at end of file + - run: coscli sync ./temp cos://${{ secrets.COS_BUCKET }}/release --recursive --exclude "temp file path.txt" --thread-num 20 \ No newline at end of file diff --git a/main.py b/main.py index fca4a0b..3b3df50 100644 --- a/main.py +++ b/main.py @@ -7,6 +7,8 @@ packagesPath = "package_py32_index.json" packagesCNPath = "package_py32_cn_index.json" +cnUrlBase = "https://arduino.py32.halfsweet.cn/releases/" + GCCVersion = "12.2.1-1.2" AirISPVersion = "" # 不定义具体的版本,在GetAirISPVersion函数中创造 CMSISVersion = "5.7.0" @@ -104,7 +106,7 @@ def DownloadAndCheck(url, fileName, host, suffixName): temp['size'] = ComputeSize(tempPath) tempCn = temp.copy() - tempCn['url'] = "https://arduino.py32.halfsweet.cn/" + fileName + suffixName + tempCn['url'] = cnUrlBase + fileName + suffixName return temp, tempCn @@ -241,7 +243,7 @@ def PlatformsPY32(version): {'packager': "PY32Duino", 'name': "CMSIS", 'version': CMSISVersion}, {'packager': "PY32Duino", 'name': "AirISP", 'version': AirISPVersion}] dataCn = data.copy() - dataCn['url'] = "https://arduino.py32.halfsweet.cn/" + fileName + dataCn['url'] = cnUrlBase + fileName return data, dataCn