From 562fa62c384fc57cab82936ab42df1c3ef9b84be Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 11 Sep 2021 12:01:09 +0200 Subject: [PATCH] Release 2.4.1 --- installer/README.md | 2 +- installer/package.ps1 | 1 + installer/setup.iss | 2 +- src/constants.h | 6 +++--- src/environment.cpp | 4 ++++ src/gui/newversiondialog.cpp | 2 ++ src/lang/en_GB/changelog.htm | 7 +++++++ src/lang/fr_FR/changelog.htm | 7 +++++++ src/versionchecker.h | 2 ++ 9 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 installer/package.ps1 diff --git a/installer/README.md b/installer/README.md index 07d60df..b8699c9 100644 --- a/installer/README.md +++ b/installer/README.md @@ -1,4 +1,4 @@ -Put these files in `data` directory before running `setup.iss` : +Put these files in `data` directory before running `setup.iss` and `package.ps1` : * UMWP Autochanger.exe (with a space, not an underscore) * redist/vcredist_x86.exe ([Visual C++ 2017 Redistributable x86](https://aka.ms/vs/15/release/vc_redist.x86.exe)) diff --git a/installer/package.ps1 b/installer/package.ps1 new file mode 100644 index 0000000..e39d8ba --- /dev/null +++ b/installer/package.ps1 @@ -0,0 +1 @@ +Compress-Archive -Path 'data\*' -DestinationPath 'UMWP_Autochanger_2.4.1.zip' \ No newline at end of file diff --git a/installer/setup.iss b/installer/setup.iss index 98366ab..d3855c0 100644 --- a/installer/setup.iss +++ b/installer/setup.iss @@ -1,6 +1,6 @@ #define AppId "{401CCECB-FFCC-4AF3-846D-A535F59D0834}" #define AppName "UMWP Autochanger" -#define AppVersion "2.4.0" +#define AppVersion "2.4.1" #define AppPublisher "StrangePlanet" #define PublisherURL "https://www.strangeplanet.fr" #define ProjectURL "https://www.strangeplanet.fr/work/umwp-autochanger" diff --git a/src/constants.h b/src/constants.h index f802c8d..1a82d96 100644 --- a/src/constants.h +++ b/src/constants.h @@ -1,10 +1,10 @@ #ifndef VERSION_H #define VERSION_H -#define CURRENT_YEAR "2020" +#define CURRENT_YEAR "2021" #define APP_NAME "UMWP Autochanger" -#define APP_VERSION "2.4.0" -#define APP_VERSION_DW 2,4,0 +#define APP_VERSION "2.4.1" +#define APP_VERSION_DW 2,4,1 #define APP_COMPANYNAME "StrangePlanet" #define APP_FILEDESCRIPTION "Ultimate Monitor Wallpaper Autochanger" #define APP_LEGALCOPYRIGHT "Copyright (c) 2013-" CURRENT_YEAR " StrangePlanet" diff --git a/src/environment.cpp b/src/environment.cpp index 6302408..efa52c2 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -23,6 +23,10 @@ Environment::Environment() QDir dirHelper; m_isPortable = !dirHelper.exists(APP_UNINSTALLER_FILENAME); + if (m_isPortable) { + QLOG_DEBUG() << "Running in portable mode"; + } + // CREATE CACHE DIR Environment::APPDATA_DIR = getAppDataFolder(); diff --git a/src/gui/newversiondialog.cpp b/src/gui/newversiondialog.cpp index 131590d..ea26bc2 100644 --- a/src/gui/newversiondialog.cpp +++ b/src/gui/newversiondialog.cpp @@ -92,6 +92,8 @@ void NewVersionDialog::downloadChangelog() { QString url = QString(APP_CHANGELOG_URL).arg(m_version.code); + QLOG_DEBUG() << "Download " << url; + QNetworkAccessManager* manager = new QNetworkAccessManager(); connect(manager, SIGNAL(finished(QNetworkReply*)), this, SLOT(onChangelogFinished(QNetworkReply*))); diff --git a/src/lang/en_GB/changelog.htm b/src/lang/en_GB/changelog.htm index 87b46a5..c78c086 100644 --- a/src/lang/en_GB/changelog.htm +++ b/src/lang/en_GB/changelog.htm @@ -1,4 +1,11 @@
+
Version 2.4.1 September 11th 2021
+
+
    +
  • Fix small bug in settings loading
  • +
+
+
Version 2.4.0 May 2nd 2020
    diff --git a/src/lang/fr_FR/changelog.htm b/src/lang/fr_FR/changelog.htm index 02a64cf..34e60e4 100644 --- a/src/lang/fr_FR/changelog.htm +++ b/src/lang/fr_FR/changelog.htm @@ -1,4 +1,11 @@
    +
    Version 2.4.1 11 Septembre 2021
    +
    +
      +
    • Correction d'un bug dans le chargement des paramètres
    • +
    +
    +
    Version 2.4.0 2 Mai 2020
      diff --git a/src/versionchecker.h b/src/versionchecker.h index ead500a..3e0fe9c 100644 --- a/src/versionchecker.h +++ b/src/versionchecker.h @@ -21,6 +21,8 @@ class VersionChecker : public QObject public slots: void run() { + QLOG_DEBUG() << "Download " << APP_VERSION_URL; + QNetworkAccessManager* manager = new QNetworkAccessManager(); connect(manager, SIGNAL(finished(QNetworkReply*)), this, SLOT(downloadFinished(QNetworkReply*)));