2 Star 1 Fork 0

桑榆肖物 / SangServerTool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
publish.sh 577 Bytes
AI 代码解读
一键复制 编辑 原始数据 按行查看 历史
桑榆肖物 提交于 2022-07-10 16:58 . 添加发布脚本
#!/bin/bash
rm -rf publish/*
mkdir publish
project="SangServerTool"
plates=("linux-x64" "linux-arm64" "osx-x64" "win-x64")
for plate in ${plates[*]}; do
echo
echo "=========开始发布:${plate} ========="
echo
dotnet publish $project/$project.csproj -c Release -f net6.0 --sc -r $plate -o=publish/$project.$plate -p:PublishSingleFile=true -p:PublishTrimmed=true
echo
echo "=========开始打包 ========="
echo
cd publish
rm $project.$plate/$project.pdb -f
tar -zcvf $project.$plate.tar.gz $project.$plate || exit 1
cd ../
done
C#
1
https://gitee.com/sang93/SangServerTool.git
git@gitee.com:sang93/SangServerTool.git
sang93
SangServerTool
SangServerTool
master

搜索帮助