mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-17 18:40:33 +00:00
fix build with appveyor warning (#1340)
* Fix build when semantic release shows error * Fix appveyor with version warning
This commit is contained in:
parent
c19fb99877
commit
6981c19a13
11
appveyor.yml
11
appveyor.yml
@ -19,16 +19,7 @@ install:
|
|||||||
# Do not build on tags (GitHub only)
|
# Do not build on tags (GitHub only)
|
||||||
skip_tags: true
|
skip_tags: true
|
||||||
before_build:
|
before_build:
|
||||||
- ps: |
|
- cmd: powershell .\setversion.ps1
|
||||||
semantic-release --dry-run 2>&1 | %{
|
|
||||||
echo $_
|
|
||||||
$fields = -split $_;
|
|
||||||
if ($fields[0] -eq "#" -or $fields[0] -eq "##") {
|
|
||||||
echo "Mirror version " $fields[1]
|
|
||||||
echo $fields[1] > Assets/Mirror/version.txt
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- docfx metadata doc\docfx.json
|
- docfx metadata doc\docfx.json
|
||||||
|
8
setversion.ps1
Normal file
8
setversion.ps1
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
semantic-release --dry-run | %{
|
||||||
|
echo $_
|
||||||
|
$fields = -split $_;
|
||||||
|
if ($fields[0] -eq "#" -or $fields[0] -eq "##") {
|
||||||
|
echo "Mirror version " $fields[1]
|
||||||
|
echo $fields[1] > Assets/Mirror/version.txt
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user