add render script for reproducible screenshots
This commit is contained in:
22
scripts/generate.sh
Executable file
22
scripts/generate.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
# note: this script is not portable; to be run in the monobiome scripts/
|
||||
# directory (notice the `rm` invocations)
|
||||
|
||||
rm -rf app-config/*
|
||||
symconf -c templates/ generate -o app-config
|
||||
|
||||
cd app-config/firefox
|
||||
shopt -s nullglob
|
||||
for f in *; do
|
||||
[[ -f $f ]] || continue
|
||||
name=${f##*/}; name=${name%.*}
|
||||
bsdtar -cf "$name.xpi" --format zip -s ':^.*$:manifest.json:' -- "$f"
|
||||
done
|
||||
|
||||
# consolidate firefox artifacts
|
||||
rm *.*-manifest.json
|
||||
rm hard-* soft-*
|
||||
rm *-light.*
|
||||
perl-rename 's/^([^-.]+)-([^-.]+)-([^-.]+)-([^-.]+)\..*\.([^-.]+)-manifest\.xpi/$2-$3-$5.xpi/' *
|
||||
perl-rename 's/^([^-.]+)-([^-.]+)-auto\.xpi/$1-$2.xpi/' *
|
||||
|
||||
Reference in New Issue
Block a user