Skip to content

Commit 97c6106

Browse files
authored
Merge branch 'master' into master
2 parents bdd203c + cfe49d1 commit 97c6106

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+526
-465
lines changed

.qmake.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ load(qt_build_config)
33
CONFIG += warning_clean exceptions
44
DEFINES += QT_DEPRECATED_WARNINGS QT_ASCII_CAST_WARNINGS
55

6-
MODULE_VERSION = 2.1.3
6+
MODULE_VERSION = 2.1.5

.travis.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,34 @@ services:
44
- docker
55

66
sudo: required
7+
dist: trusty
8+
osx_image: xcode10.1
79

810
env:
911
global:
10-
- QT_VER=5.10.0
12+
- QDEP_CACHE_DIR=$HOME/.qdep-cache
13+
- QT_VER=5.12.1
14+
- DOCKER_IMAGE=base
15+
- MAKE_RUN_TESTS=true
16+
- TARGET_NAME=qtautoupdater
1117

1218
matrix:
1319
include:
1420
- os: linux
15-
dist: trusty
1621
env:
1722
- PLATFORM=gcc_64
1823
- BUILD_DOC=true
24+
- BUILD_EXAMPLES=true
25+
- os: linux
26+
env:
27+
- PLATFORM=emscripten
1928
- os: osx
20-
osx_image: xcode9.1
2129
env:
2230
- PLATFORM=clang_64
2331

2432
before_install:
2533
- git clone https://github.com/Skycoder42/QtModules.git ./qtmodules-travis
26-
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then travis_wait 40 ./qtmodules-travis/ci/$TRAVIS_OS_NAME/setup.sh; else ./qtmodules-travis/ci/$TRAVIS_OS_NAME/setup.sh; fi
34+
- travis_wait 40 ./qtmodules-travis/ci/$TRAVIS_OS_NAME/setup.sh
2735

2836
script:
2937
- ./qtmodules-travis/ci/$TRAVIS_OS_NAME/build.sh
@@ -36,7 +44,7 @@ deploy:
3644
api_key:
3745
secure: xYCYVjv0F8C/5K5rt/oTofAU+PQNHp0wAwc8YHf8Fqf/VClFFxCVqcC9XWvy6bEnYotfkSk9TGo1CKW6fW9yZ0kQ4CjD1/V0U5PJweBqkY3i25QxWsHQ3rmzd1KWYxIra0mIujDiXbQWS3teMJpV2tpEMo+dTwXu4/mnQmbejlUcGAVgZbUOCgYvOKcBAZfeG8LnXvJLjfrJPoa5sXjrZSPbjiQBtQw0Cr2f1YPzaPftZB3pzsOtfELk+fG1h5sRfgE8rTCErQG3nkGytuchYhMH4ze0bsgHj04LeaqwRSrXQi67ZobrWIGNAUTjIlqI8NJLXHOYM6E8EgIDJVWIVhzmMvnwYyLOpZY//OVS1MNOBbhsmQ/vJC0xfLVR5EUPKGiqCAlNZ3O9ADwm+mryoCZ4S5I+13qa5xRQosmzh6kPzgziVhmBkG+bKODDRWUn8qBC4YAaViyAq7KgS3i/Rt8NzKI1Dti9MulP+eaf5LHsudhz7SosyrsEFVtdpUDICs+gN6gPWPaH87spKY87Hq07mz6blvIxK9TmnmYMrxtXKiCHIfmGON4XiQMxI+woR5h9m/+htWyJJqYAsTWY+gS5Mg7t9tPB7kIbCkNkcpcpVRvWsYM1ZySQ567PvADvK6oCVogSfFQLiZgnTTLR8WObqtQdD/Dzer7CXUTrIqM=
3846
file_glob: true
39-
file: install/opt/build_*_$QT_VER.tar.xz
47+
file: install/${TARGET_NAME}_*_$QT_VER.tar.xz
4048
on:
4149
repo: Skycoder42/QtAutoUpdater
4250
tags: true
@@ -46,7 +54,7 @@ before_cache:
4654
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
4755
cache:
4856
directories:
49-
- $HOME/.cache/Skycoder42/qpmx
5057
- $HOME/.gradle/caches/
5158
- $HOME/.gradle/wrapper/
5259
- $HOME/.android/build-cache
60+
- $QDEP_CACHE_DIR

