mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 19:51:00 +00:00
20 lines
260 B
Bash
20 lines
260 B
Bash
#!/bin/bash
|
|
npm i
|
|
|
|
if [ $? -ne 0 ]; then
|
|
echo "npm i failed"
|
|
exit 1
|
|
fi
|
|
|
|
npm run build:inner
|
|
if [ $? -ne 0 ]; then
|
|
echo "build failed"
|
|
exit 1
|
|
fi
|
|
|
|
rm -rf dist.zip
|
|
zip -r dist.zip ./dist/
|
|
mkdir -p bin
|
|
mv dist.zip bin/
|
|
tar czf dist.tar.gz bin/dist.zip
|