-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
36 lines (30 loc) · 852 Bytes
/
Taskfile.yml
File metadata and controls
36 lines (30 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# https://taskfile.dev
version: "3"
vars:
LAYOUT_SVG: all_layers.svg
tasks:
images:
desc: Builds all layer images as svg and png
dir: images
cmds:
- task: single-layer-svg
vars: { LAYER: 3 }
- task: single-layer-svg
vars: { LAYER: 4 }
- task: svg2png
vars: { LAYER: 3 }
- task: svg2png
vars: { LAYER: 4 }
single-layer-svg:
dir: images
cmds:
# In all_layers.svg all layers are by default hidden. This will set one of them to display again.
- echo -e '/inkscape:label="Ebene {{.LAYER}}"\n.+1\ns/none/inline/g\nw layer{{.LAYER}}.svg' | ed all_layers.svg
svg2png:
dir: images
cmds:
- inkscape --export-filename="layer{{.LAYER}}.png" --export-height=400 "layer{{.LAYER}}.svg"
build:
dir: windows
cmds:
- python create_ahk.py