Replies: 5 comments 4 replies
-
|
Preview visible here: https://demo.kidev.org/aqtinstall/commercial.html |
Beta Was this translation helpful? Give feedback.
-
|
I don't have a specific preference for the command name. I want to respect a proposal. |
Beta Was this translation helpful? Give feedback.
-
|
So I slept on it, and came up with:
Thoughts? |
Beta Was this translation helpful? Give feedback.
-
|
I guess another option that would be the most user friendly would be to also support if in normal CLI, a flag like |
Beta Was this translation helpful? Give feedback.
-
|
To conclude here, I went with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As mentioned in this PR, @pzhlkj6612 and I feel that the naming of the commands is misleading.
Indeed, some params are questionable, lack consistency, or obscure the fact that the feature can be used by open-source users provided they authenticate.
Since there is no docs yet, it's the good time to change the commands. I would immediately update my PR on the install-qt-action to reflect those changes. What do you think @miurahr ?
Should we rename, and if so, how should we rename...
install-qt-commerciallist-qt-commercial--override--userand--passwordFor
userandpassword, they are used on aqt side to authenticate, but clash with the params on the Qt side (--email=strand--pw=str). Being two different params also created complications in the code that are now mostly solved, but unifying would reduce the chance of undefined behavior. Example if the issues that creates: if--useris passed, then--overridethen--pw, should the command be valid? If both are used, which account should it authenticate?Here is a draft of documentation
Qt Commercial Installation Commands
Important
It first looks into the folder of your OS where the file
qtaccount.inican be:C:\Users\<username>\AppData\Roaming\Qt\qtaccount.ini/home/<username>/.local/share/Qt/qtaccount.ini/Users/<username>/Library/Application Support/Qt/qtaccount.iniThis file is automatically created when you use the
MaintenanceToolbinary and log in using the GUI. It is also created the first time you use the CLI or any mean to authenticate. You can simply copy the file that you have on your PC to your CI server, it will work across platforms. Just treat it as a password. Refer to this page for more details.It will also check the value of the environment variable
QT_INSTALLER_JWT_TOKENand use the token if provided.If neither are present, you will need to provide
--user <email> --password <password>.Note that if
--userand--passwordare provided, they will supersede theqtaccount.iniand the JWT token account. Those also get superseded by--override --email --pwin the CLIinstall-qt-commercialInstall Qt commercial packages using the official Qt installer.
Arguments
target- Target platform (desktop, android, ios)arch- Target architectureversion- Qt version to installOptions
--user <username>- Qt account username--password <password>- Qt account password--modules <module1> <module2> ...- Additional Qt modules to installpackagesorcomponents(see here). Extensions, wasm, src... are 'modules'qtX.Y.Z-essentialsis downloaded (default Qt install, includesqtcreator...)allis inputed, the packageqtX.Y.Z-fullis downloaded (includes everything)Click to see all the special packages (for Linux Qt 6.8.1)
--outputdir <path>- Installation directory (default: current directory)--override <args...>- Pass all remaining arguments directly to the Qt installer CLIlist-qt-commercialSearch available Qt commercial packages.
Options
--user <username>- Qt account username--password <password>- Qt account passwordsearch_terms- Terms to search for in package names (grabs all that is not other options)Override Mode
install-qt-commercialsupports an override mode that passes all arguments after--overridedirectly to the Qt installer CLI, and will ignore all the other params except--userand--passwordif given prior to itWhen using override mode:
--email/--pwflags in the override arguments are used for authentication--user/--passwordcan still provide fallback authenticationExamples
Advanced configs
The file located in
./aqt/settings.inican be edited in the[qtcommercial]part to fine tune the official installer (more details here):Beta Was this translation helpful? Give feedback.
All reactions