Skip to content

Commit

Permalink
update: ISP切换为AirISP-next
Browse files Browse the repository at this point in the history
  • Loading branch information
HalfSweet committed Dec 31, 2023
1 parent eea6f44 commit 278d268
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


def GetAirISPVersion():
url = "https://api.github.com/repos/Air-duino/AirISP/releases"
url = "https://api.github.com/repos/Air-duino/AirISP-next/releases"
response = requests.get(url)

if response.status_code == 200:
Expand Down Expand Up @@ -146,35 +146,35 @@ def f(host, suffixName):


def AirISP():
data = {'name': "AirISP", 'version': AirISPVersion}
dataCn = data.copy()
data = {'name': "AirISP-next", 'version': AirISPVersion}
dataCn = data
system = []
systemCn = []

def f(host, suffixName):
url = "https://github.com/Air-duino/AirISP/releases/download/" + AirISPVersion + "/"
fileName = "AirISP-"
url = "https://github.com/Air-duino/AirISP-next/releases/download/" + AirISPVersion + "/"
fileName = f"AirISP-{AirISPVersion}-"
return DownloadAndCheck(url, fileName, host, suffixName)

temp, tempCn = f("x86_64-mingw32", "win-x64.zip")
system.append(temp)
systemCn.append(tempCn)
temp, tempCn = f("i686-mingw32", "win-x64.zip")
temp, tempCn = f("x86_64-mingw32", "windows-x86_64.zip")
system.append(temp)
systemCn.append(tempCn)
temp, tempCn = f("x86_64-apple-darwin", "osx-x64.tar")
temp, tempCn = f("i686-mingw32", "windows-x86_64.zip")
system.append(temp)
systemCn.append(tempCn)
temp, tempCn = f("arm64-apple-darwin", "osx-arm64.tar")
temp, tempCn = f("x86_64-apple-darwin", "macos-x86_64.tar.gz")
system.append(temp)
systemCn.append(tempCn)
temp, tempCn = f("arm-linux-gnueabihf", "linux-arm.tar")
temp, tempCn = f("arm64-apple-darwin", "macos-aarch64.tar.gz")
system.append(temp)
systemCn.append(tempCn)
temp, tempCn = f("aarch64-linux-gnu", "linux-arm64.tar")
# temp, tempCn = f("arm-linux-gnueabihf", "linux-arm.zip")
# system.append(temp)
# systemCn.append(tempCn)
temp, tempCn = f("aarch64-linux-gnu", "linux-aarch64.tar.gz")
system.append(temp)
systemCn.append(tempCn)
temp, tempCn = f("x86_64-pc-linux-gnu", "linux-x64.tar")
temp, tempCn = f("x86_64-pc-linux-gnu", "linux-x86_64.tar.gz")
system.append(temp)
systemCn.append(tempCn)

Expand Down

0 comments on commit 278d268

Please sign in to comment.