diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9d76abf2..b525ac82 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -88,6 +88,7 @@ build:linux_debug:
- check
script:
- sudo apt-get update -y
+ - sudo snap install cqtdeployer
- sudo apt-get install apt-transport-https ca-certificates gnupg software-properties-common wget software-properties-common -y
- wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
- sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic-rc main' -y
@@ -112,12 +113,13 @@ build:linux_release:
- check
script:
- sudo apt-get update -y
+ - sudo snap install cqtdeployer
- sudo apt-get install apt-transport-https ca-certificates gnupg software-properties-common wget software-properties-common -y
- wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
- sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic-rc main' -y
- sudo apt-get update -y
- sudo apt install build-essential libgl1-mesa-dev lld ninja-build cmake -y
- - cd Tools
+ - cd Tools
- python build.py -t release
artifacts:
expire_in: '4 weeks'
diff --git a/ScreenPlay/Resources.qrc b/ScreenPlay/Resources.qrc
index db9433d4..9525df18 100644
--- a/ScreenPlay/Resources.qrc
+++ b/ScreenPlay/Resources.qrc
@@ -107,7 +107,6 @@
assets/images/mask.svg
assets/images/mask_workshop.png
assets/images/Untitled.png
- assets/images/window.svg
translations/ScreenPlay_zh_cn.qm
translations/ScreenPlay_de.qm
translations/ScreenPlay_en.qm
diff --git a/Tools/build.py b/Tools/build.py
index c889ca9b..b21fbeb2 100644
--- a/Tools/build.py
+++ b/Tools/build.py
@@ -36,14 +36,16 @@ print("Starting build with type %s. Qt Version: %s" %
cmake_prefix_path = ""
cmake_target_triplet = ""
+cmake_build_type = ""
executable_file_ending = ""
-deploy_executable = ""
+deploy_command = ""
if platform == "win32":
print("Loading MSVC env variables via vsvars32.bat")
+ cmake_build_type = args.build_type
windows_msvc = "msvc2019_64"
executable_file_ending = ".exe"
- deploy_executable = "windeployqt.exe"
+ deploy_command = "windeployqt.exe --{type} --qmldir ../../{app}/qml {app}{executable_file_ending}"
dict = vs_env_dict()
dict["PATH"] = dict["PATH"] + ";C:\\Qt\\" + qt_version + "\\" + windows_msvc + "\\bin;C:\\Qt\\Tools\\QtCreator\\bin"
os.environ.update(dict)
@@ -52,18 +54,18 @@ if platform == "win32":
os.system("install_dependencies_windows.bat")
elif platform == "darwin":
cmake_prefix_path = "~/Qt/" + qt_version + "/clang_64"
- deploy_executable = "macdeployqt"
+ deploy_command = "macdeployqt --{type} --qmldir ../../{app}/qml {app}"
cmake_target_triplet = "x64-osx"
print("Executing install_dependencies_linux_mac.sh")
os.system("chmod +x install_dependencies_linux_mac.sh")
os.system("./install_dependencies_linux_mac.sh")
elif platform == "linux":
- deploy_executable = "linuxdeployqt"
- cmake_prefix_path = "~/Qt/"
+ deploy_command = "cqtdeployer -qmldir ../../{app}/qml -bin {app}"
+ cmake_prefix_path = "~/Qt/" + qt_version + "/gcc_64"
cmake_target_triplet = "x64-linux"
print("Executing install_dependencies_linux_mac.sh")
os.system("chmod +x install_dependencies_linux_mac.sh")
- os.system("./install_dependencies_linux_mac.sh")
+ #os.system("./install_dependencies_linux_mac.sh")
# REMOVE OLD BUILD FOLDER
cwd = os.getcwd()
@@ -105,20 +107,21 @@ if process.returncode != 0:
os.system("cmake --build . --target all")
os.chdir("bin")
-os.system(("{deploy_executable} --{type} --qmldir ../../ScreenPlay/qml ScreenPlay{executable_file_ending}").format(
- type=args.build_type,
- executable_file_ending=executable_file_ending,
- deploy_executable=deploy_executable))
+os.system((deploy_command).format(
+ type=cmake_build_type,
+ app="ScreenPlay",
+ executable_file_ending=executable_file_ending))
-os.system(("{deploy_executable} --{type} --qmldir ../../ScreenPlayWidget ScreenPlayWidget{executable_file_ending}").format(
- type=args.build_type,
- executable_file_ending=executable_file_ending,
- deploy_executable=deploy_executable))
+os.system((deploy_command).format(
+ type=cmake_build_type,
+ app="ScreenPlayWidget",
+ executable_file_ending=executable_file_ending))
+
+os.system((deploy_command).format(
+ type=cmake_build_type,
+ app="ScreenPlayWallpaper",
+ executable_file_ending=executable_file_ending))
-os.system(("{deploy_executable} --{type} --qmldir ../../ScreenPlayWallpaper ScreenPlayWallpaper{executable_file_ending}").format(
- type=args.build_type,
- executable_file_ending=executable_file_ending,
- deploy_executable=deploy_executable))
file_endings = [".ninja_deps", ".ninja", ".ninja_log", ".lib", ".exp",