mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-27 04:34:26 +08:00
- Add AppImage build using linuxdeploy - Add Flatpak build using flatpak-builder - Create AppRun script for .NET runtime sharing - Create Flatpak manifest and desktop file - Integrate both formats into release workflow - Upload .AppImage and .flatpak as release artifacts This provides comprehensive Linux packaging support: - DEB: For Debian/Ubuntu systems - Linglong: For Deepin/UOS systems - AppImage: Universal Linux format (download and run) - Flatpak: Universal Linux format (sandboxed) All formats share the same .NET runtime for efficiency.
55 lines
1.7 KiB
YAML
55 lines
1.7 KiB
YAML
app-id: com.lanmountain.desktop
|
|
runtime: org.freedesktop.Platform
|
|
runtime-version: '23.08'
|
|
sdk: org.freedesktop.Sdk
|
|
command: LanMountainDesktop.Launcher
|
|
|
|
finish-args:
|
|
# X11 + XShm access
|
|
- --share=ipc
|
|
- --socket=x11
|
|
# Wayland access
|
|
- --socket=wayland
|
|
# GPU acceleration
|
|
- --device=dri
|
|
# Audio access
|
|
- --socket=pulseaudio
|
|
# Network access
|
|
- --share=network
|
|
# Home directory access
|
|
- --filesystem=home
|
|
# D-Bus access for desktop integration
|
|
- --talk-name=org.freedesktop.Notifications
|
|
- --talk-name=org.kde.StatusNotifierWatcher
|
|
|
|
modules:
|
|
- name: LanMountainDesktop
|
|
buildsystem: simple
|
|
build-commands:
|
|
# Create directory structure
|
|
- mkdir -p /app/bin
|
|
- mkdir -p /app/lib
|
|
- mkdir -p /app/share/applications
|
|
- mkdir -p /app/share/icons/hicolor/256x256/apps
|
|
|
|
# Copy application files
|
|
- cp -r publish/linux-x64/app-*/* /app/lib/
|
|
- cp publish/linux-x64/LanMountainDesktop.Launcher /app/bin/
|
|
- cp publish/linux-x64/LanMountainDesktop.AirAppRuntime /app/bin/
|
|
- cp publish/linux-x64/LanMountainDesktop.AirAppRuntime.dll /app/lib/
|
|
|
|
# Copy AirAppHost if exists
|
|
- if [ -d "publish/linux-x64/AirAppHost" ]; then cp -r publish/linux-x64/AirAppHost /app/lib/; fi
|
|
|
|
# Set permissions
|
|
- chmod +x /app/bin/*
|
|
|
|
# Install desktop file
|
|
- install -Dm644 packaging/linux/Flatpak/com.lanmountain.desktop.desktop /app/share/applications/com.lanmountain.desktop.desktop
|
|
|
|
# Install icon
|
|
- install -Dm644 packaging/linux/lanmountaindesktop.png /app/share/icons/hicolor/256x256/apps/com.lanmountain.desktop.png
|
|
sources:
|
|
- type: dir
|
|
path: ../../..
|