Add files via upload

This commit is contained in:
Knud Schrøder
2025-11-26 15:26:40 +01:00
committed by GitHub
parent 9cc68c8ced
commit caffaa524f
10 changed files with 1740 additions and 0 deletions

Binary file not shown.

BIN
Flatpak/NotoColorEmoji.ttf Normal file

Binary file not shown.

View File

@@ -0,0 +1,7 @@
[Desktop Entry]
Name=Meshtastic Client
Exec=meshtastic-client
Icon=dk.it4home.MeshtasticClient
Type=Application
Categories=Network;Utility;

View File

@@ -0,0 +1,40 @@
id: dk.it4home.MeshtasticClient
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
command: meshtastic-client
finish-args:
- --share=network
- --socket=x11
- --socket=wayland
- --socket=pulseaudio
- --filesystem=home
modules:
- name: meshtastic-client
buildsystem: simple
build-commands:
- install -D meshtastic_client.py /app/bin/meshtastic-client
- chmod +x /app/bin/meshtastic-client
- pip3 install --prefix=/app --no-build-isolation --no-index --find-links=vendor --ignore-installed vendor/*.whl
sources:
- type: dir
path: .
- name: desktop-file
buildsystem: simple
build-commands:
- install -D dk.it4home.MeshtasticClient.desktop /app/share/applications/dk.it4home.MeshtasticClient.desktop
- install -D icon.png /app/share/icons/hicolor/512x512/apps/dk.it4home.MeshtasticClient.png
sources:
- type: dir
path: .
- name: noto-color-emoji
buildsystem: simple
build-commands:
- install -D NotoColorEmoji.ttf /app/share/fonts/truetype/NotoColorEmoji.ttf
- fc-cache -fv
sources:
- type: file
path: NotoColorEmoji.ttf

38
Flatpak/flatbuild.sh Normal file
View File

@@ -0,0 +1,38 @@
#!/bin/bash
set -e
APP_DIR="/home/knud/Desktop/Meshtastic/Meshtastic_client/Flatpak"
MANIFEST="dk.it4home.MeshtasticClient.yaml"
BUILD_DIR="$APP_DIR/build-dir"
cd "$APP_DIR"
echo "=== Ensuring vendor wheels exist (requirements -> vendor/) ==="
if [ ! -d "vendor" ] || [ -z "$(ls -A vendor)" ]; then
echo "Downloading Python wheels to vendor/ ..."
pip download -r requirements.txt -d vendor
fi
echo "=== Installing required Flatpak runtimes (24.08) ==="
flatpak install -y flathub org.freedesktop.Platform//24.08
flatpak install -y flathub org.freedesktop.Sdk//24.08
echo "=== Building + installing Flatpak (clean) ==="
flatpak-builder --user --force-clean --install "$BUILD_DIR" "$MANIFEST"
echo "=== Creating single-file bundle (.flatpak) ==="
APP_ID="dk.it4home.MeshtasticClient"
BRANCH="master"
USER_REPO="$HOME/.local/share/flatpak/repo"
BUNDLE_NAME="MeshtasticClient.flatpak"
flatpak build-bundle "$USER_REPO" "$APP_DIR/$BUNDLE_NAME" "$APP_ID" "$BRANCH"
echo "Bundle created at: $APP_DIR/$BUNDLE_NAME"
echo "=== Running Meshtastic Client ==="
flatpak run dk.it4home.MeshtasticClient

BIN
Flatpak/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 KiB

View File

@@ -0,0 +1,11 @@
[Desktop Entry]
Name=Meshtastic Client
Comment=Meshtastic Desktop Client
Exec=meshtastic-client
Terminal=false
Type=Application
Icon=meshtastic
Categories=Network;Utility;
NoDisplay=false
Name[en_US]=meshtastic-client.desktop

0
Flatpak/meshtastic.ico Normal file
View File

BIN
Flatpak/meshtastic.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 KiB

1644
Flatpak/meshtastic_client.py Normal file

File diff suppressed because it is too large Load Diff