Skip to content

Instantly share code, notes, and snippets.

@doitwithnotepad
Created October 7, 2024 12:25
Show Gist options
  • Save doitwithnotepad/fe515d27cb15a4c1497a19e724fdadb1 to your computer and use it in GitHub Desktop.
Save doitwithnotepad/fe515d27cb15a4c1497a19e724fdadb1 to your computer and use it in GitHub Desktop.
Install Sparrow Wallet on Alpine Linux
  1. Install dependencies
doas apk add gcompat git openjdk21
  1. Clone Sparrow repository
git clone --recursive https://github.com/sparrowwallet/sparrow.git && cd sparrow
  1. Patch it
--- a/build.gradle
+++ b/build.gradle
@@ -147,7 +147,8 @@
         fork = true
         compilerArgs.addAll(["--add-exports", "org.controlsfx.controls/impl.org.controlsfx.skin=com.sparrowwallet.sparrow",
                              "--add-exports", "javafx.graphics/com.sun.glass.ui=com.sparrowwallet.sparrow",
-                             "--add-exports", "javafx.graphics/com.sun.javafx.application=com.sparrowwallet.sparrow"])
+                             "--add-exports", "javafx.graphics/com.sun.javafx.application=com.sparrowwallet.sparrow",
+                             "--enable-preview"])
     }
 }

@@ -189,7 +190,9 @@
                                  "--add-opens=java.base/java.net=com.sparrowwallet.sparrow",
                                  "--add-opens=java.base/java.io=com.google.gson",
                                  "--add-opens=java.smartcardio/sun.security.smartcardio=com.sparrowwallet.sparrow",
-                                 "--add-reads=kotlin.stdlib=kotlinx.coroutines.core"]
+                                 "--add-reads=kotlin.stdlib=kotlinx.coroutines.core",
+                                 "--enable-preview",
+                                 "-Dprism.order=sw"]

     if(os.macOsX) {
         applicationDefaultJvmArgs += ["-Dprism.lcdtext=false", "-Xdock:name=Sparrow", "-Xdock:icon=/Users/scy/git/sparrow/src/main/resources/sparrow-large.png",
  1. Build distribution tar file
./gradlew distTar
  1. Install it
doas tar xf build/distributions/sparrow-*.tar -C /opt
doas mv /opt/sparrow-* /opt/sparrow
  1. Execute Sparrow Wallet
/opt/sparrow/bin/sparrow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment