1 Star 0 Fork 14

risheng/FSLib.App.SimpleUpdater

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
sync_version.sh 549 Bytes
一键复制 编辑 原始数据 按行查看 历史
木魚 提交于 2018-07-19 16:16 +08:00 . 更换项目格式
#!/bin/sh
version=`grep -Po '(?<=<Version>)([\.\d]+)(?=</Version>)' FSLib.App.SimpleUpdater/FSLib.App.SimpleUpdater.csproj`
echo "新版本号 $version"
#echo 正在更新AssemblyInfo.cs ……
#sed -i -r "s/\[assembly: Assembly(File)?Version\(\"[0-9\.]+\"\)\]/[assembly: Assembly\1Version(\"${version}\")]/" FSLib.App.SimpleUpdater/Properties/AssemblyInfo.cs
echo 正在更新Config文件……
sed -i -r "s/newVersion=\"[0-9\.]+\"/newVersion=\"$version\"/" FSLib.App.SimpleUpdater/content/App.config.install.xdt
echo 更新完成!
read
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/rs91/FSLib.App.SimpleUpdater.git
git@gitee.com:rs91/FSLib.App.SimpleUpdater.git
rs91
FSLib.App.SimpleUpdater
FSLib.App.SimpleUpdater
master

搜索帮助