Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WebAssembly (WASM) support for Qt 6.7+ #837

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Kidev
Copy link

@Kidev Kidev commented Nov 26, 2024

Fix WebAssembly (WASM) support for Qt 6.7+

Description

Adds support for downloading and installing Qt WASM packages for Qt versions 6.7.0 and above, while remaining backward compatible. Starting from Qt 6.7.0, the Qt WebAssembly (WASM) packages have been moved to a new repository structure at https://download.qt.io/online/qtsdkrepository/all_os/wasm/.

This PR updates the path handling to properly support:

  • Qt 6.7.x: qt6_67x_wasm_singlethread and qt6_67x_wasm_multithread
  • Qt 6.8.x: qt6_680/qt6_680_wasm_singlethread and qt6_680/qt6_680_wasm_multithread

Changes

  • Added 'wasm' target to all_os supported targets
  • Updated WASM path construction to handle both Qt 6.7.x and 6.8.x structures
  • Updated version detection to properly handle Qt 6.7+ WASM packages
  • Added debug logs for easier troubleshooting of the Updates.xml URL generation process

Example Usage

aqt install-qt linux desktop 6.7.3 wasm_singlethread --autodesktop --modules qtquick3d qtquicktimeline qtshadertools

About qt-install-action

It works on a ubuntu-24.04 runner at least, I tested it on a personal project: the wasm arch is downloaded and behave as expected. You just need to specify (at least until the fixes are pushed to master) aqtsource as git+https://github.com/Kidev/aqtinstall.git:

      - name: Install Qt
        uses: jurplel/[email protected]
        with:
          version: '6.7.3'
          host: 'linux'
          target: 'desktop'
          arch: 'wasm_singlethread'
          modules: 'qtquick3d qtquicktimeline qtshadertools'
          extra: '--autodesktop'
          aqtsource: 'git+https://github.com/Kidev/aqtinstall.git'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant