Initial release — PySide6 app for automatic GOG offline installer management
This commit is contained in:
34
GOGUpdater.py
Normal file
34
GOGUpdater.py
Normal file
@@ -0,0 +1,34 @@
|
||||
"""GOGUpdater GUI entry point."""
|
||||
|
||||
import sys
|
||||
|
||||
from loguru import logger
|
||||
from PySide6.QtWidgets import QApplication
|
||||
|
||||
from src.api import GogApi
|
||||
from src.auth import AuthManager
|
||||
from src.config import AppConfig, DEFAULT_CONFIG_DIR
|
||||
from src.constants import APP_TITLE
|
||||
from src.ui.main_window import MainWindow
|
||||
|
||||
|
||||
def main() -> None:
|
||||
config_dir = DEFAULT_CONFIG_DIR
|
||||
config_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
logger.info(f"Starting {APP_TITLE}")
|
||||
|
||||
auth = AuthManager(config_dir)
|
||||
api = GogApi(auth)
|
||||
config = AppConfig(config_dir)
|
||||
|
||||
app = QApplication(sys.argv)
|
||||
window = MainWindow(auth, api, config)
|
||||
window.show()
|
||||
|
||||
logger.info("Application window shown")
|
||||
sys.exit(app.exec())
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user