From 10a80dd546cf1631b8ca32c1033aa7a2a4ac771c Mon Sep 17 00:00:00 2001 From: Dwight Spencer Date: Tue, 26 May 2026 01:17:53 -0400 Subject: [PATCH 1/6] Refactor build.sh for improved QR code generation Refactor build script to use xargs for parallel processing and SVG output. --- build.sh | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/build.sh b/build.sh index 4ba1a62..1c1613f 100755 --- a/build.sh +++ b/build.sh @@ -1,11 +1,9 @@ -#!/bin/sh +#!/bin/sh -xe -set -xe +QROPTS="-background=00000000 --foreground=FFFFFFFF" -for line in $(cat wallets.txt); do - label=$(echo $line | cut -d: -f1) - address=$(echo $line | cut -d: -f2) - qrencode --verbose -s 10 --background=00000000 --foreground=FFFFFFFF -o $label.png $address -done - -inkscape -w 1024 --export-type="png" donate.svg +xargs -a wallets.txt -P4 -n1 -- /usr/bin/env QROPTS=$QROPTS sh -c ' + label="${1%%:*}"; address="${1#*:}"; + qrencode -t SVG --svg-path-width=1024 $QROPTS -o "$label.svg" "$address" + qrencode -s 10 $QROPTS -o "$label.png" "$address") +' _ From 9311913af9c518327c685381c4cce6c4d86a624b Mon Sep 17 00:00:00 2001 From: Dwight Spencer Date: Tue, 26 May 2026 01:22:15 -0400 Subject: [PATCH 2/6] Change QROPTS to include verbose option --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 1c1613f..d220633 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,6 @@ #!/bin/sh -xe -QROPTS="-background=00000000 --foreground=FFFFFFFF" +QROPTS="-verbose -background=00000000 --foreground=FFFFFFFF" xargs -a wallets.txt -P4 -n1 -- /usr/bin/env QROPTS=$QROPTS sh -c ' label="${1%%:*}"; address="${1#*:}"; From d6058c8805ecf2b9c31ee851e701c27123656b20 Mon Sep 17 00:00:00 2001 From: Dwight Spencer Date: Tue, 26 May 2026 01:23:11 -0400 Subject: [PATCH 3/6] Update doc.md to remove inkscape reference Removed inkscape installation requirement from documentation. --- doc.md | 1 - 1 file changed, 1 deletion(-) diff --git a/doc.md b/doc.md index 15c331f..638bd0d 100644 --- a/doc.md +++ b/doc.md @@ -7,7 +7,6 @@ The sole purpose of all these files and scripts is to generate [donate.png](./do To regenerate the image just run `./build.sh` script. It uses some external program that you will have to install manually: - [qrencode](https://fukuchi.org/works/qrencode/) -- [inkscape](https://inkscape.org/) ## TODO From 8dd10dc272bd954f3b65935409aeb6e16565d462 Mon Sep 17 00:00:00 2001 From: Dwight Spencer Date: Tue, 26 May 2026 01:24:36 -0400 Subject: [PATCH 4/6] Fix QROPTS flag by removing redundant hyphen --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index d220633..190c8b6 100755 --- a/build.sh +++ b/build.sh @@ -1,6 +1,6 @@ #!/bin/sh -xe -QROPTS="-verbose -background=00000000 --foreground=FFFFFFFF" +QROPTS="--verbose --background=00000000 --foreground=FFFFFFFF" xargs -a wallets.txt -P4 -n1 -- /usr/bin/env QROPTS=$QROPTS sh -c ' label="${1%%:*}"; address="${1#*:}"; From b9f824aaa65c5dadacce07dd18f86f6d18bc8d7c Mon Sep 17 00:00:00 2001 From: Dwight Spencer Date: Tue, 26 May 2026 01:26:37 -0400 Subject: [PATCH 5/6] Fix syntax error in build.sh for QR code generation --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 190c8b6..bf4831b 100755 --- a/build.sh +++ b/build.sh @@ -5,5 +5,5 @@ QROPTS="--verbose --background=00000000 --foreground=FFFFFFFF" xargs -a wallets.txt -P4 -n1 -- /usr/bin/env QROPTS=$QROPTS sh -c ' label="${1%%:*}"; address="${1#*:}"; qrencode -t SVG --svg-path-width=1024 $QROPTS -o "$label.svg" "$address" - qrencode -s 10 $QROPTS -o "$label.png" "$address") + qrencode -s 10 $QROPTS -o "$label.png" "$address" ' _ From e045230a2792be737304ce059c92661fbab2bf6d Mon Sep 17 00:00:00 2001 From: Dwight Spencer Date: Tue, 26 May 2026 01:28:41 -0400 Subject: [PATCH 6/6] Fix syntax error in build.sh for QR code generation --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index bf4831b..a9868b4 100755 --- a/build.sh +++ b/build.sh @@ -2,7 +2,7 @@ QROPTS="--verbose --background=00000000 --foreground=FFFFFFFF" -xargs -a wallets.txt -P4 -n1 -- /usr/bin/env QROPTS=$QROPTS sh -c ' +xargs -a wallets.txt -P4 -n1 -- /usr/bin/env QROPTS="$QROPTS" sh -c ' label="${1%%:*}"; address="${1#*:}"; qrencode -t SVG --svg-path-width=1024 $QROPTS -o "$label.svg" "$address" qrencode -s 10 $QROPTS -o "$label.png" "$address"