mirror of
https://github.com/Unitech/pm2.git
synced 2026-02-01 16:57:09 +00:00
29 lines
445 B
Bash
Executable File
29 lines
445 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -ex
|
|
|
|
#npm run build
|
|
npm pack
|
|
rm -rf dist
|
|
mkdir dist
|
|
mv pm2-*.tgz dist/pack.tgz
|
|
|
|
cd dist
|
|
tar -xzf pack.tgz --strip 1
|
|
rm -rf pack.tgz
|
|
npm install --production
|
|
cd ..
|
|
|
|
# First run that print a banner
|
|
node dist/bin/pm2 --version
|
|
|
|
# cleanup
|
|
find -name "*~" -delete
|
|
|
|
# fix chmod
|
|
chmod 755 `find -name LICENSE`
|
|
chmod a+x `find -name "*.sh"`
|
|
|
|
tar -cvzf dist/pm2-v`node dist/bin/pm2 --version`.tar.gz dist/*
|
|
shasum -a 256 dist/pm2-*.tar.gz
|