File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
22
3+ JSONURL_ORG_CLONE=' https://github.com/jsonurl/jsonurl.github.io.git'
4+ SCRIPT_DIR=` dirname " $0 " `
5+ VERSION_SH=" $SCRIPT_DIR /version_snapshot.sh"
6+
7+ git clone " $JSONURL_ORG_CLONE " dist
8+ test -x " $VERSION_SH " && " $VERSION_SH "
39npm run build
10+ cd ./dist
11+
12+ sed -i -zre ' s/<script\s+src="https:\/\/cdn.jsdelivr.net\/npm\/@jsonurl[^"]*"\s+integrity="[^"]*"\s+crossorigin="[^"]*">/<script src="jsonurl.js">/' index.html
13+
14+ sed -e ' s/src="jsonurl.js"/src="jsonurl.noproto.js"/' index.html > index-noproto.html
15+
16+ sed -i -re ' s/<a title="GitHub" href="https:\/\/github.com\/jsonurl">GitHub/<a title="No Prototype Modification" href="index-noproto.html">NoProto/' index.html
17+
18+
419
5- cat > dist/_headers << EOT ;
6- /*.js
7- Access-Control-Allow-Origin: *
8- EOT
20+ # cat > dist/_headers <<EOT;
21+ # /*.js
22+ # Access-Control-Allow-Origin: *
23+ # EOT
924
You can’t perform that action at this time.
0 commit comments