Skip to content

Commit e9b8003

Browse files
authored
Update appveyor.yml
1 parent 8f5f81a commit e9b8003

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

appveyor.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@ install:
2525
- ssh -V
2626
- ipconfig /all
2727

28-
before_build:
28+
# before_build:
2929
# see http://help.appveyor.com/discussions/problems/4569-the-target-_convertpdbfiles-listed-in-a-beforetargets-attribute-at-c-does-not-exist-in-the-project-and-will-be-ignored
30-
- del "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
31-
- del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
32-
- ps: |
33-
if ($env:APPVEYOR_REPO_TAG_NAME) { $env:VERSION = $env:APPVEYOR_REPO_TAG_NAME } else { $env:VERSION = $env:APPVEYOR_REPO_BRANCH }
34-
(Get-Content $env:APPVEYOR_BUILD_FOLDER\src\winnfsd.cpp).replace('{{VERSION}}', $env:VERSION) | Set-Content $env:APPVEYOR_BUILD_FOLDER\src\winnfsd.cpp
35-
(Get-Content $env:APPVEYOR_BUILD_FOLDER\src\winnfsd.cpp).replace('{{HASH}}', $env:APPVEYOR_REPO_COMMIT.Substring(0, 7)) | Set-Content $env:APPVEYOR_BUILD_FOLDER\src\winnfsd.cpp
36-
# patch assembly info
37-
- ps: |
38-
$env:LAST_TAG = "$(git describe --abbrev=0 --tags).0"
39-
$env:LAST_TAG_FULL = "$($env:LAST_TAG)-$($env:APPVEYOR_REPO_COMMIT.Substring(0, 7))"
40-
(Get-Content $env:APPVEYOR_BUILD_FOLDER\src\WinNFSd.rc).replace('1,0,0,0', ($env:LAST_TAG).replace('.',',')) | Set-Content $env:APPVEYOR_BUILD_FOLDER\src\WinNFSd.rc
41-
(Get-Content $env:APPVEYOR_BUILD_FOLDER\src\WinNFSd.rc).replace('1.0.0.0-000000', $env:LAST_TAG_FULL) | Set-Content $env:APPVEYOR_BUILD_FOLDER\src\WinNFSd.rc
42-
(Get-Content $env:APPVEYOR_BUILD_FOLDER\src\WinNFSd.rc).replace('1.0.0.0', $env:LAST_TAG) | Set-Content $env:APPVEYOR_BUILD_FOLDER\src\WinNFSd.rc
43-
(Get-Content $env:APPVEYOR_BUILD_FOLDER\src\WinNFSd.rc).replace('YYYY', $(Get-Date -UFormat %Y)) | Set-Content $env:APPVEYOR_BUILD_FOLDER\src\WinNFSd.rc
30+
# - del "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
31+
# - del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
32+
# - ps: |
33+
# if ($env:APPVEYOR_REPO_TAG_NAME) { $env:VERSION = $env:APPVEYOR_REPO_TAG_NAME } else { $env:VERSION = $env:APPVEYOR_REPO_BRANCH }
34+
# (Get-Content $env:APPVEYOR_BUILD_FOLDER\src\winnfsd.cpp).replace('{{VERSION}}', $env:VERSION) | Set-Content $env:APPVEYOR_BUILD_FOLDER\src\winnfsd.cpp
35+
# (Get-Content $env:APPVEYOR_BUILD_FOLDER\src\winnfsd.cpp).replace('{{HASH}}', $env:APPVEYOR_REPO_COMMIT.Substring(0, 7)) | Set-Content $env:APPVEYOR_BUILD_FOLDER\src\winnfsd.cpp
36+
# # patch assembly info
37+
# - ps: |
38+
# $env:LAST_TAG = "$(git describe --abbrev=0 --tags).0"
39+
# $env:LAST_TAG_FULL = "$($env:LAST_TAG)-$($env:APPVEYOR_REPO_COMMIT.Substring(0, 7))"
40+
# (Get-Content $env:APPVEYOR_BUILD_FOLDER\src\WinNFSd.rc).replace('1,0,0,0', ($env:LAST_TAG).replace('.',',')) | Set-Content $env:APPVEYOR_BUILD_FOLDER\src\WinNFSd.rc
41+
# (Get-Content $env:APPVEYOR_BUILD_FOLDER\src\WinNFSd.rc).replace('1.0.0.0-000000', $env:LAST_TAG_FULL) | Set-Content $env:APPVEYOR_BUILD_FOLDER\src\WinNFSd.rc
42+
# (Get-Content $env:APPVEYOR_BUILD_FOLDER\src\WinNFSd.rc).replace('1.0.0.0', $env:LAST_TAG) | Set-Content $env:APPVEYOR_BUILD_FOLDER\src\WinNFSd.rc
43+
# (Get-Content $env:APPVEYOR_BUILD_FOLDER\src\WinNFSd.rc).replace('YYYY', $(Get-Date -UFormat %Y)) | Set-Content $env:APPVEYOR_BUILD_FOLDER\src\WinNFSd.rc
4444

4545

4646
before_test:

0 commit comments

Comments
 (0)