- Install dependencies
doas apk add gcompat git openjdk21
- Clone Sparrow repository
git clone --recursive https://github.com/sparrowwallet/sparrow.git && cd sparrow
- 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",
- Build distribution tar file
- Install it
doas tar xf build/distributions/sparrow-*.tar -C /opt
doas mv /opt/sparrow-* /opt/sparrow
- Execute Sparrow Wallet