Skip to content

Instantly share code, notes, and snippets.

@storopoli
Forked from ziqiq/com.sparrowwallet.Sparrow.md
Last active September 20, 2024 11:23
Show Gist options
  • Save storopoli/0a261ba4d9f1be0f37c834275309abe7 to your computer and use it in GitHub Desktop.
Save storopoli/0a261ba4d9f1be0f37c834275309abe7 to your computer and use it in GitHub Desktop.
Sparrow wallet flatpak manifest
# run me with:
# flatpak-builder --force-clean --user --install-deps-from=flathub-verified --install builddir com.sparrowwallet.Sparrow.yml
id: com.sparrowwallet.Sparrow
branch: 2.0.0
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: Sparrow
modules:
- name: Sparrow
buildsystem: simple
build-options:
env:
_JAVA_OPTIONS: -Dprism.order=sw
build-commands:
- install -D lib/Sparrow.png share/icons/hicolor/256x256/apps/com.sparrowwallet.Sparrow.png
- cp -rT . /app
sources:
- type: archive
only-arches: ["x86_64"]
url: https://github.com/sparrowwallet/sparrow/releases/download/2.0.0/sparrow-2.0.0-x86_64.tar.gz
sha256: 678ac0dca39b3c03ae25e23e4f3c986970f2a6d0310405b36090d3a6552fc39d
- type: archive
only-arches: ["aarch64"]
url: https://github.com/sparrowwallet/sparrow/releases/download/2.0.0/sparrow-2.0.0-aarch64.tar.gz
sha256: dd264119bf5134a1913870fd8ad1f24c982f97ac8096fbba897a2419605ef9f9
- type: inline
dest: share/applications/
dest-filename: com.sparrowwallet.Sparrow.desktop
contents: |
[Desktop Entry]
Name=Sparrow
Exec=Sparrow
Type=Application
Icon=com.sparrowwallet.Sparrow
Categories=Network;Finance;Java;
- name: libusb
buildsystem: autotools
config-opts:
- --disable-static
sources:
- type: archive
url: https://github.com/libusb/libusb/releases/download/v1.0.27/libusb-1.0.27.tar.bz2
sha256: ffaa41d741a8a3bee244ac8e54a72ea05bf2879663c098c82fc5757853441575
finish-args:
- --socket=x11
# Wayland access
- --socket=wayland
- --share=network
- --device=dri
- --device=all
- --env=DISPLAY=:0
# Needs to save files locally
- --persist=.sparrow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment