♻️ Remove all usage of graalvm js runtime

And replace it with a commandline call to nodejs
for execute a custom svgo based command line script.
This commit is contained in:
Andrey Antukh 2024-10-22 17:11:03 +02:00
parent 15b33488c6
commit cc6e071f48
17 changed files with 576 additions and 40723 deletions

View file

@ -7,6 +7,8 @@ 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;
@ -15,6 +17,7 @@ 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

214
backend/scripts/svgo-cli.js Normal file

File diff suppressed because one or more lines are too long