mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-05 02:22:28 +01:00
Add macos folder copy for qml folder
This commit is contained in:
parent
4db3591c66
commit
376e96f96c
@ -46,7 +46,8 @@ MacWindow::MacWindow(
|
||||
workingDir.cdUp();
|
||||
workingDir.cdUp();
|
||||
// OSX Development workaround:
|
||||
//
|
||||
// This folder needs then to be copied into the .app/Contents/MacOS/
|
||||
// for the deploy version.
|
||||
m_window.engine()->addImportPath(workingDir.path()+"/qml");
|
||||
#endif
|
||||
|
||||
|
@ -7,6 +7,7 @@ import shutil
|
||||
import argparse
|
||||
import time
|
||||
import zipfile
|
||||
from shutil import copytree
|
||||
from pathlib import Path
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
from datetime import datetime
|
||||
@ -289,6 +290,12 @@ def build(
|
||||
run("spctl --assess --verbose \"ScreenPlayWallpaper.app/\"", cwd=bin_dir)
|
||||
run("spctl --assess --verbose \"ScreenPlayWidget.app/\"", cwd=bin_dir)
|
||||
|
||||
# Copy qml dir into all .app/Contents/MacOS/
|
||||
if platform.system() == "Darwin":
|
||||
copytree(Path.joinpath(bin_dir, "qml"), Path.joinpath(bin_dir, "ScreenPlay.app/Contents/MacOS/qml"))
|
||||
copytree(Path.joinpath(bin_dir, "qml"), Path.joinpath(bin_dir, "ScreenPlayWallpaper.app/Contents/MacOS/qml"))
|
||||
copytree(Path.joinpath(bin_dir, "qml"), Path.joinpath(bin_dir, "ScreenPlayWidget.app/Contents/MacOS/qml"))
|
||||
|
||||
# Some dlls like openssl do no longer get copied automatically.
|
||||
# Lets just copy all of them into bin.
|
||||
if platform.system() == "Windows":
|
||||
|
Loading…
Reference in New Issue
Block a user