Skip to content

Commit

Permalink
build: update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Oct 12, 2023
1 parent 8d52c37 commit a67cbf1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;<link[^>]*>;;g' temp/aio.html
echo 'sed 2'
sed -i 's^\\^\\\\^g' temp/all.css
echo 'sed 3'
sed -i "s^<\!--allcss-->^<style>$(cat temp/all.css)</style>^g" temp/aio.html
echo 'sed 4'
sed -i 's;<script src="player.js"></script>;;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-->@<script>$(cat temp/player.pathced.js)</script>@g" temp/aio.html
sed -i 's^~^\\~^g' temp/player.pathced.js
sed -i "s~<\!--playerjs-->~<script>$(cat temp/player.pathced.js)</script>~g" temp/aio.html

# Build public
cp -f temp/index.html public/index.html
Expand Down

0 comments on commit a67cbf1

Please sign in to comment.