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