mirror of
https://github.com/one-among-us/data.git
synced 2024-11-22 19:24:51 +08:00
[+] Preview build script
This commit is contained in:
parent
5e5d183d98
commit
327e4b6347
12
scripts/preview.sh
Normal file
12
scripts/preview.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user