Replies: 4 comments 1 reply
-
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.
-
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-commercial
list-qt-commercial
--override
--user
and--password
For
user
andpassword
, they are used on aqt side to authenticate, but clash with the params on the Qt side (--email=str
and--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--user
is passed, then--override
then--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.ini
can be:C:\Users\<username>\AppData\Roaming\Qt\qtaccount.ini
/home/<username>/.local/share/Qt/qtaccount.ini
/Users/<username>/Library/Application Support/Qt/qtaccount.ini
This file is automatically created when you use the
MaintenanceTool
binary 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_TOKEN
and use the token if provided.If neither are present, you will need to provide
--user <email> --password <password>
.Note that if
--user
and--password
are provided, they will supersede theqtaccount.ini
and the JWT token account. Those also get superseded by--override --email --pw
in the CLIinstall-qt-commercial
Install 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 installpackages
orcomponents
(see here). Extensions, wasm, src... are 'modules'qtX.Y.Z-essentials
is downloaded (default Qt install, includesqtcreator
...)all
is inputed, the packageqtX.Y.Z-full
is 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-commercial
Search 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-commercial
supports an override mode that passes all arguments after--override
directly to the Qt installer CLI, and will ignore all the other params except--user
and--password
if given prior to itWhen using override mode:
--email
/--pw
flags in the override arguments are used for authentication--user
/--password
can still provide fallback authenticationExamples
Advanced configs
The file located in
./aqt/settings.ini
can be edited in the[qtcommercial]
part to fine tune the official installer (more details here):Beta Was this translation helpful? Give feedback.
All reactions