0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 16:00:19 -05:00
penpot/frontend/scripts/build

18 lines
523 B
Text
Raw Normal View History

2021-03-31 01:32:57 -05:00
#!/usr/bin/env bash
set -ex
CURRENT_VERSION=$1;
CURRENT_HASH=${CURRENT_HASH:-$(git rev-parse --short HEAD)};
2021-03-31 01:32:57 -05:00
EXTRA_PARAMS=$SHADOWCLJS_EXTRA_PARAMS;
yarn install || exit 1;
npx gulp clean || exit 1;
clojure -J-Xms100M -J-Xmx800M -J-XX:+UseSerialGC -M:dev:shadow-cljs release main --config-merge "{:release-version \"${CURRENT_HASH}\"}" $EXTRA_PARAMS || exit 1
2021-03-31 01:32:57 -05:00
npx gulp build || exit 1;
npx gulp dist:clean || exit 1;
npx gulp dist:copy || exit 1;
sed -i -re "s/\%version\%/$CURRENT_VERSION/g" ./target/dist/index.html;