Skip to content

Commit

Permalink
update: 更新国内源地址
Browse files Browse the repository at this point in the history
  • Loading branch information
HalfSweet committed Nov 12, 2023
1 parent 5c1f245 commit 78653ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
- run: coscli sync ./temp cos://${{ secrets.COS_BUCKET }}/release --recursive --exclude "temp file path.txt" --thread-num 20
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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


Expand Down Expand Up @@ -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


Expand Down

0 comments on commit 78653ee

Please sign in to comment.