FloatingGhost
076f7534db
don't replace my history re-add CI lint stuff upload to $build-tag change SW path use default SW fix notifications streams use akkoma hashtag schema add local intl
18 lines
721 B
Bash
Executable file
18 lines
721 B
Bash
Executable file
#!/bin/sh
|
||
TARGET="${TARGET:-./distribution}" # Where pleroma’s repository is sitting
|
||
mkdir -p $TARGET/emoji
|
||
|
||
die() {
|
||
echo "Die: $@"
|
||
exit 1
|
||
}
|
||
|
||
[ -d "${TARGET}" ] || die "${TARGET} directory is missing, are you sure TARGET is set to a pleroma repository? (Info: TARGET=${TARGET} )"
|
||
|
||
yarn install -D || die "Installing dependencies via yarn failed"
|
||
|
||
rm -rf public/packs public/assets
|
||
env -i "PATH=$PATH" npm run build:development || die "Building the frontend failed"
|
||
rm -rf "${TARGET}/packs" || die "Removing old assets in priv/static/packs failed"
|
||
cp -r public/packs "${TARGET}/packs" || die "Copying new assets in priv/static/packs failed"
|
||
rm -rf "${TARGET}/emoji/*.svg" || die "Removing the old emoji assets failed"
|