@@ -2,55 +2,62 @@ version: 0.9.0.{build}
2
2
image : Visual Studio 2017
3
3
4
4
platform :
5
- - x64
6
- - Win32
5
+ - x64
6
+ - Win32
7
7
8
8
configuration :
9
- - Release
10
- - Debug
9
+ - Release
10
+ - Debug
11
11
12
12
install :
13
- - if "%platform%"=="x64" set archi=amd64
14
- - if "%platform%"=="Win32" set archi=x86
15
- - call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %archi%
13
+ - if "%platform%"=="x64" set archi=amd64
14
+ - if "%platform%"=="x64" set build_platform=x64
15
+
16
+ - if "%platform%"=="Win32" set archi=x86
17
+ - if "%platform%"=="Win32" set build_platform=Win32
18
+
19
+ - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
16
20
17
21
build :
18
- parallel : true
19
- verbosity : minimal
22
+ parallel : true
23
+ verbosity : minimal
20
24
21
25
build_script :
22
- - cd "%APPVEYOR_BUILD_FOLDER%"
23
- - msbuild LuaScript.sln /p:configuration ="%configuration%" /p:platform ="%platform %" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
26
+ - cd "%APPVEYOR_BUILD_FOLDER%"
27
+ - msbuild LuaScript.sln /p:Configuration ="%configuration%" /p:Platform ="%build_platform %" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
24
28
25
29
after_build :
26
- - cd "%APPVEYOR_BUILD_FOLDER%"
27
- - ps : >-
28
-
29
- Push-AppveyorArtifact "bin\$($env:CONFIGURATION)_$($env:PLATFORM)\LuaScript.dll" -FileName LuaScript.dll
30
-
31
- if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release") {
32
- if ($env:PLATFORM -eq "x64"){
33
- $ZipFileName = "LuaScript_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
34
- 7z a $ZipFileName "$($env:APPVEYOR_BUILD_FOLDER)\bin\$($env:CONFIGURATION)_$($env:PLATFORM)\*.dll"
35
- }
36
- if ($env:PLATFORM -eq "Win32"){
37
- $ZipFileName = "LuaScript_$($env:APPVEYOR_REPO_TAG_NAME).zip"
38
- 7z a $ZipFileName "$($env:APPVEYOR_BUILD_FOLDER)\bin\$($env:CONFIGURATION)_$($env:PLATFORM)\*.dll"
39
- }
30
+ - cd "%APPVEYOR_BUILD_FOLDER%"
31
+ - ps : >-
32
+
33
+ $BuildPath = "$($env:APPVEYOR_BUILD_FOLDER)\bin\$($env:CONFIGURATION)_$($env:BUILD_PLATFORM)"
34
+
35
+ Push-AppveyorArtifact "$($BuildPath)\LuaScript.dll" -FileName LuaScript.dll
36
+
37
+ if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release") {
38
+ mkdir LuaScript
39
+ Move-Item -Path "$($BuildPath)\LuaScript.dll" -Destination .\LuaScript
40
+ if ($env:BUILD_PLATFORM -eq "x64"){
41
+ $ZipFileName = "LuaScript_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
42
+ }
43
+ if ($env:BUILD_PLATFORM -eq "Win32"){
44
+ $ZipFileName = "LuaScript_$($env:APPVEYOR_REPO_TAG_NAME).zip"
40
45
}
46
+ 7z a $ZipFileName .\LuaScript
47
+ }
41
48
42
49
artifacts :
43
50
- path : LuaScript*.zip
44
51
name : releases
45
52
46
53
deploy :
47
- provider : GitHub
48
- auth_token :
49
- secure : qrw+nu8dQKFLG+lNmky6buHsvHFwlibAai0r0aJ3MYbyBniONVxvgnmyx37bPh44
50
- artifact : releases
51
- draft : true
52
- prerelease : false
53
- force_update : true
54
- on :
55
- appveyor_repo_tag : true
56
- configuration : Release
54
+ provider : GitHub
55
+ auth_token :
56
+ secure : qrw+nu8dQKFLG+lNmky6buHsvHFwlibAai0r0aJ3MYbyBniONVxvgnmyx37bPh44
57
+ artifact : releases
58
+ draft : true
59
+ prerelease : false
60
+ force_update : true
61
+ on :
62
+ appveyor_repo_tag : true
63
+ configuration : Release
0 commit comments