From 14ab4ce52d5cd4899b35e71c99f1dfb3eaa40305 Mon Sep 17 00:00:00 2001 From: Boris Melnik Date: Tue, 11 Jan 2022 17:49:24 +0300 Subject: [PATCH] fix(build): Windows build --- sandbox/sandbox.pro | 12 ++++++------ sandbox/sandboxapp.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sandbox/sandbox.pro b/sandbox/sandbox.pro index bd923196..fe3c5d7d 100644 --- a/sandbox/sandbox.pro +++ b/sandbox/sandbox.pro @@ -38,6 +38,12 @@ macx { DEFINES += USE_HUNSPELL message("hunspell exists in /usr/local/lib") } + + copydata.commands = $(COPY_DIR) $$PWD/dictionaries $$DESTDIR + first.depends = $(first) copydata + export(first.depends) + export(copydata.commands) + QMAKE_EXTRA_TARGETS += first copydata } ios { @@ -56,12 +62,6 @@ RESOURCES += qml.qrc \ DESTDIR = $$PWD/bin -copydata.commands = $(COPY_DIR) $$PWD/dictionaries $$DESTDIR -first.depends = $(first) copydata -export(first.depends) -export(copydata.commands) -QMAKE_EXTRA_TARGETS += first copydata - # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin diff --git a/sandbox/sandboxapp.cpp b/sandbox/sandboxapp.cpp index 6adc1815..ac7402f6 100644 --- a/sandbox/sandboxapp.cpp +++ b/sandbox/sandboxapp.cpp @@ -20,7 +20,7 @@ void SandboxApp::startEngine() qmlRegisterType("Sandbox", 0, 1, "Spellchecker"); #ifdef QT_DEBUG - const QUrl url(applicationDirPath() + "/../main.qml"); + const QUrl url = QUrl::fromLocalFile(applicationDirPath() + "/../main.qml"); #else const QUrl url(QStringLiteral("qrc:/main.qml")); #endif