diff options
Diffstat (limited to 'cmd/rescribe/xyz.rescribe.rescribe.yml')
-rw-r--r-- | cmd/rescribe/xyz.rescribe.rescribe.yml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/cmd/rescribe/xyz.rescribe.rescribe.yml b/cmd/rescribe/xyz.rescribe.rescribe.yml new file mode 100644 index 0000000..85ad046 --- /dev/null +++ b/cmd/rescribe/xyz.rescribe.rescribe.yml @@ -0,0 +1,42 @@ +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=fallback-x11 + - --share=ipc # needed for X11 + - --socket=wayland + - --device=dri # OpenGL + - --share=network # Used for google book downloading + - --filesystem=home +command: rescribe +modules: + - name: rescribe + buildsystem: simple + build-commands: + - cd cmd/rescribe && make dist/linux/rescribe-nogenerate + - install -Dm00755 cmd/rescribe/dist/linux/rescribe-nogenerate $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: dir # not git 'til the makefile with nogenerate rule there + path: ../.. + - 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 + - type: file + url: https://rescribe.xyz/rescribe/embeds/tesseract-linux-v5.0.0-alpha.20210510.zip + sha256: 81cfba632b8aaf0a00180b1aa62d357d50f343b0e9bd51b941ee14c289ccd889 + - type: file + url: https://rescribe.xyz/rescribe/embeds/tessdata.20220322.zip + sha256: 725fd570a3c3dc0eba9463248ce47a8646db8bafb198d428d6bb8f0be18540ee |