加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build_release.sh 891 Bytes
一键复制 编辑 原始数据 按行查看 历史
Zhonglu 提交于 2019-12-19 22:43 . Fix Linux build scripts.
VERSION=$(./version)
if [ $# -eq 0 ]; then
echo "No arguments specified. Use default version: $VERSION"
else
VERSION=$1
echo "Version entered: $VERSION"
fi
release=poli-$VERSION
mkdir $release
rm -rf src/main/resources/static
cd web-app
npm install
npm run build
mkdir ../src/main/resources/static
cp -r build/* ../src/main/resources/static/
cd ..
mvn clean install -DskipTests
cp -r export-server $release
cp target/poli-*.jar $release
cp -r docs $release
cp LICENSE $release
cp -r third-party-license $release
cp start.sh $release
cp start.bat $release
cp README.md $release
cp -r upgrade $release
mkdir $release/jdbc-drivers
mkdir $release/config
cp config/poli.properties $release/config/poli.properties
mkdir $release/db
cd $release/db
sqlite3 poli.db < ../../db/schema-sqlite.sql
chmod 755 poli.db
cd ../..
mv $release release
cd release
zip -r $release.zip $release/
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化