README.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The Qt auto updater library is a library to automatically check for updates and
66

77
[![Travis Build Status](https://travis-ci.org/Skycoder42/QtAutoUpdater.svg?branch=master)](https://travis-ci.org/Skycoder42/QtAutoUpdater)
88
[![Appveyor Build status](https://ci.appveyor.com/api/projects/status/5iw2byrvnsdfytxv/branch/master?svg=true)](https://ci.appveyor.com/project/Skycoder42/qtautoupdater/branch/master)
9+
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/a5b2e3cc66c644869515d2f3a5c3ff49)](https://www.codacy.com/app/Skycoder42/QtAutoUpdater)
910

1011
## Features
1112
### Core Library
@@ -42,22 +43,19 @@ Here some sample screenshots of the gui (The rocket of the information dialog is
4243
There are multiple ways to install the Qt module, sorted by preference:
4344

4445
1. Simply add my repository to your Qt MaintenanceTool (Image-based How-To here: [Add custom repository](https://github.com/Skycoder42/QtModules/blob/master/README.md#add-my-repositories-to-qt-maintenancetool)):
45-
1. Open the MaintenanceTool, located in your Qt install directory (e.g. `~/Qt/MaintenanceTool`)
46-
2. Select `Add or remove components` and click on the `Settings` button
47-
3. Go to `Repositories`, scroll to the bottom, select `User defined repositories` and press `Add`
48-
4. In the right column (selected by default), type:
46+
1. Start the MaintenanceTool from the commandline using `/path/to/MaintenanceTool --addTempRepository <url>` with one of the following urls (GUI-Method is currently broken, see [QTIFW-1156](https://bugreports.qt.io/browse/QTIFW-1156)) - This must be done *every time* you start the tool:
4947
- On Linux: https://install.skycoder42.de/qtmodules/linux_x64
5048
- On Windows: https://install.skycoder42.de/qtmodules/windows_x86
5149
- On Mac: https://install.skycoder42.de/qtmodules/mac_x64
52-
5. Press `Ok`, make shure `Add or remove components` is still selected, and continue the install (`Next >`)
53-
6. A new entry appears under all supported Qt Versions (e.g. `Qt > Qt 5.8 > Skycoder42 Qt modules`)
54-
7. You can install either all of my modules, or select the one you need: `Qt Auto Updater`
55-
8. Continue the setup and thats it! you can now use the module for all of your installed Kits for that Qt Version
50+
2. A new entry appears under all supported Qt Versions (e.g. `Qt > Qt 5.11 > Skycoder42 Qt modules`)
51+
3. You can install either all of my modules, or select the one you need: `Qt Auto Updater`
52+
4. Continue the setup and thats it! you can now use the module for all of your installed Kits for that Qt
5653
2. Download the compiled modules from the release page. **Note:** You will have to add the correct ones yourself and may need to adjust some paths to fit your installation!
57-
3. Build it yourself! **Note:** This requires perl, [qpmx](https://github.com/Skycoder42/qpmx) and [qpm](https://github.com/Cutehacks/qpm) to be installed. If you don't have/need cmake, you can ignore the related warnings. To automatically build and install to your Qt installation, run:
54+
3. Build it yourself! **Note:** This requires perl to be installed. If you don't have/need cmake, you can ignore the related warnings. To automatically build and install to your Qt installation, run:
55+
- Install and prepare [qdep](https://github.com/Skycoder42/qdep#installation)
5856
- `qmake`
59-
- `make qmake_all`
60-
- `make`
57+
- `make` (If you want the tests/examples/etc. run `make all`)
58+
- Optional step: `make doxygen` to generate the documentation
6159
- `make install`
6260

6361
## Usage

appveyor.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,26 @@ image:
55
version: build-{build}
66

77
environment:
8-
QT_VER: 5.10.0
8+
QT_VER: 5.12.1
9+
MAKE_RUN_TESTS: true
10+
TARGET_NAME: qtautoupdater
911

1012
matrix:
1113
- PLATFORM: msvc2017_64
14+
- PLATFORM: msvc2017
15+
- PLATFORM: mingw73_64
1216
- PLATFORM: msvc2015_64
13-
- PLATFORM: msvc2015
14-
- PLATFORM: mingw53_32
1517

1618
matrix:
1719
exclude:
1820
- PLATFORM: msvc2017_64
1921
image: Visual Studio 2015
20-
- PLATFORM: mingw53_32
22+
- PLATFORM: msvc2017
23+
image: Visual Studio 2015
24+
- PLATFORM: mingw73_64
2125
image: Visual Studio 2015
2226
- PLATFORM: msvc2015_64
2327
image: Visual Studio 2017
24-
- PLATFORM: msvc2015
25-
image: Visual Studio 2017
2628

2729
install:
2830
- git clone https://github.com/Skycoder42/QtModules.git .\qtmodules-travis
@@ -35,7 +37,7 @@ after_build:
3537
- .\qtmodules-travis\ci\win\upload-prepare.bat
3638

3739
artifacts:
38-
- path: install\build_*_%QT_VER%.zip
40+
- path: install\%TARGET_NAME%_*_%QT_VER%.zip
3941

4042
deploy:
4143
provider: GitHub
@@ -47,4 +49,4 @@ deploy:
4749
appveyor_repo_tag: true
4850

4951
cache:
50-
- 'C:\Users\appveyor\AppData\Local\Skycoder42\qpmx\cache -> appveyor.yml'
52+
- 'C:\Users\appveyor\AppData\Local\qdep\qdep\Cache -> appveyor.yml'

deploy.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"title": "QtAutoUpdater",
3+
"description": "A Qt library to automatically check for updates and install them.",
4+
"modules": [ "QtAutoUpdaterCore", "QtAutoUpdaterGui" ],
5+
"dependencies": [],
6+
"excludes": [ "android", "ios", "winrt" ],
7+
"license": {
8+
"name": "BSD-3-Clause",
9+
"path": "LICENSE"
10+
}
11+
}

doc/Doxyfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,8 @@ EXCLUDE_SYMBOLS = QAbstractAspect \
938938
QPaintEngineEx \
939939
QQmlExtensionInterface \
940940
QTechniqueFilter \
941-
QBasicMutex
941+
QBasicMutex \
942+
QAbstractXmlReceiver
942943

943944
# The EXAMPLE_PATH tag can be used to specify one or more files or directories
944945
# that contain example code fragments that are included (see the \include
@@ -1922,7 +1923,7 @@ RTF_SOURCE_CODE = NO
19221923
# classes and files.
19231924
# The default value is: NO.
19241925

1925-
GENERATE_MAN = NO
1926+
GENERATE_MAN = YES
19261927

19271928
# The MAN_OUTPUT tag is used to specify where the man pages will be put. If a
19281929
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of

doc/autoupdater.dox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ a gui and the Core-Library.
1818
*/
1919

2020
/*!
21-
@page image_page Image Page
21+
@page qtautoupdater_image_page Image Page
2222

2323
@brief Shows sample images for the updater for all the supported platforms
2424
@tableofcontents

doc/updatebutton.dox

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
The UpdateButton is a ready-made "button" to check for updates. It is connected to this
55
controller and thus will automatically start checking for updates. Since the button itself
6-
shows a progress, no progress dialog is needed here. For images check the @ref image_page "Image Page".
6+
shows a progress, no progress dialog is needed here. For images check the @ref qtautoupdater_image_page "Image Page".
77

88
The button will represent the controllers state and automatically enable/disable itself to
99
avoid start beeing called twice. In addition to that, the whole button widget will be disabled
1010
if the controller gets deleted while the button is still existings. (Even if it wasn't,
1111
it will not crash if the button is clicked).
1212

13-
@sa QtAutoUpdater::UpdateController, UpdateController::createUpdateAction, @ref image_page "Image Page"
13+
@sa QtAutoUpdater::UpdateController, UpdateController::createUpdateAction, @ref qtautoupdater_image_page "Image Page"
1414
*/
1515

1616
/*!
@@ -28,7 +28,7 @@ you can use this property to specify a different animation source.
2828
@resetAc{resetAnimationFile()}
2929
}
3030

31-
@sa @ref image_page "Image Page"
31+
@sa @ref qtautoupdater_image_page "Image Page"
3232
*/
3333

3434
/*!
@@ -48,7 +48,7 @@ In both cases, while the updater is running, the information will be shown as al
4848
@writeAc{setShowResult()}
4949
}
5050

51-
@sa @ref image_page "Image Page", UpdateButton::animationFile
51+
@sa @ref qtautoupdater_image_page "Image Page", UpdateButton::animationFile
5252
*/
5353

5454
/*!

doc/updatecontroller.dox

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ to do is starting this controller. This can be done in 4 ways:
1010
- Add the UpdateButton widget somewhere in your gui
1111

1212
## Images
13-
For a full collection of all immages, please go to the @ref image_page "Image Page"
13+
For a full collection of all immages, please go to the @ref qtautoupdater_image_page "Image Page"
1414

1515
@sa QtAutoUpdater::Updater, QtAutoUpdater::UpdateButton
1616
*/
@@ -23,7 +23,7 @@ the lowest (`AutomaticLevel = 0`) to the highest (`AskLevel = 5`). Each Level in
2323
levels with a smaller value, i.e. using the `AskLevel` will add the ask dialog to everything
2424
shown with `ProgressLevel`, but not less.
2525

26-
@sa @ref image_page "Image Page"
26+
@sa @ref qtautoupdater_image_page "Image Page"
2727
*/
2828

2929
/*!
@@ -151,14 +151,14 @@ is used to switch between the two dialogs. If the DisplayLevel is set to not sho
151151
info-dialog at all, neither of the two will be shown.
152152

153153
For a comparison how each of these dialogs looks on each platform, check the
154-
@ref image_page "Image Page".
154+
@ref qtautoupdater_image_page "Image Page".
155155

156156
@accessors{
157157
@readAc{isDetailedUpdateInfo()}
158158
@notifyAc{setDetailedUpdateInfo()}
159159
}
160160

161-
@sa UpdateController::DisplayLevel, @ref image_page "Image Page"
161+
@sa UpdateController::DisplayLevel, @ref qtautoupdater_image_page "Image Page"
162162
*/
163163

164164
/*!
@@ -229,13 +229,13 @@ This will crash your program in almost all cases!!!
229229
The action will automatically start the controller with the display-level
230230
`UpdateController::ProgressLevel`. In addition to that, the action will be automatically
231231
disabled if the controller is already running and deleted together with the controller
232-
(or `parent`, whoever gets destroyed first). For images check the @ref image_page "Image Page".
232+
(or `parent`, whoever gets destroyed first). For images check the @ref qtautoupdater_image_page "Image Page".
233233

234234
The action has a text, an icon and a tooltip. On Mac, the action will be placed in the
235235
Applications menu if added to the Menubar. To show it in other places (for example as dock-menu),
236236
unset the QAction::menuRole.
237237

238-
@sa QtAutoUpdater::UpdateButton, @ref image_page "Image Page", QAction::menuRole
238+
@sa QtAutoUpdater::UpdateButton, @ref qtautoupdater_image_page "Image Page", QAction::menuRole
239239
*/
240240

241241
/*!

examples/autoupdatercore/ConsoleUpdater/ConsoleUpdater.pro

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ TEMPLATE = app
33
QT += core autoupdatercore
44
QT -= gui
55

6-
CONFIG += c++11 console
6+
CONFIG += console
77
CONFIG -= app_bundle
88

99
TARGET = ConsoleUpdater
@@ -12,14 +12,3 @@ SOURCES += main.cpp
1212

1313
target.path = $$[QT_INSTALL_EXAMPLES]/autoupdatercore/ConsoleUpdater
1414
INSTALLS += target
15-
16-
#not found by linker?
17-
unix:!mac {
18-
LIBS += -L$$OUT_PWD/../../../lib #required to make this the first place to search
19-
LIBS += -L$$[QT_INSTALL_LIBS] -licudata
20-
LIBS += -L$$[QT_INSTALL_LIBS] -licui18n
21-
LIBS += -L$$[QT_INSTALL_LIBS] -licuuc
22-
}
23-
24-
#add lib dir to rpath
25-
mac: QMAKE_LFLAGS += '-Wl,-rpath,\'$$OUT_PWD/../../../lib\''

0 commit comments

Comments
 (0)