4127e3de64
borrowed build scritps etc from promnesia
23 lines
419 B
Bash
Executable file
23 lines
419 B
Bash
Executable file
#!/bin/bash
|
|
set -eux
|
|
|
|
|
|
VERSION="$(git tag --points-at)"
|
|
if [[ ! -n $VERSION ]]; then
|
|
>&2 echo "Dirty build!"
|
|
VERSION="$(git rev-parse --short HEAD)"
|
|
fi
|
|
|
|
|
|
function rebuild {
|
|
local res="$1"
|
|
local browser="$2"
|
|
./build --target "$browser" --release --lint
|
|
zip -r -j "$res" dist/*
|
|
unzip -l "$res"
|
|
}
|
|
|
|
for browser in "chrome" "firefox"; do
|
|
rebuild "grasp-$VERSION-$browser.zip" "$browser"
|
|
done
|