Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#!/bin/sh
#!/bin/sh -xe

set -xe
QROPTS="--verbose --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"
' _
1 change: 0 additions & 1 deletion doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down