summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix IFW build with Qt version 6.7.xHEADmasterKatja Marttila2024-05-083-3/+15
| | | | | Change-Id: Ida10f40ee58db9ea8282c46a940d1ef12e81ba93 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Update IFW version number to 5.0.0Katja Marttila2024-05-085-22/+22
| | | | | Change-Id: Ia6e43021d1a50fb71b2a49ddd6c230522d3d78e5 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Update Korean translationKatja Marttila2024-05-011-8/+18
| | | | | Change-Id: Iff5deb170d31fb7bd79647e4e4f8c5e6107ddd62 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Update Russian translationKatja Marttila2024-05-011-8/+18
| | | | | Change-Id: I00132eab138a8969d2865953cdb34aa729255a34 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Update Arabic translationKatja Marttila2024-05-011-8/+18
| | | | | | Change-Id: If33e1f1cb0095cdba914d7fc2934da3c102cae43 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Update Portuguese translationKatja Marttila2024-05-011-0/+18
| | | | | Change-Id: I43bb187861c00055178afea73290f6e6e6d01fb9 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Add correct language extension to European PortugueseKatja Marttila2024-05-011-0/+0
| | | | | Change-Id: I0d04ba161bf969a83a6af1080864c0de8ac381b8 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Update Spanish translationKatja Marttila2024-04-241-8/+18
| | | | | Change-Id: I0b77c00d9570d56ec5775927620330b4a0a47c22 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Update CLI wording when component is not foundKatja Marttila2024-04-222-2/+2
| | | | | | | | | When trying to install or update component which is not found, a warning is dispayed. Changed the wording so that the texts fits both to update and install commands. Change-Id: I06c58624fc33586f64a2c63768690ab431e661e8 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Fix metadata fetch in updater modeKatja Marttila2024-04-224-24/+40
| | | | | | | | | | If no component is given to update command, look for updates from all categories so no update is missed. If component is given, utilize the meta fetch from default repositories first. Checkupdates command searches update from all categories. Change-Id: I6dbd9f130c9b008cb066ad7767d2b9a287ecac9f Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Fetch all metadata when using package viewerKatja Marttila2024-04-191-0/+2
| | | | | | | | | As the search pattern can be regexp, the search can match to basically anything. Enabling all categories when doing such searches Task-number: QTIFW-3356 Change-Id: I46bd25e2a1493b4ebba245910c2a5f7505a67af5 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Update German translationKatja Marttila2024-04-191-12/+22
| | | | | Change-Id: I589c2d010be1be5c8ebc0d1827165317fdb0c692 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Update Chinese translationKatja Marttila2024-04-191-8/+17
| | | | | Change-Id: Ie1fede004a9263b0c6eb564878c737f677464a65 Reviewed-by: Liang Qi <liang.qi@qt.io>
* Coin: Switch clone instruction to new tqtc-qtsdk branchPatrik Teivonen2024-04-181-1/+1
| | | | | | Task-number: QTQAINFRA-6080 Change-Id: Ia1abb60279de3001e8f861175e47a51e10241188 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Update French translationKatja Marttila2024-04-171-8/+18
| | | | | Change-Id: I830fe5762664db39a378819124d195aa7ba8e7ed Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Fix signal about loaded languageKatja Marttila2024-04-163-4/+4
| | | | | | | | | | QLocale::Languege does not distinguish between Brazilian Portuguese and European Portuguese. Sending the QLocale object in defaultTranslationsLoadedForLanguage signal to make a difference between these languages. Change-Id: I95994e00b67e2bd18a611d4c9a14d4a6cf57b204 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Add translation to 'Welcome' text in Arabic languageKatja Marttila2024-04-161-2/+2
| | | | | Change-Id: I046080d31f09530d141515964939bb76b430b203 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Update ChangelogKatja Marttila2024-04-091-0/+20
| | | | | Change-Id: I9de5c6d0e7402b978f116aa988a3aacb68a167c3 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Merge remote-tracking branch 'origin/4.7'Arttu Tarkiainen2024-04-091-0/+1
|\ | | | | | | Change-Id: I293988765cc467f232089fbd6fb0666a30c7a6f1
| * Update Changelog4.7.04.7Katja Marttila2024-02-151-0/+1
| | | | | | | | | | Change-Id: I28b23cc512ec8c20b8208039225b8e99c177aacd Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Fix occasional crash in install phaseKatja Marttila2024-04-097-34/+32
| | | | | | | | | | | | | | | | | | | | | | Progress information is printed using same static instance of the coordinator by different operations. The operation object pointer was saved as key to QHash so that progress could be tracked. This has caused problems in installer as QHash insert occasionally caused segmentation fault. Fixed so that the progress information is no longer tracked based on operation object pointer, instead object name is used. Task-number: QTIFW-3314 Change-Id: Ic4007f226321e109109006c5c89415308920c614 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Fix expected status on createoffline testsArttu Tarkiainen2024-04-051-3/+3
| | | | | | | | | | | | | | | | For some failure cases, the correct status is now PackageManagerCore::Canceled. Change-Id: Id62c6a06b73eab576977c38a4c66d9e2e1863b9b Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* | Allow overwriting undo in some operationsKatja Marttila2024-04-0526-96/+540
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Added possibility to overwrite undo in copy, move, delete, mkdir, rmdir, appendfile and prependfile operations. Undo is performed when component is uninstalled or updated, by adding UNDOOPERATION to the end of argument list will skip the undo operation. Also added unit tests for rmdir and prependfile operations Task-number: QTIFW-3333 Task-number: QTIFW-393 Change-Id: I88dbb16d2ebabe42b4ff810e6196da0be8b4cc65 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Save used CLI arguments for later usageKatja Marttila2024-04-054-3/+27
| | | | | | | | | | | | | | | | | | | | | | | | Qt Installer will send information to backend if unstable components are found (e.g. dependency is missing), to better track for problems the CLI arguments are needed as well. Options which are not defined in installer are not saved, also option arguments which may contain confident information are not saved either. Task-number: QTIFW-3070 Change-Id: Iff5bfad725d1f56b7fb6c501138427ef4c58b5c3 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Add possibility to add extra log when meta fetch failsKatja Marttila2024-04-045-1/+16
| | | | | | | | | | | | | | | | | | Also if the log contains links or html, added link interaction possibility and correct html syntax to messagebox and error messages. Task-number: QTIFW-3012 Change-Id: Ibf20f50c0f06fdbb8325f93dbdf78ba36d4fe4e5 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Fix proxy authentication loginKatja Marttila2024-04-021-6/+15
| | | | | | | | | | | | | | | | | | Proxy authentication did not work with CLI installs as it tried to open a dialog. Fixed it so that the username and password is asked from CLi when proxy requires authentication instead of trying to open a dialog. Change-Id: Iea92fa2934d103e4982f4792041512ea3f7b1033 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Fix http authorization loginKatja Marttila2024-04-023-6/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Setting http authorization login credentials had no effect, the metadatajob did not refetch the repositories after login credentials were given. Also when using CLI install, installer crashed when login credentials were needed as it tried to open a dialog. Fixing the crash so that when using CLI install, user is asked for the credentials from terminal, and reseting metadatajob so that credentials are taken into account. Task-number: QTIFW-3301 Change-Id: I72d254c5c44413e2d893f7c686001c2d0de0e8e9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Fix QDesktopServices propertiesKatja Marttila2024-04-022-3/+12
| | | | | | | | | | | | | | | | | | | | QStandardPaths has changed in Qt 6.6, changing the script properties for script usage accordingly. Task-number: QTIFW-3334 Change-Id: Ib0bf1f0370d8f8691436df0df28a445e39bdb39f Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io> Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Remove unused Url loggingKatja Marttila2024-04-021-7/+0
| | | | | | | | | | | | | | | | Url logging does not nowadays provide any useful information as the meta is read from cache, and the cache path is already printed to log once. Change-Id: I9845ad9ecf2dac53b3775a07b1702f938632b64a Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Fix maintenance tool register path parametersKatja Marttila2024-03-281-3/+7
| | | | | | | | | | | | | | | | | | | | | | In Windows, maintenance tool is written to registry. 'Add or remove' program in Windows settings uses the registry, and maintenancetool can be started using the settings. Fixing the maintenancetool parameters so that selecting 'Modify' will open the maintenancetool in packagemanager mode, and 'Uninstall' will open the maintenancetool in uninstaller mode. Change-Id: Ib1e8c80132f6e2eb2f8cfa22910b4ad1ca696f06 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Fix productType function return value in macosKatja Marttila2024-03-282-2/+2
| | | | | | | | | | | | | | | | In Qt6, productType is macos, whereas in Qt5 it was osx. Task-number: QTIFW-3309 Change-Id: I403c8a2734eac7a511f742bdd1be130090f7af07 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Speed up cache validationKatja Marttila2024-03-224-15/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Cache validation takes some time especially in Windows, mostly the time is spent in opening the files for the integrity check. Instead of writing the sha checksum to file to verify the integrity, name the file itself with the sha checksum. Then it is enough to check if the correct file exists and we don't need to open the file. Task-number: QTIFW-3328 Change-Id: I36835d783ccf2f6aad8c83e14ec19cbdfc6db71e Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | Fix QFileDialog documentationKatja Marttila2024-03-221-2/+7
| | | | | | | | | | | | Task-number: QTIFW-3320 Change-Id: I3cd4e19f4bfb192ef929b2f724ee77c0b770f06d Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Remove unused performUndo value in delete operationKatja Marttila2024-03-222-4/+0
| | | | | | | | | | Change-Id: I50ff0eb9dd1f3c2bbcc20abbed5244e46229468a Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Fix Settings dialog opening warningKatja Marttila2024-03-191-0/+1
| | | | | | | | | | | | | | | | | | Settings dialog throws warning 'Unable to set geometry' in Windows, adjust the size before opening to get rid of the warning. Has no effect on the real size though. Change-Id: If1a346fbcbba422fe1d9978a9d3f0cae38c4e2f9 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Disable 'clear cache' button until new cache settings are appliedArttu Tarkiainen2024-03-145-4/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Check the cache validity and use it as the initial state for the button. After clearing the cache, regardless of success, the cache will become invalid so the button should stay disabled until new settings are applied and the cache is reinitialized. Also disable the button in case the selected cache path does not match the one currently applied in the settings. Task-number: QTIFW-3252 Change-Id: I1b403fbc8a6680dfd5222296479ab0821cdb4a37 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* | Add detailed warning when hash verification failsKatja Marttila2024-03-141-2/+4
| | | | | | | | | | | | | | Added expected and calculated hash values to warning Change-Id: I2646b139c756ba7903fe2a05bab39b7c9cbbe62a Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Add security warning possibility when using additional repositoriesKatja Marttila2024-03-133-0/+8
| | | | | | | | | | | | | | | | | | | | When installing from CLI and the installable component is not in default categories, developer has possibility to override ProductkeyCheck and return custom security message warning. Task-number: QTIFW-3305 Change-Id: Ie321af6796bf19c910216be2c6ee521aa63788d8 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Add possibility to add additional license text to CLIKatja Marttila2024-03-114-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | Developer can override productkeycheck, there can be cases that developer wants to show some additional license text in CLI before accepting the licenses. The license text can be accepted or rejected by CLI command Accept/Reject, or by using --accept-licenses switch for non-interactive acceptance. Task-number: QTIFW-3319 Change-Id: I60e1ea36cf3f7f98af62c06c2535342003ceb9a6 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Include minimal qt.conf fileKatja Marttila2024-03-112-0/+1
| | | | | | | | | | | | | | | | | | | | Qt uses qt.conf file to load various Qt paths. To prevent that installer would accidently use the qt.conf file which does not belong to it, generate dummy qt.conf file so that the installer won't break. Task-number: QTIFW-3292 Change-Id: I22cf745f991e33607de12e43f2c8c6665b1714e3 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Add Chinese and Portuquese languages to resourceKatja Marttila2024-03-071-1/+3
| | | | | | | | | | | | | | | | | | Languages with double '_' characters in language name were not parsed to resources due to bug in qmake parsing. Task-number: QTIFW-3325 Change-Id: I55c58db8c4257eedd90ba2ca2c37923de5745ffa Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Fix translations missing in Linux and macOSKatja Marttila2024-03-061-0/+9
| | | | | | | | | | | | | | | | | | | | In Qt6.6.0 resource compiler(rcc) is moved to libexec folder, and IFW variable $$RCC no longer points to correct location. Fixed so that if resource compiler is not found from $$RCC, rcc is searched from libexec folder Task-number: QTIFW-3310 Change-Id: I1bb9555002d78ff7177bbdad7c7fbf72251a64f5 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Add possibility for additional license checkKatja Marttila2024-03-053-1/+7
| | | | | | | | | | | | | | | | Productkeycheck, or repository, can implement additional license checkings. Added possibility to enable the next button in license agreement page when productkeycheck has also validated that the license check is ok. By default productkeycheck returns true for additional license checks, the developer can override the productkeycheck to add additional checks. Task-number: QTIFW-3319 Change-Id: Ie7e3d84eb800edb6c5c9731afa6bfe464e4ae4d1 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | CLI: Perform commands primarily from default repositoriesKatja Marttila2024-03-055-58/+245
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Especially in installers which contains huge amount of repositories, it takes a long time to perform commands from CLI. If the repositories are filtered using categories, it saves a lot of time if the components to install/update etc. are tried to install/update from the defaultly selected repository categories. Assuming that the component is found from the defaultly selected repositories. If the component is not found from defaultly selected repository categories, then all categories are searched for the component. Implemented also a filter logic, where the components to install are searched earlier, if the component is not found then we can exit early. Task-number: QTIFW-3251 Change-Id: I1274b5f56dbff293554cb21839a8cea63a7d2dcc Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Move non-ui related functionality to coreKatja Marttila2024-02-2310-144/+209
| | | | | | | | | | | | | | | | We need to access the core functionality despite of what user interface is used. Change-Id: I6c4c7e8526ff24a479128061aa40fba66e61660c Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Add possibility to change button textKatja Marttila2024-02-225-5/+51
| | | | | | | | | | | | | | | | | | | | Sometimes the button texts in installer are not something that is suitable. Added possibility to change button texts from script to a specific installer page. Task-number: QTIFW-711 Change-Id: I2883cda6d770843c3617fda4e6b07d102a357730 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Fix EnvironmentVariable undoKatja Marttila2024-02-141-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If EnvironmentVariable value contains both @TargetDir@ and hardcoded windows path separators, installer is unable to undo the EnvironmentVariable in uninstall. Fixed so that the path separators are ignored when comparing the values in undo. Another fix would be to use Linux native separators when setting the value, or resolve @TargetDir@, and calling installer.toNativeSeparators() before calling addOperation() Task-number: QTIFW-1148 Change-Id: I2eb8f9a0580e0c3f7e6dbdbef5ecbf6cd8940481 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* | Merge "Merge remote-tracking branch 'origin/4.7' into master"Katja Marttila2024-02-0517-156/+156
|\ \
| * | Merge remote-tracking branch 'origin/4.7' into masterKatja Marttila2024-02-0517-156/+156
| |\| | | | | | | | | | Change-Id: I308a30ca62f06520431a145dd31c28e6ba663729
| | * Update translationsKatja Marttila2024-01-3117-156/+156
| | | | | | | | | | | | | | | | | | Task-number: QTIFW-3253 Change-Id: Iecd60d7f4c13976b49df80d65d3cbb3744a0daf7 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>