logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: cac0ce5dcf3401da474a69388e9893f18a55a54d
parent: d715f648e317b9f3caf1c2e89b6b8adeb361c912
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun,  1 Apr 2018 17:23:51 +0200

build.sh: Make the target dir configurable

Diffstat:

Mbuild.sh9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/build.sh b/build.sh @@ -1,7 +1,8 @@ #!/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"