build
This commit is contained in:
parent
d7e94576e5
commit
0d0310cea7
2 changed files with 25 additions and 11 deletions
25
build.py
Executable file
25
build.py
Executable 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")),
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue