0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00
penpot/backend/scripts/build

23 lines
563 B
Text
Raw Normal View History

#!/usr/bin/env bash
2021-03-31 01:32:57 -05:00
CURRENT_VERSION=$1;
2021-03-31 01:32:57 -05:00
set -ex
2021-03-31 01:32:57 -05:00
rm -rf target;
mkdir -p target/classes;
mkdir -p target/dist;
echo "$CURRENT_VERSION" > target/classes/version.txt;
cp ../CHANGES.md target/classes/changelog.md;
2021-03-31 01:32:57 -05:00
clojure -T:build jar;
mv target/penpot.jar target/dist/penpot.jar
cp scripts/run.template.sh target/dist/run.sh;
cp scripts/manage.py target/dist/manage.py
chmod +x target/dist/run.sh;
chmod +x target/dist/manage.py
2021-03-31 01:32:57 -05:00
# Prefetch
bb ./scripts/prefetch-templates.clj resources/app/onboarding.edn builtin-templates/
cp -r builtin-templates target/dist/