Merge pull request #632 from gocha/appveyor-fix-tagerror

[appveyor] Fix "git: No tags can describe xxx" error caused in forked repositories
This commit is contained in:
OV2 2020-09-11 15:33:43 +02:00 committed by GitHub
commit 14dcee9c62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -43,8 +43,7 @@ build_script:
- if "%config%"=="libretro Release" msbuild libretro\libretro-win32.vcxproj /t:build /p:Configuration="%config%";Platform="%platform%" /m /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- ps: $env:gitrev = git describe --tags
- ps: $env:my_version = "$env:gitrev"
- ps: $env:my_version = "$env:APPVEYOR_BUILD_VERSION-$($env:APPVEYOR_REPO_COMMIT.substring(0,7))"
- set package_name=snes9x-%my_version%-%arch%
- if exist artifacts rmdir /s /q artifacts
- mkdir artifacts