app-id: com.flectar.mail runtime: org.freedesktop.Platform runtime-version: '25.08' sdk: org.freedesktop.Sdk sdk-extensions: - org.freedesktop.Sdk.Extension.rust-stable command: flectar-mail separate-locales: false # The app already uses portals for browser and file-picker requests. Credential # storage uses the freedesktop Secret Service. The Flatpak feature disables the # legacy StatusNotifier tray backend so the sandbox needs no unsafe D-Bus name. # Docks that show the unread count on the icon own com.canonical.Unity; the # count is a broadcast that needs no permission, and the name only tells the app # when a dock (re)starts, to send it again. finish-args: - --share=ipc - --share=network - --device=dri - --socket=wayland - --socket=fallback-x11 - --talk-name=org.freedesktop.secrets - --talk-name=com.canonical.Unity cleanup: - /include - /lib/pkgconfig - /share/pkgconfig - /share/man - '*.a' - '*.la' modules: - name: flectar-mail buildsystem: simple build-options: append-path: /usr/lib/sdk/rust-stable/bin env: CARGO_BUILD_JOBS: '1' CARGO_HOME: /run/build/flectar-mail/cargo CARGO_NET_OFFLINE: 'true' build-commands: - cargo build --offline --locked --release --no-default-features --features remote-content,gpu-renderer,flatpak --bin flectar-mail - install -Dm0755 target/release/flectar-mail /app/bin/flectar-mail - install -Dm0755 pdfium-runtime/lib/libpdfium.so /app/lib/flectar-mail/libpdfium.so - python3 scripts/test-pdf-preview.py /app/bin/flectar-mail - python3 scripts/linux-elf.py verify /app/bin/flectar-mail /app/lib/flectar-mail - python3 scripts/stage-linux-metadata.py --flatpak _flatpak-stage - install -Dm0644 _flatpak-stage/usr/share/applications/com.flectar.mail.desktop /app/share/applications/com.flectar.mail.desktop - install -Dm0644 _flatpak-stage/usr/share/metainfo/com.flectar.mail.metainfo.xml /app/share/metainfo/com.flectar.mail.metainfo.xml - install -Dm0644 resources/app-icon/flectar-mail-masked-512.png /app/share/icons/hicolor/512x512/apps/com.flectar.mail.png - install -Dm0644 resources/app-icon/flectar-mail-masked.svg /app/share/icons/hicolor/scalable/apps/com.flectar.mail.svg - install -Dm0644 LICENSE /app/share/licenses/flectar-mail/LICENSE - cp -a LICENSES /app/share/licenses/flectar-mail/LICENSES - install -Dm0644 THIRD_PARTY_NOTICES.md /app/share/doc/flectar-mail/THIRD_PARTY_NOTICES.md - install -Dm0644 resources/fonts/google-sans-flex/OFL.txt /app/share/licenses/flectar-mail/google-sans-flex/OFL.txt - install -Dm0644 resources/fonts/google-sans-flex/README.md /app/share/doc/flectar-mail/google-sans-flex/README.md - mkdir -p /app/share/licenses/flectar-mail/pdfium - cp -a pdfium-runtime/LICENSE pdfium-runtime/licenses /app/share/licenses/flectar-mail/pdfium/ sources: # Package the exact checkout selected by the release workflow. - type: dir path: ../.. skip: - .artifacts - .devcontainer - .env - .flatpak-builder - .git - .idea - .Trash-* - .vscode - libs - target - tmp - cargo-sources.json # Include PDF preview in the standalone alpha bundle. These are the # archives scripts/stage-pdfium.py pins for linux-x64 and linux-arm64. - type: archive url: https://github.com/bblanchon/pdfium-binaries/releases/download/chromium%2F8044/pdfium-linux-x64.tgz sha256: eb142f416aed3a72fc5a02dbd5884868a16cb99dc0cf53e6bdd64afbf67b05f4 dest: pdfium-runtime strip-components: 0 only-arches: - x86_64 - type: archive url: https://github.com/bblanchon/pdfium-binaries/releases/download/chromium%2F8044/pdfium-linux-arm64.tgz sha256: e98400ef5f005f27cfba5c14f72d464e25187298f04950de46646033cf24cef0 dest: pdfium-runtime strip-components: 0 only-arches: - aarch64