[+] Preview build script

pull/50/head
Azalea Gui 2023-01-06 01:21:20 -05:00
parent 5e5d183d98
commit 327e4b6347
No known key found for this signature in database
GPG Key ID: E289FAC0DA92DD2B
1 changed files with 12 additions and 0 deletions

12
scripts/preview.sh Normal file
View File

@ -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