app-id: io.appflowy.AppFlowy
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
command: appflowy_flutter
separate-locales: false
finish-args:
  - --share=ipc
  - --socket=x11
  - --socket=fallback-x11
  - --socket=wayland
  - --socket=pulseaudio
  - --share=network
  - --device=all
modules:
  - name: appflowy
    buildsystem: simple
    build-commands:
      # - ls .
      - cp -r appflowy /app/appflowy
      - chmod +x /app/appflowy/appflowy_flutter
      - install -Dm644 logo.svg /app/share/icons/hicolor/scalable/apps/io.appflowy.AppFlowy.svg
      - mkdir /app/bin
      - ln -s /app/appflowy/appflowy_flutter /app/bin/appflowy_flutter
      - install -Dm644 io.appflowy.AppFlowy.desktop /app/share/applications/io.appflowy.AppFlowy.desktop
    sources:
      - type: archive
        url: https://github.com/AppFlowy-IO/appflowy/releases/download/0.0.2/AppFlowy-linux-x86.tar.gz
        sha256: b0dbe669bb9f34a65171adecaf61b02578bab5214d18a54009f0e4ec10665711
        dest: appflowy
      - type: file
        path: io.appflowy.AppFlowy.desktop
      - type: file
        path: logo.svg

