# Flatpak manifest for Service Bus Explorer (Linux port). # # App ID is a placeholder reverse-DNS using the GitHub username; change it before # submitting to Flathub. App IDs cannot be changed after publishing on Flathub. # # Build locally: # flatpak install -y flathub org.freedesktop.Sdk//24.08 org.freedesktop.Platform//24.08 \ # org.freedesktop.Sdk.Extension.dotnet8//24.08 # flatpak-builder --user --install --force-clean build-dir \ # packaging/flatpak/io.github.chamilkandamby.ServiceBusExplorer.yml # flatpak run io.github.chamilkandamby.ServiceBusExplorer app-id: io.github.chamilkandamby.ServiceBusExplorer runtime: org.freedesktop.Platform runtime-version: '24.08' sdk: org.freedesktop.Sdk sdk-extensions: - org.freedesktop.Sdk.Extension.dotnet8 command: ServiceBusExplorer finish-args: # GUI surfaces - --share=ipc - --socket=wayland - --socket=fallback-x11 - --device=dri # Outbound network for Service Bus - --share=network # Persist user settings/credentials inside the sandbox - --persist=.local/share/ServiceBusExplorer build-options: append-path: /usr/lib/sdk/dotnet8/bin prepend-ld-library-path: /usr/lib/sdk/dotnet8/lib env: DOTNET_CLI_TELEMETRY_OPTOUT: '1' DOTNET_NOLOGO: '1' # The Avalonia.Templates pull happens during 'dotnet new' (already committed); # restore here is offline-by-design via vendored NuGet cache (see modules below). modules: - name: servicebusexplorer buildsystem: simple build-options: build-args: # NOTE: Flathub does NOT allow network in build. For local development # we keep network on so 'dotnet restore' works against nuget.org. Before # Flathub submission, switch to a vendored offline NuGet cache (see # https://github.com/flatpak/flatpak-builder-tools/tree/master/dotnet) - --share=network build-commands: - dotnet publish linux/ServiceBusExplorer.Avalonia/ServiceBusExplorer.Avalonia.csproj -c Release -r linux-x64 --self-contained false -o /app/lib/ServiceBusExplorer - install -Dm755 packaging/flatpak/ServiceBusExplorer.sh /app/bin/ServiceBusExplorer - install -Dm644 packaging/flatpak/io.github.chamilkandamby.ServiceBusExplorer.desktop /app/share/applications/io.github.chamilkandamby.ServiceBusExplorer.desktop - install -Dm644 packaging/flatpak/io.github.chamilkandamby.ServiceBusExplorer.metainfo.xml /app/share/metainfo/io.github.chamilkandamby.ServiceBusExplorer.metainfo.xml sources: - type: dir path: ../..