AkurAI Build
Menu

BifrOSt-Apps

public

Latest change f35619cfe0419c596645328bf0e1b682ad3a4473 - Harden RÚV for the 0.1.1 candidate by Ólafur Búi Ólafsson

app-id: @@APP_ID@@
runtime: org.gnome.Platform
runtime-version: "50"
sdk: org.gnome.Sdk
sdk-extensions:
  - org.freedesktop.Sdk.Extension.rust-stable
command: @@APP_ID@@
finish-args:
  - --share=ipc
  - --socket=wayland
  - --socket=fallback-x11
  - --device=dri
build-options:
  append-path: /usr/lib/sdk/rust-stable/bin
  env:
    CARGO_HOME: /run/build/app/cargo
modules:
  # libxdo is required by dioxus-desktop's menu/tray stack (muda) and is not
  # part of the GNOME runtime. Built from the pinned xdotool release below.
  - name: libxdo
    no-autogen: true
    make-args:
      - "PREFIX=/app"
    make-install-args:
      - "PREFIX=/app"
    cleanup:
      - /bin/xdotool
      - /include
      - /share/man
    sources:
      - type: archive
        url: https://github.com/jordansissel/xdotool/releases/download/v3.20211022.1/xdotool-3.20211022.1.tar.gz
        sha256: 96f0facfde6d78eacad35b91b0f46fecd0b35e474c03e00e30da3fdd345f9ada
  - name: app
    buildsystem: simple
    build-commands:
      - cargo --offline --locked build --release --bin @@CRATE_NAME@@
      - install -Dm0755 target/release/@@CRATE_NAME@@ /app/bin/@@APP_ID@@
      - install -Dm0644 data/@@APP_ID@@.desktop /app/share/applications/@@APP_ID@@.desktop
      - install -Dm0644 data/@@APP_ID@@.metainfo.xml /app/share/metainfo/@@APP_ID@@.metainfo.xml
      - install -Dm0644 data/icons/scalable/apps/@@APP_ID@@.svg /app/share/icons/hicolor/scalable/apps/@@APP_ID@@.svg
    sources:
      - type: dir
        path: .
      - cargo-sources.json