From 40d8ed023cbd681ac6cff88506d5e5a03416c706 Mon Sep 17 00:00:00 2001 From: Ashesh3 <3626859+Ashesh3@users.noreply.github.com> Date: Mon, 11 May 2020 15:54:36 +0000 Subject: [PATCH] Better file naming for AppVeyor artifacts This builds upon https://github.com/godotengine/godot/pull/38625 and improves the file name format as mentioned in https://github.com/godotengine/godot/pull/38189#issuecomment-626585363 The resulting file stored has the name `godot.windows.opt.tools.64-$(VERSION_HASH).zip` where `VERSION_HASH` is obtained from `it rev-parse --short=9 HEAD` , the zip file contains the built exe file. (cherry picked from commit 4f055c93a52e9beeb26127ce53e4ae77569ba9dd) --- .appveyor.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index dc7dc5988b2..ca33dfa3018 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -32,9 +32,13 @@ build_script: - scons platform=%GD_PLATFORM% target=%TARGET% tools=%TOOLS% debug_symbols=no verbose=yes progress=no gdnative_wrapper=yes after_build: - - 7z a godot_build.zip bin\*.exe + - git rev-parse --short=9 HEAD > VERSION_HASH.txt + - set /P VERSION_HASH= < VERSION_HASH.txt + - cd bin + - mv godot.windows.opt.tools.64.exe godot_%APPVEYOR_REPO_BRANCH%-%VERSION_HASH%_win64.exe + - 7z a -mx9 godot_%APPVEYOR_REPO_BRANCH%-%VERSION_HASH%_win64.zip *.exe artifacts: - - path: godot_build.zip - name: Build + - path: bin/godot_${APPVEYOR_REPO_BRANCH}-${VERSION_HASH}_win64.zip + name: Win64 release_debug editor build type: zip