summaryrefslogtreecommitdiff
path: root/setup.sh
blob: bb3c7c0243e2e69c0daa132e416117aed164294b (plain)
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
#!/bin/bash

export THREADS=${THREADS:-$(nproc)}

cd $(dirname $0)

git submodule update --init

pushd unrpyc
make install
popd

./vencode.sh

trim() {
  convert -trim "$@" "$@"
  optipng -o7 "$@"
}

trim www/dump/ui/bt-cf-unchecked.png
trim www/dump/ui/bt-cf-checked.png

convert www/dump/ui/icon.png -resize 256x256 -transparent white www/favicon.ico

./iencode.sh
./aencode.sh