Skip to content

Commit

Permalink
Revert previous commit to increase comparibility with older versions …
Browse files Browse the repository at this point in the history
…of PyFit
  • Loading branch information
MrBananaPants committed Sep 19, 2022
1 parent 8843f31 commit 394939c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions PyFit.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
main_path = os.path.join(os.getenv("HOME"), "PyFit")

# Global variables
version = "0.5.2"
version = "0.5.3"
exercise_index = 0
info_index = 0
exercise_list = []
Expand Down Expand Up @@ -408,12 +408,8 @@ def check_for_updates(alert_when_no_update=False):
if messagebox.askyesno("PyFit", f"An update is available (v{latest_version_formatted}). Do you want to download this update?"):
save_path = filedialog.askdirectory(title="Select save location")
if os.name == 'nt':
try:
urllib.request.urlretrieve(f"https://github.com/MrBananaPants/PyFit/releases/download/{latest_version_formatted}/PyFit.exe",
os.path.join(save_path, "PyFit.exe"))
except:
urllib.request.urlretrieve(f"https://github.com/MrBananaPants/PyFit/releases/download/{latest_version_formatted}/PyFit.zip",
os.path.join(save_path, "PyFit.zip"))
urllib.request.urlretrieve(f"https://github.com/MrBananaPants/PyFit/releases/download/{latest_version_formatted}/PyFit.exe",
os.path.join(save_path, "PyFit.exe"))
else:
urllib.request.urlretrieve(f"https://github.com/MrBananaPants/PyFit/releases/download/{latest_version_formatted}/PyFit.zip",
os.path.join(save_path, "PyFit.dmg"))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
DATA_FILES = [('', ['media'])]
OPTIONS = {
'iconfile': 'media/icon.icns',
'plist': {'CFBundleShortVersionString': '0.5.2', },
'plist': {'CFBundleShortVersionString': '0.5.3', },
'packages': ['customtkinter']}

setup(
Expand Down

0 comments on commit 394939c

Please sign in to comment.