Skip to content

Commit 7b73985

Browse files
committed
fix: fix compiling issue
1 parent ec846e4 commit 7b73985

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build_injector.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/sh
22

3-
BASE64BUNDLE="return '$(base64 dist/index.js)'"
3+
BASE64BUNDLE="return '$(base64 < dist/index.js)'"
44
VERSION="$(grep version package.json | sed -e 's/..version....//g' -e 's/...$//g')"
55
COMMITHASH="$(git rev-parse --short HEAD)"
6-
echo -n $BASE64BUNDLE > bundle.b64
6+
printf "%s" "$BASE64BUNDLE" > bundle.b64
77
sed -e "s/WISPCRAFTVERSION/$VERSION/g" -e "s/WISPCRAFTCOMMITHASH/$COMMITHASH/g" -e "/WISPCRAFTSRCBUNDLE/r bundle.b64" -e "/WISPCRAFTSRCBUNDLE/d" "index.html" > dist/injector.html
88
rm bundle.b64
99
echo "Injector Build Complete!"

0 commit comments

Comments
 (0)