Skip to content

Instantly share code, notes, and snippets.

@DeepDoge
Forked from ziqiq/com.sparrowwallet.Sparrow.md
Last active September 16, 2024 21:37
Show Gist options
  • Save DeepDoge/cdc2f281ded1ff7d8bbedb09ca471f43 to your computer and use it in GitHub Desktop.
Save DeepDoge/cdc2f281ded1ff7d8bbedb09ca471f43 to your computer and use it in GitHub Desktop.
Sparrow wallet flatpak manifest

Installation for End User

  1. Install flatpak builder
flatpak install --user org.flatpak.Builder
  1. Build and install the Sparrow manifest
flatpak run org.flatpak.Builder --user --install builddir com.sparrowwallet.Sparrow.yml

This will create two directories which could be removed later:

  • .flatpak-builder dependency cache
  • builddir the files in flatpak app image

Note:

  • The Sparrow home directory is ~/.var/app/com.sparrowwallet.Sparrow/.sparrow. You might want to copy the existing data file from ~/.sparrow into it (or create a symbolic link).
id: com.sparrowwallet.Sparrow
branch: 1.9.1
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: Sparrow
modules:
- 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
- name: Sparrow
buildsystem: simple
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/1.9.1/sparrow-1.9.1-x86_64.tar.gz
sha256: 6f53888b348c4ceb4b337fd11620493d26e48ff0b4774b39820714c2309d041a
- type: archive
only-arches: ["aarch64"]
url: https://github.com/sparrowwallet/sparrow/releases/download/1.9.1/sparrow-1.9.1-aarch64.tar.gz
sha256: a85963df358008fc6d5d5d75318ddff6b0904fa92d82028c96f1fedd6593fc02
- 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;
finish-args:
- --socket=x11
- --share=network
- --device=all
- --persist=.sparrow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment