Commit cac0ce5d authored by Haelwenn's avatar Haelwenn

build.sh: Make the target dir configurable

parent d715f648
#!/bin/sh
# Assuming pleroma sits in the upper directory under the dir "pleroma"
TARGET="../pleroma" # Where pleroma’s repository is sitting
rm -rf public/packs public/assets
env -i "PATH=$PATH" npm run build
cp public/assets/sw.js ../pleroma/priv/static/sw.js
rm -rf ../pleroma/priv/static/packs
cp -r public/packs ../pleroma/priv/static/packs
cp public/assets/sw.js "${TARGET}/priv/static/sw.js"
rm -rf "${TARGET}/priv/static/packs"
cp -r public/packs "${TARGET}/priv/static/packs"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment