From 448a209eb4623cac6ba7321e6f68a73ecb2b60f2 Mon Sep 17 00:00:00 2001 From: raoulvdberge Date: Sun, 24 Dec 2023 00:50:49 +0100 Subject: [PATCH] Add utility to build locally --- .gitignore | 4 ++++ build-local.sh | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100755 build-local.sh diff --git a/.gitignore b/.gitignore index bed29cfa43c..7992399116d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,7 @@ node_modules/ dist/ output/ .idea +.env +refinedsites-*-all.jar +gh-**/ +.parcel-cache/ \ No newline at end of file diff --git a/build-local.sh b/build-local.sh new file mode 100755 index 00000000000..1a4dbab47d8 --- /dev/null +++ b/build-local.sh @@ -0,0 +1,10 @@ +refinedSitesVersion="0.1.2" + +if [ ! -f "refinedsites-$refinedSitesVersion-all.jar" ]; then + echo "downloading Refined Sites $refinedSitesVersion" + wget "https://github.com/refinedmods/refinedsites/releases/download/v$refinedSitesVersion/refinedsites-$refinedSitesVersion-all.jar" +fi + +export "$(cat .env | xargs)" + +java -jar refinedsites-$refinedSitesVersion-all.jar .