+ fix: Build Version Script

This commit is contained in:
RaiKoHoff 2020-02-10 15:36:47 +01:00
parent 4cf04521c8
commit 064cd19788
3 changed files with 5 additions and 7 deletions

3
.gitignore vendored
View File

@ -54,10 +54,9 @@ Thumbs.db
/Version_*.cmd
/Versions/build.txt
/np3portableapp/_buildname.txt
/np3portableapp/*.7z
/np3portableapp/*.paf.exe
/np3portableapp/_buildname.txt
/np3portableapp/Notepad3Portable/Notepad3Portable.exe
/np3portableapp/Notepad3Portable/App/AppInfo/appinfo.ini
/np3portableapp/Notepad3Portable/App/DefaultData/settings

View File

@ -36,17 +36,16 @@ try
$Major = 5
$Minor = [int]$(Get-Date -format yy)
$Revis = [int]$(Get-Date -format MMdd)
#~$Build = [int]($env:appveyor_build_number )
$Build = [int](Get-Content "Versions\build.txt")
if (!$Build) { $Build = 0 }
$Build = $Build + 1
if ($AppVeyorEnv) {
$CommitID = [string]($env:appveyor_repo_commit)
$Build = [int]($env:appveyor_build_number)
}
else {
$CommitID = [string]($env:computername)
$Build = [int](Get-Content "Versions\build.txt") + 1
}
if (!$CommitID) { $CommitID = "---" }
if (!$Build) { $Build = 0 }
$SciVer = [string](Get-Content "scintilla\version.txt")
if (!$SciVer) { $SciVer = 0 }
$OnigVer = [string](Get-Content "oniguruma\version.txt")

View File

@ -1 +1 @@
0
3194