Skip to content

Commit 1b250c9

Browse files
authored
Fix for #159 (#163)
Fixes #159
1 parent 347a4e1 commit 1b250c9

2 files changed

Lines changed: 15 additions & 16 deletions

File tree

src/zxinfodk.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include "zxinfodk.h"
2929

3030
#include "gameentry.h"
31-
#include "strtools.h"
3231

3332
#include <QDebug>
3433
#include <QJsonArray>
@@ -38,7 +37,7 @@
3837
#include <QStringBuilder>
3938

4039
static const QList<QPair<QString, QString>>
41-
headers({QPair(QString("User-Agent"), QString("Skyscraper / ").append(VERSION))});
40+
headers({QPair<QString, QString>("User-Agent", "Skyscraper / " VERSION)});
4241
static const QString mediaUrl = "https://zxinfo.dk/media";
4342

4443
ZxInfoDk::ZxInfoDk(Settings *config, QSharedPointer<NetManager> manager)

win32/skyscraper.pro

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,28 @@ win32 {
1818
VERSION=$$replace(VERSION, '-dev', '.999')
1919

2020
# remove build artifacts
21-
QMAKE_POST_LINK += cmd /c del $$shell_quote($$shell_path($${DEST}\\\\*.cpp)) \
22-
$$shell_quote($$shell_path($${DEST}\\\\*.o)) \
23-
$$shell_quote($$shell_path($${DEST}\\\\*.h)) $$escape_expand(\\n\\t)
21+
QMAKE_POST_LINK += cmd /c del $$system_quote($$system_path($${DEST}\\\\*.cpp)) \
22+
$$system_quote($$system_path($${DEST}\\\\*.o)) \
23+
$$system_quote($$system_path($${DEST}\\\\*.h)) $$escape_expand(\\n\\t)
2424

2525
# copy licenses
26-
QMAKE_POST_LINK += cmd /c copy /y $$shell_quote($$shell_path($${PWD}/../LICENSE)) \
27-
$$shell_quote($$shell_path($${DEST}/LICENSE.Skyscraper)) $$escape_expand(\\n\\t)
28-
QMAKE_POST_LINK += cmd /c copy /y $$shell_quote($$shell_path($${QT_LIC_FOLDER}/LICENSE)) \
29-
$$shell_quote($$shell_path($${DEST})) $$escape_expand(\\n\\t)
30-
QMAKE_POST_LINK += cmd /c copy /y $$shell_quote($$shell_path($${QT_LIC_FOLDER}/LICENSE.GPL3-EXCEPT)) \
31-
$$shell_quote($$shell_path($${DEST})) $$escape_expand(\\n\\t)
26+
QMAKE_POST_LINK += cmd /c copy /y $$system_quote($$system_path($${PWD}/../LICENSE)) \
27+
$$system_quote($$system_path($${DEST}/LICENSE.Skyscraper)) $$escape_expand(\\n\\t)
28+
QMAKE_POST_LINK += cmd /c copy /y $$system_quote($$system_path($${QT_LIC_FOLDER}/LICENSE)) \
29+
$$system_quote($$system_path($${DEST})) $$escape_expand(\\n\\t)
30+
QMAKE_POST_LINK += cmd /c copy /y $$system_quote($$system_path($${QT_LIC_FOLDER}/LICENSE.GPL3-EXCEPT)) \
31+
$$system_quote($$system_path($${DEST})) $$escape_expand(\\n\\t)
3232

3333
# determine needed libs and copy into $${DEST}
34-
QMAKE_POST_LINK += cmd /c $$shell_quote($$shell_path($${WINDEPLOYQT_BIN})) \
34+
QMAKE_POST_LINK += cmd /c $$system_quote($$system_path($${WINDEPLOYQT_BIN})) \
3535
--no-system-dxc-compiler --no-system-d3d-compiler --no-opengl-sw \
36-
$$shell_quote($$shell_path($${DEST}\\Skyscraper.exe)) \
36+
$$system_quote($$system_path($${DEST}\\Skyscraper.exe)) \
3737
$$escape_expand(\\n\\t)
3838

3939
# create mandatory folders and deploy mandatory files
40-
QMAKE_POST_LINK += powershell -Command "md -Force '$$shell_path($$(USERPROFILE)/RetroPie/roms)'" > NUL &
40+
QMAKE_POST_LINK += powershell -Command "md -Force '$$system_path($$(USERPROFILE)/RetroPie/roms)'" > NUL &
4141
QMAKE_POST_LINK += powershell -NoProfile -NoLogo -NonInteractive -ExecutionPolicy Bypass \
42-
-File $$shell_quote($$shell_path($${PWD}/deploy_mandatory_files.ps1)) \
43-
$$shell_quote($${PWD}/..) $$shell_quote($$shell_path($$(USERPROFILE)/.skyscraper)) \
42+
-File $$system_quote($$system_path($${PWD}/deploy_mandatory_files.ps1)) \
43+
$$system_quote($${PWD}/..) $$system_quote($$system_path($$(USERPROFILE)/.skyscraper)) \
4444
$$escape_expand(\\n\\t)
4545
}

0 commit comments

Comments
 (0)