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
C++
1
https://gitee.com/gui_qli/TranslucentTB.git
git@gitee.com:gui_qli/TranslucentTB.git
gui_qli
TranslucentTB
TranslucentTB
master

搜索帮助