1
0
mirror of https://github.com/one-among-us/data.git synced 2024-11-29 22:46:50 +08:00
one-among-us-data/scripts/preview.sh

14 lines
298 B
Bash
Raw Normal View History

2023-01-06 14:21:20 +08:00
#!/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
2023-01-06 14:27:09 +08:00