From c264564bb88f98edecc0b01a6f6f4852e94fadc8 Mon Sep 17 00:00:00 2001 From: tilt12345678 Date: Sun, 10 Nov 2024 15:10:00 +0100 Subject: [PATCH] fix problem with building uncompressed source --- src/build.sh | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/build.sh b/src/build.sh index e4f7777..0811388 100755 --- a/src/build.sh +++ b/src/build.sh @@ -39,30 +39,26 @@ rm -f "$jsdir"/myplayer.min.js for js in \ ../mediaelement/build/mediaelement-and-player.min.js \ - ../mediaelement-plugins/dist/playlist/playlist.min.js + ../mediaelement-plugins/dist/playlist/playlist.min.js \ + ../jsmediatags/dist/jsmediatags.js do echo "INFO: Appending $js ..." >&2 cat $js >> "$jsdir"/myplayer.min.js done -for js in \ - id3-minimized.js \ - player.js -do - echo "INFO: Compressing $js ..." >&2 - yui-compressor "$js" >> "$jsdir"/myplayer.min.js -done +echo "INFO: Compressing player.js ..." >&2 +yui-compressor player.js >> "$jsdir"/myplayer.min.js chmod 644 "$jsdir"/myplayer.min.js echo "INFO: Javascript source was minimized to $jsdir/myplayer.min.js" >&2 -rm -f ../js/myplayer.js +rm -f "$jsdir"/myplayer.js for js in \ ../mediaelement/build/mediaelement-and-player.js \ ../mediaelement-plugins/dist/playlist/playlist.js \ - id3-minimized.js \ + ../jsmediatags/dist/jsmediatags.min.js \ player.js do echo "INFO: Appending $js ..." >&2