summaryrefslogtreecommitdiffstats
path: root/src/sdk
Commit message (Collapse)AuthorAgeFilesLines
* Allow signing maintenancetool in WindowsKatja Marttila2016-06-211-8/+16
| | | | | | | | | Signing was not possible for maintenancetool since metadata was added to binary. Separated metadata to installer.dat like in OS X. Task-number: QTIFW-667 Change-Id: I74ef307c51a2f43059475dd943d6f0910925fa86 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* Store lock files in temporary directoryFrerich Raabe2016-06-152-6/+9
| | | | | | | | | | | | | | | | | | | The directory in which the application is stored may not be writable for the current user, e.g. if the installer is stored on a read-only network drive, or (common case on OS X) if the installer bundle is started from a read-only .dmg image. This fixes warnings in the verbose output (especially noticeable during unattended installations) like: [0] Warning: Cannot create lock file "/Volumes/froglogic Squish/Install Squish.app/Contents/MacOS/Squish1234865.lock": Read-only file system The patch is defensive in that it just uses QDir::tempPath() instead of going for QTemporaryFile to avoid having to worry about auto-delete semantics. Change-Id: Iee2409dd6f884c4fe234057b2926eee82127f985 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Fix setValue saving in restartKatja Marttila2016-02-153-3/+13
| | | | | | | | | | | | | When running maintenancetool and installing a component that sets a value in installscript with setValue, the value is cleared when pressing 'Restart'. Task-number:QTIFW-504 Change-Id: Ie588b6f1011d7b50b771ea8ee0dea99350f65878 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Iikka Eklund <iikka.eklund@theqtcompany.com>
* Don't use 'lockmyApp' prefix for lock filesFrerich Raabe2016-02-152-2/+8
| | | | | | | | | | | | | | | The 'lockmyApp' part of the lock file names looked like some generic default value which just was not customized to fit the installer. Let's use the Qt application name instead as returned by QApplication::applicationName(). We maintain the strong random filename generation algorithm by sticking to the proven constants which presumably are perfectly random since they were generated by a fair die roll. Change-Id: Ief18942ca4e967f7016e7c471a7b44e3b8ab8c95 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Katja Marttila <katja.marttila@theqtcompany.com>
* Merge remote-tracking branch 'origin/2.0'Iikka Eklund2016-01-2017-68/+51
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: installerfw.pri src/libs/kdtools/kdgenericfactory.cpp src/libs/kdtools/kdgenericfactory.h src/libs/kdtools/kdupdaterapplication.cpp src/libs/kdtools/kdupdaterapplication.h src/libs/kdtools/kdupdaterupdatesourcesinfo.cpp src/libs/kdtools/kdupdaterupdatesourcesinfo.h sync.profile Change-Id: Ifdc8b065f89b7e241bd3788ed79768e21888161f
| * Update license headersIikka Eklund2015-12-2917-68/+51
| | | | | | | | | | | | | | | | | | Update existing license headers. LGPL -> LGPLv21. Update copyright year as well. Change-Id: Ie1d71f8c68186b8f625f409ddf94691f178093c9 Reviewed-by: Katja Marttila <katja.marttila@theqtcompany.com> Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com>
* | Automatically chose to perform uninstall if appropriateFrerich Raabe2015-12-082-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch makes the maintenance tool automatically chose (but not start) deinstallation if there are no valid repositories available. Without this, all three options are available but the first two will show an error message if there is not even one repository available. This simplifies the maintenance tool for purely offline installers which use no repositories whatsoever. Change-Id: If496ac6858191c758a7bae6ec4a9434f88ddaac0 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* | Fix spanish language import nameKatja Marttila2015-11-272-2/+2
| | | | | | | | | | | | | | | | | | Spanish language was imported as name qtbase_es.qm. As it is not found under Qt translations, all other translations were skipped to. Change-Id: I093e72abf7385ca7926d61a14225e3254c1c1fbd Task-number: QTIFW-791 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* | Add Castilian Spanish translationJavier Llorente2015-09-243-2/+2692
| | | | | | | | | | | | Change-Id: I6cef758f1b9746b4eb03670765677bb8f5b275c5 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* | Missed to rename classes and to update docs and tests.Karsten Heimrich2015-09-0712-23/+23
| | | | | | | | | | Change-Id: I2d79ab4094cb9706287d44160543c19b35a66c95 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* | Merge remote-tracking branch 'origin/2.0'Kai Koehne2015-08-191-0/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Changelog dist/config/config.xml dist/packages/org.qtproject.ifw.binaries/meta/package.xml dist/packages/org.qtproject.ifw/meta/package.xml installerfw.pri src/libs/installer/component.cpp src/libs/kdtools/updatesinfo.cpp Change-Id: I0a1b4a464f7d9008b589b54dd7aed0cac71bd666
| * Fix: .dat file gets deleted after multiple component changes.Karsten Heimrich2015-06-111-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can close the .dat file in maintenance mode. There is no need to keep it open since no packages are in there and resources are mapped into memory anyway. Fixes commit 7f2c98c8 that updates the .dat file on soft restart. On Windows updating did not work cause the .dat is opened and locked by the OS. To overcome locked files we run a VB script that does a deferred rename once the lock is gone, but in case of a soft restart we now did start several of them depending on the amount of restarts. That had the undesired effect of several replace/rename operations, of which only 2 "succeeded": - First script: Remove .dat | Rename .dat.new -> .dat - Second script: Remove .dat | no .dat anymore... Task-number: QTIFW-689 Change-Id: Ic3ee1b418890eabe5b854dc7879cd7bc118f9240 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | add silent modeChristoph Vogtländer2015-07-171-1/+1
| | | | | | | | | | | | | | | | | | | | Add possibility to run silently without a gui. Silent mode can be enabled in a controller script using gui.setSilent(true). Change-Id: I5c5d0cc2be734e8e447edfe4e71106fe08f87188 Task-number: QTIFW-166 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
* | Rename files. Remove {kd} prefix. Remove {kdupdater} prefix.Karsten Heimrich2015-07-143-5/+5
| | | | | | | | | | Change-Id: I88c93cab718f4659296d5f7f562beefd747a366f Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
* | Rework handling of repository testing.Karsten Heimrich2015-07-141-13/+23
| | | | | | | | | | | | | | | | | | - Show message box on error/success. - Show informative text only if necessary. - Add option to enable/disable repo after test. Change-Id: I5608aa1c94f804db1754c9f789697eab614b21c6 Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
* | Sanitize QDebug outputKai Koehne2015-07-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Prefer using the stream operator logic instead of using QString::fromLatin1. Add a noquote() where a QString should be printed without any quotes/escapes. This also fixes the tests with Qt 5.5, where QString's are further escaped. Change-Id: Ie3afd14b9355101d3c0b52f30f66ec759c76526c Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* | Implement repository testing using our task classes.Karsten Heimrich2015-07-092-8/+8
| | | | | | | | | | | | | | Motivation is to get rid of the KD(}Downloader classes. Change-Id: Idab1b3b56c2a879e1076e9f400ccec92a4484197 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | Print Qt version in verbose outputKai Koehne2015-07-021-3/+3
| | | | | | | | | | | | | | | | Helps diagnosing whether an error is due to bugs in the Qt version. Also remove the quotes. Change-Id: I7d85094e19d7d2a695ea4ac7be2006673ffa17e2 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* | Unify translated error messagesKai Koehne2015-06-248-959/+959
| | | | | | | | | | | | | | | | | | | | | | | | * Enclose file paths in "" * Localize file paths with QDir::toNativeSeparators. * Make sure sentences end with a '.' * Append error details always by ':', e.g. tr("Failed to copy file '%1': %2").(...) * Use 'directory' instead of 'folder' everywhere Change-Id: Ie045f429f72ad5045c96537465c5fb9d2e99d250 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* | Convert to Qt 5 connect syntaxKai Koehne2015-06-154-16/+23
| | | | | | | | | | | | | | | | | | | | | | | | Convert to new signal/slot syntax where it does not make things more complicated: connections where the signal or slot is an overloaded method, or where the receiver method is not in a QObject, are left alone. The new syntax allows compile-time checking of the connection. Change-Id: I2cc3c93b9812797bd67f64a8728569491eeec668 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
* | Merge remote-tracking branch 'origin/2.0'Kai Koehne2015-06-042-1/+14
|\| | | | | | | | | | | | | Conflicts: src/libs/installer/packagemanagercore.cpp Change-Id: Ie3d94fe3a633e189c260bf20682c00a2bb901bc8
| * OS X: Make sure real user uid == euid in elevated modeKai Koehne2015-06-011-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug that prevents changing existing .ini files during an elevated installation. QFileSystemEngine::fillMetaData() on Unix uses :access() to check whether the user can write to a file, based on the real user id. Because OS X's AuthorizationExecuteWithPrivileges() does keep the original real user id also in the elevated process, QFileInfo::isWritable() was returning false for existing files, which in turn let QSaveFile, and therefore QSettings, to not even attempt to write to the file. On Linux, we use sudo to start the elevated process, which already resets the real user id by default. Task-number: QTIFW-709 Change-Id: I5bfbd631f579412045b242a08baf206a5d444500 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
| * Fix help output for --proxyKai Koehne2015-05-121-1/+1
| | | | | | | | | | | | | | Actually passing --proxy has an effect on Linux, but not on OS X. Change-Id: I29a4d3945c6113d67311fdea3c700a5610075939 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* | Remove scRemoteVersion, it's the same as scVersionJarek Kobus2015-05-071-1/+1
|/ | | | | Change-Id: I552b2f62865ff88fb6827819240b283485d0e4c7 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Add more logging categories.Jarek Kobus2015-04-242-8/+11
| | | | | Change-Id: I1c7dabfd16a69ef5a3e5aaa490036de061f1fd13 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Enable logging categories as an installer option.Jarek Kobus2015-04-243-5/+23
| | | | | | | | | | | Now by default all categories are disabled. They get enabled only in verbose mode. Verbose mode enables all categories by default. Categories can be filtered using logging-rules option. Change-Id: I9324826a6e2d7a746e3d7369747fcd31a42b84b6 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Make componentChecker warnings optional.Jarek Kobus2015-04-221-0/+3
| | | | | | | | To enable them export the following environment variable: QT_LOGGING_RULES=ifw.componentChecker=true Change-Id: Ied6744c745ca3fd0840c622c71a8ba30ad22e3d9 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Fix updatecheckNiels Weber2015-04-141-1/+1
| | | | | | | Check for installermarker was the wrong way around. Change-Id: Id87cbc61d0bdb269eddc8377e5c775bc12c01174 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Fix embedding of installbase manifestKai Koehne2015-03-112-5/+3
| | | | | | | | | | | | Redefining QMAKE_MANIFEST is currently broken in Qt for newer compilers: The content is not embedded at all if the toolchain supports "embedding". But the hack is not needed anyway: Just disable the Qt manifest magic, and include our custom manifest file via .rc. This way we can also avoid changing the mkspec for embed_manifest_exe, embed_manifest_dll. Change-Id: I5155ddabe17f0b61b2d7b9c5b9cd912ad6c53dfe Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Add Windows 8.1 to list of supported versions in manifestKai Koehne2015-03-051-0/+2
| | | | | Change-Id: If101748767192d0a32dbba7f3b3bf156fb04b781 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Drop source code references from ts filesNiels Weber2015-03-025-2488/+1
| | | | | | Change-Id: I58deca6acc3c4c36097b57a57fdaae11068f5feb Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Added Italian translationcuoghimax2015-02-273-2/+2603
| | | | | Change-Id: I7c5dbe0a5610dc9b7671d6db3f57c169096c7ef2 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Fix dependencies in static buildKai Koehne2015-02-251-0/+7
| | | | | Change-Id: Iae06c6d5a9b1c678a4ab136da145a9c69ccadb6e Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
* Use local sockets for client-server communicationKai Koehne2015-02-203-10/+11
| | | | | | Change-Id: I12bfef671ab31ae9fb8c4bb02776517e7f434d27 Task-number: QTIFW-228 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Update Polish translationjkobus2015-02-201-197/+201
| | | | | | Change-Id: I53b239885ea752fb0da15591beb77cd7e2365f24 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com>
* Update CopyrightKai Koehne2015-02-1817-119/+119
| | | | | Change-Id: I8dde6629cfd461104364d5cdc255cb54b58283fa Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Translate into Polishjkobus2015-02-121-566/+582
| | | | | | | Change-Id: Ib9956c0db357818a515c08cdb14b02c3164fdbf0 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Update Russian translationSergey Belyashov2015-02-111-718/+719
| | | | | | | | Change-Id: Ieaee032c9b2d9ab05230aafc6e6aef11e6190646 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Fix use --startclient argumentsKai Koehne2015-02-021-1/+1
| | | | | | | | | So far the arguments to --startclient have been ignored. Change-Id: Ib76b061381a9320e6e4e9e2e970132c2f614aca7 GPush-Base: 92da4093e32040cb7cd7ed5587de78262d825e65 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Update Simplified Chinese translation fileZhang Xingtao2015-02-021-1174/+1035
| | | | | | | Change-Id: Ie0fb52d07427d3cdbb9fb9e517499e8e2c72510e Reviewed-by: Liang Qi <liang.qi@theqtcompany.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Update German translation for 2.0Niels Weber2015-02-021-185/+205
| | | | | Change-Id: Ic85aa74b55bd9c0010f3ff8245f0c6847f819e6d Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
* Update French translationMatthieu Bachelier2015-01-301-1611/+1475
| | | | | | | Change-Id: Ie6067ea37787b9b0b839c6f9dbad860f74353742 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Add Polish translationsjkobus2015-01-304-2/+3221
| | | | | | Change-Id: I311c5f0139e3fc54909b35d0629fecce58bcd37c Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Delete the messages that are no longer needed in japanese translations.Takayuki ORITO2015-01-291-890/+0
| | | | | | | Change-Id: Iae1736bccb854d320f089f0fdd69f8ad1b10aec4 Reviewed-by: Tasuku Suzuki <stasuku@gmail.com> Reviewed-by: Takumi ASAKI <takumi.asaki@gmail.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Update Japanese translation.Takayuki ORITO2015-01-281-0/+28
| | | | | | | | | | Update new 7 messages in ja.ts. Change-Id: I799ee320db50d260876427e1b350ec84612af09f Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Takumi ASAKI <takumi.asaki@gmail.com> Reviewed-by: Tasuku Suzuki <stasuku@gmail.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Fix loading of translationsJarek Kobus2015-01-261-22/+15
| | | | | | | | | | In case we hit the English translation just try to load it and break in any case. In case we hit another language we only install the translation if the qt translation was loaded properly, and break. Change-Id: I2755501c1af8cb51b38cf21e0205bcf05541fb91 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Remove unused sv.tsKai Koehne2015-01-261-3384/+0
| | | | | | | It's almost empty, and we don't actually ship it. Change-Id: I276f127b52d86ecfd17470a96b2517c5154fb656 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Fix that the message of Qt module is not translated.Takayuki ORITO2015-01-132-4/+4
| | | | | | | Translation files(qt_*.ts/qm) of Qt module has been split.(some of the language) Change-Id: I41727bbec40d46c843cc70ab831dc41c650a2e1b Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* rename CreateOfflineRepository to CreateLocalRepositoryChristoph Vogtländer2015-01-083-4/+4
| | | | | Change-Id: I36d7a504b27dfff8b9d10c9d90b6ff77108b9982 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Simplify registration of objects into script engineKai Koehne2015-01-071-4/+6
| | | | | | | | | | | | Rename addQObjectChildren, removeQObjectChildren methods to addToGlobalObject, removeToGlobalObject, and merge the augmentation of the properties with newQObject. Also, don't recursively register all objects with their objectNames in the global scope. This avoids name pollution. Change-Id: I28f1bc67e6febecc7b5142982c918432b61ed96f Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>