From 327e4b6347f756daaa931aae49fb1ba9bca62c99 Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Fri, 6 Jan 2023 01:21:20 -0500 Subject: [PATCH] [+] Preview build script --- scripts/preview.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/preview.sh diff --git a/scripts/preview.sh b/scripts/preview.sh new file mode 100644 index 00000000..c776926e --- /dev/null +++ b/scripts/preview.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +cd dist + +# Download web tarball +curl -L "https://github.com/one-among-us/web/tarball/gh-pages" --output web.tgz + +# Extract tarball +tar -xf web.tgz --strip-components=1 + +# Replace data host url to "/" +sed -i 's/"https:\/\/data.one-among.us"/window.location.origin/g' ./**/*.js