Test a 64 bits build

This commit is contained in:
2019-12-03 10:34:34 -06:00
parent 73f1a9c31f
commit 17bfa4b260
5 changed files with 9 additions and 65 deletions

View File

@@ -75,11 +75,11 @@ def find_version_data(update_type, current_version, available_update):
return (False, False, False)
available_description = available_update["message"]
# ToDo: simplify this so it can be reused in other projects.
import application
if application.is_pyinstaller():
update_url = "https://code.manuelcortez.net/manuelcortez/socializer/-/jobs/artifacts/master/raw/socializer.zip?job=alpha_python3"
else:
import platform
if platform.architecture()[0][:2] == "32":
update_url = "https://code.manuelcortez.net/manuelcortez/socializer/-/jobs/artifacts/master/raw/socializer_x86.zip?job=alpha32"
else:
update_url = "https://code.manuelcortez.net/manuelcortez/socializer/-/jobs/artifacts/master/raw/socializer_x64.zip?job=alpha64"
return (available_version, available_description, update_url)
def download_update(update_url, update_destination, requests_session, progress_callback=None, chunk_size=io.DEFAULT_BUFFER_SIZE):