|
|
|
@ -163,7 +163,7 @@ def get_the_last_windowsAppZIP(name): |
|
|
|
ssl._create_default_https_context = ssl._create_unverified_context |
|
|
|
download(cdn_url + packageUrl) |
|
|
|
print(cdn_url + packageUrl) |
|
|
|
the_last_windowsAppZIP = os.getcwd() + packageUrl.split("/")[-1] |
|
|
|
the_last_windowsAppZIP = os.getcwd() + '/' + packageUrl.split("/")[-1] |
|
|
|
return the_last_windowsAppZIP |
|
|
|
else: |
|
|
|
return None |
|
|
|
@ -175,13 +175,15 @@ def build_for_windowsApp(): |
|
|
|
|
|
|
|
|
|
|
|
def build_the_current_windowsApp(name): |
|
|
|
the_current_windowsAppZIP="/drone/src/IOTContainer/" + os.getenv('DRONE_REPO_NAME') + '.' + os.getenv('version') + '.zip' |
|
|
|
the_last_windowsAppZIP = get_the_last_windowsAppZIP(name) |
|
|
|
if the_last_windowsAppZIP == None: |
|
|
|
print("初次上传,不比对zip,直接打包上传") |
|
|
|
platformAppAdd(the_current_windowsAppZIP, '.zip') |
|
|
|
build_for_windowsApp() |
|
|
|
platformAppAdd('/drone/src/Sources/Setup.exe', '.exe') |
|
|
|
else: |
|
|
|
print ("比对新老版本zip文件") |
|
|
|
the_current_windowsAppZIP="/drone/src/IOTContainer/" + os.getenv('DRONE_REPO_NAME') + '.' + os.getenv('version') + '.zip' |
|
|
|
|
|
|
|
with open(the_last_windowsAppZIP) as f: content1 = f.read() |
|
|
|
with open(the_current_windowsAppZIP) as f: content2 = f.read() |
|
|
|
|
|
|
|
|