This commit is contained in:
Marc Beninca 2025-02-22 21:55:09 +01:00
parent d7e94576e5
commit 0d0310cea7
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 25 additions and 11 deletions

25
build.py Executable file
View file

@ -0,0 +1,25 @@
#! /usr/bin/env python3
"""Build resume."""
from pathlib import Path
from rwx import fs
from rwx.ps import run
if __name__ == "__main__":
root = Path(__file__).resolve().parent
out = root / "out"
web = out / "web"
fs.wipe(out)
fs.make_directory(web / "img")
run(
"qrencode",
("--background", "00000000"),
("--foreground", "000000FF"),
("--level", "L"),
("--margin", "1"),
("--read-from", str(root / "vcard.vcf")),
("--size", "4"),
("-t", "SVG"),
("--output", str(root / "img" / "vcard.svg")),
)

View file

@ -1,11 +0,0 @@
#! /usr/bin/env sh
cat "vcard.vcf" |
qrencode \
--background "00000000" \
--foreground "000000FF" \
--level "L" \
--margin "1" \
--size "4" \
-t "SVG" \
--output "img/vcard.svg"