--- # Flatpak manifest for VedaDB Server. # Submission target: https://github.com/flathub/flathub # Build locally: # flatpak-builder --force-clean --install-deps-from=flathub \ # build-dir packaging/flatpak/io.vedadb.Server.yaml # # AppStream metadata: io.vedadb.Server.metainfo.xml (same directory) # Desktop entry: none — this is a headless server app. app-id: io.vedadb.Server runtime: org.freedesktop.Platform runtime-version: '23.08' sdk: org.freedesktop.Sdk sdk-extensions: - org.freedesktop.Sdk.Extension.golang - org.freedesktop.Sdk.Extension.rust-stable command: vedadb-server finish-args: # Server listens on TCP — needs host network. - --share=network # Fallback X11 socket is harmless and lets the workbench open a window if launched. - --socket=fallback-x11 # Persistent data under the sandboxed data dir. - --persist=.local/share/vedadb build-options: append-path: /usr/lib/sdk/golang/bin:/usr/lib/sdk/rust-stable/bin env: GOFLAGS: -mod=vendor GOPROXY: 'off' CARGO_HOME: /run/build/vedadb/cargo modules: - name: vedadb buildsystem: simple sources: - type: git url: https://github.com/tiennesdm/VedaDb.git tag: v0.2.0 build-commands: - cd vedadb && make build-rust - cd vedadb && CGO_ENABLED=1 go build -trimpath -o /app/bin/vedadb-server ./cmd/vedadb-server - cd vedadb && CGO_ENABLED=1 go build -trimpath -o /app/bin/vedadb-cli ./cmd/vedadb-cli - cd vedadb && CGO_ENABLED=1 go build -trimpath -o /app/bin/vedadb-workbench ./cmd/vedadb-workbench - install -Dm644 packaging/flatpak/io.vedadb.Server.metainfo.xml /app/share/metainfo/io.vedadb.Server.metainfo.xml