diff --git a/appveyor.yml b/appveyor.yml index fed1b366f8567d7a4dcd3372930f2ab862a60a85..88270c11d4f369193d6e5f0a2e9496d05c3fce1f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,5 @@ # Based on https://github.com/ogrisel/python-appveyor-demo/blob/master/appveyor.yml +version: '{build}' environment: global: @@ -68,18 +69,28 @@ after_test: - pyinstaller beempy-onedir.spec - copy /Y C:\OpenSSL-Win64\bin\libeay32.dll dist\beempy - copy /Y C:\OpenSSL-Win64\bin\ssleay32.dll dist\beempy - - 7z a dist\beempy.zip %APPVEYOR_BUILD_FOLDER%\dist\beempy - - 7z a -m0=LZMA2 -mx9 dist\beempy.7z %APPVEYOR_BUILD_FOLDER%\dist\beempy + - 7z a beempy.zip %APPVEYOR_BUILD_FOLDER%\dist\beempy + - 7z a -m0=LZMA2 -mx9 $env:BUILD %APPVEYOR_BUILD_FOLDER%\dist\beempy #- "%CMD_IN_ENV% python setup.py bdist_wininst" #- "%CMD_IN_ENV% python setup.py bdist_msi" - ps: | # generate sha256 hashes - (get-filehash dist\beempy.7z -algorithm SHA256).Hash | out-file "dist\beempy.7z.sha256"-encoding ascii - (get-filehash dist\beempy.zip -algorithm SHA256).Hash | out-file "dist\beempy.zip.sha256" -encoding ascii + (get-filehash $env:BUILD -algorithm SHA256).Hash | out-file ("{0}.sha256" -f $env:BUILD) -encoding ascii + (get-filehash beempy.zip -algorithm SHA256).Hash | out-file "beempy.zip.sha256" -encoding ascii - ps: "ls dist" artifacts: # Archive the generated packages in the ci.appveyor.com build report. - - path: dist\* + - path: $(BUILD) + name: beempy + - path: $(BUILD).sha256 + name: beempy sha256 hash + - path: beempy.zip + name: beempy_zip + - path: beempy.zip.sha256 + name: beempy_zip sha256 hash +on_finish: +- ps: | # update appveyor build version, done last to prevent webhook breakage + update-appveyorbuild -version $env:AVVER \ No newline at end of file