Verified Commit f0652f3f authored by Haelwenn's avatar Haelwenn
Browse files

build.sh: Make the target dir configurable

parent 7ac9c595
#!/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
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
env -i "PATH=$PATH" npm run build
cp public/assets/sw.js "${TARGET}/priv/static/sw.js"
rm -rf "${TARGET}/priv/static/packs"
cp -r public/packs "${TARGET}/priv/static/packs"
Supports Markdown
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