2 Star 5 Fork 0

Gui_qLi/TranslucentTB

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
update-version.ps1 730 Bytes
一键复制 编辑 原始数据 按行查看 历史
$ErrorActionPreference = "Stop"
$tag = git describe --abbrev=0 --tags
$tag_hash = git show-ref -s $tag
$commits = git rev-list $tag_hash`...HEAD --count
$tags = (git tag | Measure-Object -Line).Lines
$rc_content = (Get-Content TranslucentTB\TranslucentTB.rc2)
$rc_content = $rc_content.Replace("1,0,0,1", "$tags,$commits,0,0")
$rc_content = $rc_content.Replace("1.0.0.1", "$tag.$commits.$env:APPVEYOR_REPO_COMMIT.$env:APPVEYOR_REPO_BRANCH-$env:CONFIGURATION")
Set-Content TranslucentTB\TranslucentTB.rc2 -Value $rc_content
$appx_content = (Get-Content StorePackage\Package.appxmanifest)
$appx_content = $appx_content.Replace("1.0.0.0", "$tags.$commits.0.0")
Set-Content StorePackage\Package.appxmanifest -Value $appx_content
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/gui_qli/TranslucentTB.git
[email protected]:gui_qli/TranslucentTB.git
gui_qli
TranslucentTB
TranslucentTB
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385