appveyor: pack interesting files too, not just lib
authorRicardo Constantino <wiiaboo@gmail.com>
Thu, 10 Nov 2016 21:27:05 +0000 (21:27 +0000)
committerRalph Giles <giles@thaumas.net>
Thu, 10 Nov 2016 21:44:11 +0000 (13:44 -0800)
Signed-off-by: Ralph Giles <giles@thaumas.net>
appveyor.yml

index c85b0b1..7bb96a9 100644 (file)
@@ -17,7 +17,16 @@ build:
   verbosity: minimal
 
 after_build:
-- cmd: 7z a opus.zip win32\VS2015\%PLATFORM%\%CONFIGURATION%\opus.lib include\*.h
+- cmd: >-
+    mkdir %APPVEYOR_BUILD_FOLDER%\artifacts
+
+    cd %APPVEYOR_BUILD_FOLDER%\win32\VS2015\%PLATFORM%\%CONFIGURATION%
+
+    for %%a in (lib dll exp pdb) do if exist opus.%%a copy opus.%%a %APPVEYOR_BUILD_FOLDER%\artifacts\
+
+    cd %APPVEYOR_BUILD_FOLDER%
+
+    7z a opus.zip artifacts\* include\*.h
 
 test_script:
 - cmd: >-