mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
refs #475 Tweaked resource file directory.
This commit is contained in:
@@ -2,11 +2,13 @@ win32:isEmpty(MINGW_IN_SHELL): COPY = xcopy /yis
|
||||
else: COPY = cp -r
|
||||
|
||||
win32 {
|
||||
QMAKE_PRE_LINK += $$COPY $$shell_path($$PWD/data) \
|
||||
$$shell_path($$OUT_PWD/../../bin/resources)
|
||||
QMAKE_PRE_LINK += $$COPY $$shell_path($$PWD/data) \
|
||||
$$shell_path($$OUT_PWD/../../bin/resources) \
|
||||
& $$COPY $$shell_path($$PWD/swiftDB) \
|
||||
$$shell_path($$OUT_PWD/../../bin/resources/swiftDB)
|
||||
}
|
||||
else {
|
||||
QMAKE_PRE_LINK += mkdir -p $$shell_path($$OUT_PWD/../../bin) && \
|
||||
$$COPY $$shell_path($$PWD/data) \
|
||||
$$shell_path($$OUT_PWD/../../bin)
|
||||
QMAKE_PRE_LINK += mkdir -p $$shell_path($$OUT_PWD/../../bin) \
|
||||
&& $$COPY $$shell_path($$PWD/data) $$shell_path($$PWD/swiftDB) \
|
||||
$$shell_path($$OUT_PWD/../../bin)
|
||||
}
|
||||
|
||||
@@ -233,7 +233,6 @@ namespace BlackMisc
|
||||
QString CProject::getSwiftResourceDir()
|
||||
{
|
||||
QDir dir(getApplicationDir());
|
||||
if (!dir.cdUp()) { return ""; }
|
||||
if (dir.cd("resources")) { return dir.absolutePath(); }
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user