Browse Source

better feedback in the installer

master
Jaka Perovšek 6 months ago
parent
commit
2b3ec6ec4b
  1. 6
      deploy.py
  2. 2
      main.py

6
deploy.py

@ -166,12 +166,12 @@ def prepare_music(data):
logging.info(f"ffmpeg version is {ffmpeg_version}")
logging.info("downloading and cutting the songs")
for tape in data:
for i, tape in enumerate(data):
if not os.path.exists(f"./build/music/{tape['identifier']}.ogg"):
logging.info(f"Downloading {tape['name']}")
logging.info(f"{i + 1}/{len(data)} Downloading: {tape['name']}")
fetch_and_cut_song(tape, ffmpeg_version)
else:
logging.info(f"Skipping {tape['name']}")
logging.info(f"{i + 1}/{len(data)} Already exists: {tape['name']}")
logging.info(f"removing temporary music folder")
rmfulldir('./build/tmp_music/')

2
main.py

@ -266,8 +266,10 @@ def create_deploy_frame(container, config):
def does_ffmpeg_exists():
if Path("./utils/ffmpeg-" + get_ffmpeg_version() + "-full_build/bin/ffmpeg.exe").exists():
deploy_button["state"] = "normal"
download_tools_button["state"] = "disable"
else:
deploy_button["state"] = "disable"
download_tools_button["state"] = "normal"
frame = ttk.LabelFrame(container, text='Install')

Loading…
Cancel
Save