perf: 支持.net9 (#21)

Co-authored-by: tk <fiyne1a@dingtalk.com>
This commit is contained in:
2024-11-25 17:01:15 +08:00
committed by GitHub
parent 7557cb0538
commit b32fe597dd
23 changed files with 250 additions and 165 deletions

View File

@ -1,7 +1,7 @@
cd ..
$types = @{
'1' = @('major', '主版本')
'2' = @('minor', '版本')
'2' = @('minor', '版本')
'3' = @('patch', '修订版本')
}
$prefix = ''
@ -10,19 +10,20 @@ while ($null -eq $types[$prefix])
$prefix = Read-Host "请选择版本类型`n" $( & { param($i) $i | ForEach-Object { "$_ : $( $types[$_][0] )$( $types[$_][1] )`n" } } $types.Keys | Sort-Object )
}
git checkout main
git pull
git branch -D release
git checkout -b release
./node_modules/.bin/standard-version -r $types[$prefix][0]
cd ./scripts
./code.clean.ps1
git commit --amend --no-edit -a
$tag = $(git describe --tags $(git rev-list --tags --max-count=1))
$tag = $( git describe --tags $( git rev-list --tags --max-count = 1 ) )
git tag -d $tag
git tag $tag
git push --tags origin release
Start-Process -FilePath "https://github.com/nsnail/NSExt/compare/main...release"
Write-Host "按『Enter』回到分支『Ctrl+C』退出"
Write-Host "按『Enter』回到tk分支『Ctrl+C』退出"
Pause
git checkout main
git pull
git branch -D release
git branch -D release
git branch -D tk
git checkout -b tk