From a67cbf1b358cc27b6f5161c945f77795fe4e467a Mon Sep 17 00:00:00 2001 From: WakelessSloth56 Date: Thu, 12 Oct 2023 22:39:58 +0800 Subject: [PATCH] build: update build script --- build.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/build.sh b/build.sh index 4858bbc..ba9fc81 100644 --- a/build.sh +++ b/build.sh @@ -37,20 +37,14 @@ html-minifier-terser --minify-js --collapse-whitespace public/index.html >temp/i # Build AIO html cp temp/index.html temp/aio.html -echo 'sed 1' sed -i 's;]*>;;g' temp/aio.html -echo 'sed 2' sed -i 's^\\^\\\\^g' temp/all.css -echo 'sed 3' sed -i "s^<\!--allcss-->^^g" temp/aio.html -echo 'sed 4' sed -i 's;;;g' temp/aio.html -echo 'sed 5' sed 's^\\^\\\\^g' temp/player.js >temp/player.pathced.js -echo 'sed 6' sed -i 's^\&^\\&^g' temp/player.pathced.js -echo 'sed 7' -sed -i "s@<\!--playerjs-->@@g" temp/aio.html +sed -i 's^~^\\~^g' temp/player.pathced.js +sed -i "s~<\!--playerjs-->~~g" temp/aio.html # Build public cp -f temp/index.html public/index.html