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 @@