feat: add mainland-reachable desktop distribution

This commit is contained in:
2026-08-16 23:00:54 +08:00
parent e8eeb4ac72
commit a3e1f11e85
42 changed files with 3661 additions and 191 deletions

View File

@@ -15,6 +15,8 @@ finish-args:
- --share=network
- --filesystem=host
- --filesystem=xdg-download
- --socket=pulseaudio
- --filesystem=xdg-run/pipewire-0:ro
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.freedesktop.portal.Desktop
- --talk-name=org.a11y.Bus
@@ -50,11 +52,13 @@ modules:
build-args:
- --share=network
build-commands:
- mkdir -p vendor/modlens vendor/anchored-standard vendor/zero-anchored-standard
- mkdir -p vendor/modlens vendor/dshmarket vendor/anchored-standard vendor/zero-anchored-standard
- cargo build --release --locked --offline || cargo build --release
- install -Dm755 target/release/dsh-desktop ${FLATPAK_DEST}/bin/dsh-desktop
- mkdir -p ${FLATPAK_DEST}/share/dsh-desktop/vision
- cp -a plugins/dsh-desktop-vision/. ${FLATPAK_DEST}/share/dsh-desktop/vision
- mkdir -p ${FLATPAK_DEST}/share/dsh-desktop/voice
- cp -a plugins/dsh-desktop-voice/. ${FLATPAK_DEST}/share/dsh-desktop/voice
- install -Dm644 data/applications/io.github.tommyfang.DshDesktop.desktop ${FLATPAK_DEST}/share/applications/io.github.tommyfang.DshDesktop.desktop
- install -Dm644 data/metainfo/io.github.tommyfang.DshDesktop.metainfo.xml ${FLATPAK_DEST}/share/metainfo/io.github.tommyfang.DshDesktop.metainfo.xml
- for size in 16 24 32 48 64 128 256 512; do install -Dm644 data/icons/hicolor/${size}x${size}/apps/io.github.tommyfang.DshDesktop.png ${FLATPAK_DEST}/share/icons/hicolor/${size}x${size}/apps/io.github.tommyfang.DshDesktop.png; done
@@ -79,6 +83,15 @@ modules:
- type: dir
path: ../vendor/modlens
- name: plugin-market
buildsystem: simple
build-commands:
- mkdir -p ${FLATPAK_DEST}/share/dsh-desktop/market
- cp -a . ${FLATPAK_DEST}/share/dsh-desktop/market
sources:
- type: dir
path: ../vendor/dshmarket
- name: anchored-standard-preset
buildsystem: simple
build-commands: