Add Deno setup and integration to application
Introduces Deno binary management, setup dialog, and download/verification logic. Updates localization files for Deno setup messages in all supported languages. Integrates Deno setup checks into main.py and GUI initialization, and adds Deno constants for platform-specific downloads.
This commit is contained in:
@@ -4,6 +4,7 @@ from PySide6.QtWidgets import QApplication, QMessageBox
|
||||
|
||||
from src.utils.ytsage_logger import logger
|
||||
from src.core.ytsage_yt_dlp import check_ytdlp_binary, setup_ytdlp # Import the new yt-dlp setup functions
|
||||
from src.core.ytsage_deno import check_deno_binary, setup_deno # Import the new Deno setup functions
|
||||
from src.gui.ytsage_gui_main import YTSageApp # Import the main application class from ytsage_gui_main
|
||||
|
||||
|
||||
@@ -29,6 +30,13 @@ def main():
|
||||
if yt_dlp_path == "yt-dlp": # If user canceled or something went wrong
|
||||
logger.warning("yt-dlp not configured properly")
|
||||
|
||||
# Check for Deno binary
|
||||
if not check_deno_binary():
|
||||
logger.warning("No Deno binary found, starting setup process")
|
||||
deno_path = setup_deno()
|
||||
if deno_path == "deno": # If user canceled or something went wrong
|
||||
logger.warning("Deno not configured properly")
|
||||
|
||||
window = YTSageApp() # Instantiate the main application class
|
||||
window.show()
|
||||
logger.info("Application window shown, entering main loop")
|
||||
|
||||
Reference in New Issue
Block a user