mirror of
https://github.com/penpot/penpot.git
synced 2025-01-06 14:50:20 -05:00
cc6e071f48
And replace it with a commandline call to nodejs for execute a custom svgo based command line script.
28 lines
747 B
Bash
Executable file
28 lines
747 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
CURRENT_VERSION=$1;
|
|
|
|
set -ex
|
|
|
|
rm -rf target;
|
|
mkdir -p target/classes;
|
|
mkdir -p target/dist;
|
|
mkdir -p target/dist/scripts;
|
|
|
|
echo "$CURRENT_VERSION" > target/classes/version.txt;
|
|
cp ../CHANGES.md target/classes/changelog.md;
|
|
|
|
clojure -T:build jar;
|
|
mv target/penpot.jar target/dist/penpot.jar
|
|
cp resources/log4j2.xml target/dist/log4j2.xml
|
|
cp scripts/run.template.sh target/dist/run.sh;
|
|
cp scripts/manage.py target/dist/manage.py
|
|
cp scripts/svgo-cli.js target/dist/scripts/;
|
|
chmod +x target/dist/run.sh;
|
|
chmod +x target/dist/manage.py
|
|
|
|
# Prefetch templates
|
|
rm -rf builtin-templates;
|
|
mkdir builtin-templates;
|
|
bb ./scripts/prefetch-templates.clj resources/app/onboarding.edn builtin-templates/
|
|
cp -r builtin-templates target/dist/
|