From bbb3d86e16c9c07669e23e978572aeadb92d843c Mon Sep 17 00:00:00 2001 From: tilt12345678 Date: Mon, 11 Nov 2024 02:36:26 +0100 Subject: [PATCH] use minify --- src/build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/build.sh b/src/build.sh index 0811388..ec764c6 100755 --- a/src/build.sh +++ b/src/build.sh @@ -12,8 +12,8 @@ if ! cd "$dir" ; then elif ! mkdir -p "$jsdir" ; then echo "ERROR: Could not create directory $jsdir; aborted." >&2 ; exit 1 ; -elif ! type yui-compressor > /dev/null ; then - echo "ERROR: Executable \"yui-compressor\" not found in PATH; aborted." >&2 ; +elif ! type minify > /dev/null ; then + echo "ERROR: Executable \"minify\" not found in PATH; aborted." >&2 ; exit 1 ; fi @@ -47,7 +47,7 @@ do done echo "INFO: Compressing player.js ..." >&2 -yui-compressor player.js >> "$jsdir"/myplayer.min.js +minify player.js >> "$jsdir"/myplayer.min.js chmod 644 "$jsdir"/myplayer.min.js