2023-01-19 10:33:49 +01:00
|
|
|
#!/usr/bin/python3
|
|
|
|
# SPDX-License-Identifier: LicenseRef-EliasSteurerTachiom OR AGPL-3.0-only
|
2022-10-10 11:35:41 +02:00
|
|
|
import sys
|
|
|
|
from pathlib import Path
|
2022-11-02 12:15:34 +01:00
|
|
|
from sys import stdout
|
2023-02-11 13:53:44 +01:00
|
|
|
import os
|
2022-10-10 11:35:41 +02:00
|
|
|
|
2022-11-02 12:15:34 +01:00
|
|
|
stdout.reconfigure(encoding='utf-8')
|
|
|
|
|
2022-11-11 13:09:16 +01:00
|
|
|
# Defined by Qt
|
|
|
|
if sys.platform == "win32":
|
|
|
|
OS = "windows"
|
|
|
|
QT_PLATFORM = "msvc2019_64"
|
|
|
|
elif sys.platform == "darwin":
|
|
|
|
OS = "mac"
|
2022-11-12 14:12:34 +01:00
|
|
|
QT_PLATFORM = "macos"
|
2023-01-29 13:26:36 +01:00
|
|
|
elif sys.platform == "linux":
|
2022-11-11 13:09:16 +01:00
|
|
|
OS = "linux"
|
|
|
|
QT_PLATFORM = "gcc_64"
|
|
|
|
|
2023-11-02 12:50:29 +01:00
|
|
|
REPO_PATH = Path(__file__, "../../").resolve()
|
|
|
|
THIRDPATH_PATH = Path(REPO_PATH, "ThirdParty").resolve()
|
|
|
|
QT_PATH = path = Path(REPO_PATH, "../aqt").resolve()
|
2023-11-29 10:36:58 +01:00
|
|
|
QT_VERSION = "6.6.1"
|
2023-01-22 16:29:20 +01:00
|
|
|
QT_BIN_PATH = QT_PATH.joinpath(f"{QT_VERSION}/{QT_PLATFORM}/bin")
|
|
|
|
QT_TOOLS_PATH = QT_PATH.joinpath("Tools/")
|
2023-06-11 10:38:52 +02:00
|
|
|
QT_IFW_VERSION = "4.6"
|
2023-11-29 08:02:15 +01:00
|
|
|
# 25.11.2023 https://gitlab.com/kelteseth/screenplay-vcpkg :
|
2023-11-29 10:36:58 +01:00
|
|
|
VCPKG_VERSION = "cabba0d0379b78e34d0a0d37edb4c459c5a03337"
|
2023-10-29 18:10:13 +01:00
|
|
|
VCPKG_BASE_PACKAGES = [
|
|
|
|
"curl",
|
2023-11-29 08:02:15 +01:00
|
|
|
"openssl",
|
2023-10-29 18:10:13 +01:00
|
|
|
"cpp-httplib",
|
|
|
|
"libarchive",
|
|
|
|
"fmt",
|
|
|
|
"catch2"
|
|
|
|
]
|
2022-10-14 11:54:00 +02:00
|
|
|
PYTHON_EXECUTABLE = "python" if sys.platform == "win32" else "python3"
|
2023-11-02 12:50:29 +01:00
|
|
|
FFMPEG_VERSION = "6.0"
|
|
|
|
GODOT_VERSION = "4.2"
|
2023-11-29 10:36:58 +01:00
|
|
|
GODOT_RELEASE_TYPE = "rc2"
|
2023-11-16 09:41:11 +01:00
|
|
|
GODOT_DOWNLOAD_SERVER = "https://github.com/godotengine/godot-builds/releases/download"
|
2023-09-28 15:55:11 +02:00
|
|
|
if sys.platform == "win32":
|
|
|
|
SCREENPLAYWALLPAPER_GODOT_EXECUTABLE = "ScreenPlayWallpaperGodot.exe"
|
|
|
|
GODOT_EDITOR_EXECUTABLE = f"Godot_v{GODOT_VERSION}-{GODOT_RELEASE_TYPE}_win64.exe"
|
2023-11-16 09:41:11 +01:00
|
|
|
GODOT_EDITOR_DOWNLOAD_NAME = GODOT_EDITOR_EXECUTABLE + ".zip"
|
2023-09-28 15:55:11 +02:00
|
|
|
GODOT_TEMPLATES_PATH = os.path.join(os.getenv(
|
|
|
|
'APPDATA'), f"Godot/templates/{GODOT_VERSION}.{GODOT_RELEASE_TYPE}")
|
|
|
|
elif sys.platform == "darwin":
|
|
|
|
SCREENPLAYWALLPAPER_GODOT_EXECUTABLE = "ScreenPlayWallpaperGodot.app"
|
2023-11-16 09:41:11 +01:00
|
|
|
# Godot_v4.2-beta6_macos.universal.zip
|
|
|
|
GODOT_EDITOR_EXECUTABLE = "Godot.app"
|
|
|
|
GODOT_EDITOR_DOWNLOAD_NAME = f"Godot_v{GODOT_VERSION}-{GODOT_RELEASE_TYPE}_macos.universal.zip"
|
2023-09-28 15:55:11 +02:00
|
|
|
GODOT_TEMPLATES_PATH = "TODO"
|
|
|
|
elif sys.platform == "linux":
|
|
|
|
SCREENPLAYWALLPAPER_GODOT_EXECUTABLE = "ScreenPlayWallpaperGodot"
|
2023-11-16 09:41:11 +01:00
|
|
|
# Godot_v4.2-beta6_linux.x86_64
|
|
|
|
GODOT_EDITOR_EXECUTABLE = f"Godot_v{GODOT_VERSION}-{GODOT_RELEASE_TYPE}_linux.x86_64"
|
|
|
|
GODOT_EDITOR_DOWNLOAD_NAME = GODOT_EDITOR_EXECUTABLE + ".zip"
|
2023-09-28 15:55:11 +02:00
|
|
|
# /home/eli/.local/share/godot/templates/
|
|
|
|
GODOT_TEMPLATES_PATH = os.path.join(
|
|
|
|
Path.home(), f".local/share/godot/templates/{GODOT_VERSION}.{GODOT_RELEASE_TYPE}")
|
2023-11-02 12:50:29 +01:00
|
|
|
|