From 40ffc16128ac4b79b1d7c608a32fe21d06bd5d63 Mon Sep 17 00:00:00 2001 From: Elijah Lopez Date: Mon, 15 Jul 2019 09:24:54 -0400 Subject: [PATCH] Fixed Startup --- Installer Script.iss | 2 +- after_build.py | 2 +- build.bat | 2 -- music_caster.py | 1 + 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Installer Script.iss b/Installer Script.iss index 057e08e5..1fc7edd8 100644 --- a/Installer Script.iss +++ b/Installer Script.iss @@ -2,7 +2,7 @@ ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! #define MyAppName "Music Caster" -#define MyAppVersion "1.2.0" +#define MyAppVersion "1.2.1" #define MyAppPublisher "Elijah Lopez" #define MyAppURL "https://elijahlopez.herokuapp.com/" #define MyAppExeName "Music Caster.exe" diff --git a/after_build.py b/after_build.py index 949501ee..889b7975 100644 --- a/after_build.py +++ b/after_build.py @@ -2,7 +2,7 @@ import zipfile default_settings = { - 'version': '1.2.0', + 'version': '1.2.1', 'previous device': None, 'comments': ['Edit only the variables below', 'Restart the program after editing this file!'], 'auto update': True, diff --git a/build.bat b/build.bat index 7bf64279..202c5ec3 100644 --- a/build.bat +++ b/build.bat @@ -1,5 +1,3 @@ -REM venv\Scripts\pyinstaller music_caster.spec -REM venv\Scripts\pyinstaller updater.spec pyinstaller music_caster.spec pyinstaller updater.spec python after_build.py diff --git a/music_caster.py b/music_caster.py index 84e3ab8e..3a162b63 100644 --- a/music_caster.py +++ b/music_caster.py @@ -122,6 +122,7 @@ def save_json(): shell = win32com.client.Dispatch('WScript.Shell') shortcut = shell.CreateShortCut(shortcut_path) shortcut.Targetpath = target + shortcut.WorkingDirectory = starting_dir shortcut.WindowStyle = 1 # 7 - Minimized, 3 - Maximized, 1 - Normal shortcut.save() elif not settings['run on startup'] and shortcut_exists: