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

snap: Updated to Qt 6 #4068

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 28 additions & 31 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ base: core24

grade: stable
confinement: strict
environment:
QT_PLUGIN_PATH: "$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/qt6/plugins"

apps:
tiled:
Expand Down Expand Up @@ -47,49 +49,44 @@ parts:
craftctl default
craftctl set version="$(git describe | sed 's/v//')"
override-build: |
qmake6 -version
qmake6 -query
qbs setup-toolchains --detect
qbs setup-qt /usr/bin/qmake6 qt6
qbs config defaultProfile qt6
qbs build --jobs "${CRAFT_PARALLEL_BUILD_COUNT}" --command-echo-mode command-line config:release qbs.installPrefix:"/usr" projects.Tiled.version:$(craftctl get version) projects.Tiled.useRPaths:false
qbs install --install-root "${CRAFT_PART_INSTALL}" config:release
parse-info:
- usr/share/metainfo/org.mapeditor.Tiled.appdata.xml
source: .
build-packages:
- build-essential
- dpkg-dev
- libzstd-dev
- pkg-config
# FIXME: Python plugin compiles and loads, but can't find platform libraries
# - python-dev
- qttools5-dev-tools
- qbs
- libqt5svg5-dev
- qtdeclarative5-dev
- qt6-base-dev
- qt6-declarative-dev
- qt6-l10n-tools
- qt6-svg-dev
- zlib1g-dev
- libzstd-dev
stage-packages:
- libqt5quick5
- qt5-image-formats-plugins
- qtwayland5
# - libpython2.7
- libzstd1
after: [desktop-qt5]

desktop-qt5:
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
source-subdir: qt
plugin: make
make-parameters: ["FLAVOR=qt5"]
build-packages:
- build-essential
- qtbase5-dev
- dpkg-dev
# FIXME: Python plugin compiles and loads, but can't find platform libraries
# - python-dev
stage-packages:
- libxkbcommon0
- dmz-cursor-theme
- light-themes
- adwaita-icon-theme
- shared-mime-info
- libqt5concurrent5
- libqt5gui5
- libqt5svg5 # for loading icon themes which are svg
- dmz-cursor-theme
- fcitx-frontend-qt6
- libgdk-pixbuf2.0-0
- libqt6concurrent6t64
- libqt6gui6t64
- libqt6quick6
- libqt6svg6 # for loading icons which are svg
- libxkbcommon0
- libzstd1
- light-themes
- locales-all
- qt6-image-formats-plugins
- qt6-wayland
- shared-mime-info
- xdg-user-dirs
- fcitx-frontend-qt5
# - libpython2.7
Loading