app-id: xyz.rescribe.rescribe runtime: org.freedesktop.Platform runtime-version: '22.08' sdk: org.freedesktop.Sdk sdk-extensions: org.freedesktop.Sdk.Extension.golang build-options: append-path: /usr/lib/sdk/golang/bin finish-args: - --socket=x11 - --share=ipc # needed for X11 #- --socket=wayland # wayland is not stable on fyne yet, when it is add this and the wayland tag to 'go build' - --device=dri # OpenGL - --share=network # Used for google book downloading - --filesystem=home command: rescribe modules: - name: rescribe buildsystem: simple build-commands: - cd cmd/rescribe && GOOS=linux GOARCH=amd64 go build -tags embed . - install -Dm00755 cmd/rescribe/rescribe $FLATPAK_DEST/bin/rescribe-bin - install -Dm00644 cmd/rescribe/icon.256.png $FLATPAK_DEST/share/icons/hicolor/256x256/apps/xyz.rescribe.rescribe.png - install -Dm00644 cmd/rescribe/xyz.rescribe.rescribe.desktop $FLATPAK_DEST/share/applications/xyz.rescribe.rescribe.desktop - install -Dm00644 cmd/rescribe/xyz.rescribe.rescribe.appdata.xml $FLATPAK_DEST/share/appdata/xyz.rescribe.rescribe.appdata.xml - printf '#!/bin/sh\nTMPDIR=$XDG_RUNTIME_DIR rescribe-bin\n' > $FLATPAK_DEST/bin/rescribe - chmod 755 $FLATPAK_DEST/bin/rescribe sources: - type: git url: https://github.com/rescribe/bookpipeline branch: master - type: archive url: https://rescribe.xyz/rescribe/modules-20221030-3a6024.tar.xz sha256: 98fdbe455f7cb916cda570d0a30fca0de331809d4549e655e25b95e9be119856 strip-components: 0 - type: file url: https://rescribe.xyz/rescribe/embeds/getgbook-linux-cac42fb.zip sha256: c3b40a1c13da613d383f990bda5dd72425a7f26b89102d272a3388eb3d05ddb6 dest: cmd/rescribe - type: file url: https://rescribe.xyz/rescribe/embeds/tesseract-linux-v5.0.0-alpha.20210510.zip sha256: 81cfba632b8aaf0a00180b1aa62d357d50f343b0e9bd51b941ee14c289ccd889 dest: cmd/rescribe - type: file url: https://rescribe.xyz/rescribe/embeds/tessdata.20220322.zip sha256: 725fd570a3c3dc0eba9463248ce47a8646db8bafb198d428d6bb8f0be18540ee dest: cmd/rescribe