Skip to content

Commit 68c00b1

Browse files
committed
Fixes zip upload
1 parent cb2a2da commit 68c00b1

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

appveyor.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
image: Visual Studio 2019
22

3-
cache:
4-
- Bin\$(configuration)\
5-
63
before_build:
7-
- findstr /V "{48C5258A-FA49-4173-AEE5-0FCA5190DFF2}.Debug {48C5258A-FA49-4173-AEE5-0FCA5190DFF2}.Release" .\ReClass.NET.sln > cleaned.sln
4+
- findstr /V "{48C5258A-FA49-4173-AEE5-0FCA5190DFF2}.Debug {48C5258A-FA49-4173-AEE5-0FCA5190DFF2}.Release" .\ReClass.NET.sln > cleaned.sln # This removes the .Unix project from the solution another option would be to create a custom target inside the project
85
- rm ReClass.NET.sln
9-
- nuget restore
6+
- nuget restore # restore nuget dependencies
107

118
platform:
129
- x86
@@ -18,9 +15,9 @@ build:
1815
project: cleaned.sln
1916
verbosity: minimal
2017

21-
artifacts:
22-
-
23-
path: Bin\$(configuration)\$(platform)\*\.exe
24-
path: Bin\$(configuration)\$(platform)\*\.dll
25-
name: Reclass.NET $(platform)
26-
type: zip
18+
after_build:
19+
- cd %APPVEYOR_BUILD_FOLDER% # CD into the cloned project folder
20+
- cd Bin # CD into the bin
21+
- set BUILD_ARCHIVE=%APPVEYOR_PROJECT_NAME%-%CONFIGURATION%-%PLATFORM%.zip # Set our output archive as projectname-(Debug|Release)-(x86|x64)
22+
- cmd: 7z a -r %BUILD_ARCHIVE% *.dll *.exe # Add all exe and dll files to our archive
23+
- appveyor PushArtifact %BUILD_ARCHIVE% # Upload the archive as an artifact

0 commit comments

Comments
 (0)