Skip to content

Commit

Permalink
Versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
elibroftw committed Jul 14, 2019
1 parent d2e6303 commit 8a586c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Installer Script.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Music Caster"
#define MyAppVersion "1.0"
#define MyAppVersion "1.1.0"
#define MyAppPublisher "Elijah Lopez"
#define MyAppURL "https://elijahlopez.herokuapp.com/"
#define MyAppExeName "Music Caster.exe"
Expand Down
2 changes: 1 addition & 1 deletion after_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

default_settings = {
'comments': ['Restart the program after editing this file!'],
'version': '1.0.0',
'version': '1.1.0',
'previous device': None,
'auto update': True,
'run on startup': True,
Expand Down
4 changes: 3 additions & 1 deletion music_caster.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from pygame import mixer as local_music_player # https://www.pygame.org/docs/ref/music.html
from pynput.keyboard import Listener
import PySimpleGUIQt as sg
import PySide2
# import PySide2
from random import shuffle
import requests
from subprocess import Popen
Expand Down Expand Up @@ -90,6 +90,8 @@ def save_json():
release_entry = soup.find('div', class_='release-entry')
current_version = settings['version']
latest_version = release_entry.find('a', class_='muted-link css-truncate')['title'][1:]
major, minor, patch = (int(x) for x in current_version.split('.'))
lt_major, lt_minor, lt_patch = (int(x) for x in latest_version.split('.'))
if latest_version != current_version:
if settings.get('DEBUG'):
Popen(f'python "{starting_dir}/updater.py"')
Expand Down

0 comments on commit 8a586c3

Please sign in to comment.