From 902897a27988d7e0aba476c11ad1264588774ac8 Mon Sep 17 00:00:00 2001
From: Lukas Holecek <hluk@email.cz>
Date: Thu, 30 Mar 2017 09:25:15 +0200
Subject: [PATCH] Windows: Avoid packaging files created by tests

Run tests after packaging the app to avoid including
"config\copyq.test" and possibly other files.
---
 utils/appveyor/after_build.bat | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/utils/appveyor/after_build.bat b/utils/appveyor/after_build.bat
index 20f084a1e..5a2b5ee04 100644
--- a/utils/appveyor/after_build.bat
+++ b/utils/appveyor/after_build.bat
@@ -30,15 +30,15 @@ xcopy /F "%BuildPlugins%\*.dll" "%Destination%\plugins" || goto :error
 
 %QTDIR%\bin\windeployqt --release --no-system-d3d-compiler --no-angle --no-opengl-sw "%Executable%" || goto :error
 
-"%Executable%" --help || goto :error
-"%Executable%" --version || goto :error
-"%Executable%" --info || goto :error
-"%Executable%" tests || "%Executable%" tests || goto :error
-
 7z a "%Name%.zip" -r "%Destination%" || goto :error
 
 choco install -y InnoSetup
 "C:\Program Files (x86)\Inno Setup 5\iscc" "/O%APPVEYOR_BUILD_FOLDER%" "/DAppVersion=%AppVersion%" "/DRoot=%Destination%" "/DSource=%Source%" "%Source%\Shared\copyq.iss" || goto :error
 
+"%Executable%" --help || goto :error
+"%Executable%" --version || goto :error
+"%Executable%" --info || goto :error
+"%Executable%" tests || "%Executable%" tests || goto :error
+
 :error
 exit /b %errorlevel%
-- 
GitLab