Compare commits

..

No commits in common. "471a3b15ef0649f170cfb12bf6c23dbee8e4181c" and "b880406474c4bb0193208cd97ca558a1aeadd728" have entirely different histories.

2 changed files with 12 additions and 20 deletions

View File

@ -1,17 +1,15 @@
name: Windows CI name: Windows CI
on: [push, pull_request, workflow_dispatch] on: [push, pull_request]
jobs: jobs:
msvc-qmake-build: msvc-qmake-build:
strategy: strategy:
matrix: matrix:
include: vs: ['2022']
- qt_ver: '6.8.0' msvc_arch: ['x64']
vs: '2022' qt_ver: ['6.7.2']
aqt_arch: 'win64_msvc2022_64'
msvc_arch: 'x64'
runs-on: windows-2022 runs-on: windows-2022
@ -20,7 +18,7 @@ jobs:
- name: Install Qt - name: Install Qt
uses: jurplel/install-qt-action@v4 uses: jurplel/install-qt-action@v4
with: with:
arch: ${{ matrix.aqt_arch }} arch: 'win64_msvc2019_64'
version: ${{ matrix.qt_ver }} version: ${{ matrix.qt_ver }}
modules: 'qtimageformats' modules: 'qtimageformats'
- name: Build - name: Build
@ -43,11 +41,9 @@ jobs:
strategy: strategy:
matrix: matrix:
include: vs: ['2022']
- qt_ver: '6.8.0' msvc_arch: ['x64']
vs: '2022' qt_ver: ['6.7.2']
aqt_arch: 'win64_msvc2022_64'
msvc_arch: 'x64'
runs-on: windows-2022 runs-on: windows-2022
@ -56,7 +52,7 @@ jobs:
- name: Install Qt - name: Install Qt
uses: jurplel/install-qt-action@v4 uses: jurplel/install-qt-action@v4
with: with:
arch: ${{ matrix.aqt_arch }} arch: 'win64_msvc2019_64'
version: ${{ matrix.qt_ver }} version: ${{ matrix.qt_ver }}
modules: 'qtimageformats' modules: 'qtimageformats'
- name: Build - name: Build
@ -107,7 +103,7 @@ jobs:
windeployqt --verbose=2 --no-quick-import --no-translations --no-opengl-sw --no-system-d3d-compiler --no-system-dxc-compiler --skip-plugin-types tls,networkinformation build\bin\ppic.exe windeployqt --verbose=2 --no-quick-import --no-translations --no-opengl-sw --no-system-d3d-compiler --no-system-dxc-compiler --skip-plugin-types tls,networkinformation build\bin\ppic.exe
robocopy ./dependencies_bin/bin build/bin *.dll robocopy ./dependencies_bin/bin build/bin *.dll
if ErrorLevel 8 (exit /B 1) if ErrorLevel 8 (exit /B 1)
copy LICENSE build\bin copy LICENSE build/bin/
exit /B 0 exit /B 0
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:

View File

@ -6,7 +6,6 @@
#include <QApplication> #include <QApplication>
#include <QStandardPaths> #include <QStandardPaths>
#include <QStringBuilder>
#include <QDebug> #include <QDebug>
#include <QDir> #include <QDir>
#include <QMetaEnum> #include <QMetaEnum>
@ -150,11 +149,8 @@ Settings::Settings()
#endif // defined(FLAG_PORTABLE_MODE_SUPPORT) && defined(Q_OS_WIN) #endif // defined(FLAG_PORTABLE_MODE_SUPPORT) && defined(Q_OS_WIN)
if (configPath.isEmpty()) { if (configPath.isEmpty()) {
// Should be %LOCALAPPDATA%\<APPNAME> under Windows, ~/.config/<APPNAME> under Linux. // %LOCALAPPDATA%\<APPNAME> under Windows, ~/.config/<APPNAME> under Linux.
// Sadly <APPNAME> is unknown when Settings object is created (it's before the creation configPath = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation);
// of QApplication), so we'll need to append the app name manually.
configPath = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) %
QDir::separator() % QLatin1String("Pineapple Pictures");
} }
m_qsettings = new QSettings(QDir(configPath).absoluteFilePath("config.ini"), QSettings::IniFormat, this); m_qsettings = new QSettings(QDir(configPath).absoluteFilePath("config.ini"), QSettings::IniFormat, this);