-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kind of working snapcraft file. It builds and we get a GUI but QT is …
…complaining about QT5 (not 6) and platformio isn't happy
- Loading branch information
1 parent
1291a6b
commit d4779e7
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: oatfwgui | ||
base: core22 | ||
adopt-info: oatfwgui | ||
summary: TODO | ||
description: | | ||
TODO | ||
website: https://github.com/OpenAstroTech/OATFWGUI | ||
source-code: https://github.com/OpenAstroTech/OATFWGUI | ||
|
||
grade: stable | ||
confinement: strict | ||
|
||
architectures: | ||
- build-on: | ||
- amd64 | ||
# - armhf | ||
# - arm64 | ||
|
||
lint: | ||
ignore: | ||
- library | ||
|
||
parts: | ||
oatfwgui: | ||
plugin: python | ||
source: . | ||
# stage-packages: | ||
# - libglib2.0-0 | ||
# - libxkbcommon0 | ||
# - libfontconfig1 | ||
# - libgl1 | ||
# - libegl1 | ||
# - qt6-wayland | ||
# - python3-pyqt6.sip | ||
override-build: | | ||
craftctl default | ||
python -m venv .venv_set_version | ||
.venv_set_version/bin/pip install --requirement ./scripts/requirements_version.txt | ||
rm -rv $CRAFT_PRIME/* || true | ||
cp -rv OATFWGUI/ $CRAFT_PRIME/ | ||
.venv_set_version/bin/python ./scripts/set_version.py --file $CRAFT_PRIME/OATFWGUI/_version.py release | ||
python3 -m pip install -r ./requirements.txt | ||
apt-get install -y libglib2.0-0 libxkbcommon0 libfontconfig1 libgl1 libegl1 qt6-wayland python3-pyqt6.sip | ||
craftctl set version=$(python3 $CRAFT_PRIME/OATFWGUI/main.py --version | tail -n1) | ||
apps: | ||
oatfwgui: | ||
plugs: | ||
- home | ||
- removable-media | ||
# - x11 | ||
# - wayland | ||
# - desktop | ||
extensions: | ||
- kde-neon | ||
environment: | ||
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib | ||
QT_QPA_PLATFORM: xcb | ||
command: bin/python3 OATFWGUI/main.py |