From 7cffff839b0c5aaa2e1505ba4b6e1d95e417b4e4 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Fri, 8 Nov 2024 10:26:38 +0800 Subject: [PATCH] Zip-up action on Qrepo build script for Windows platform. --- qrepo.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qrepo.json b/qrepo.json index f8459a5..d1fff33 100644 --- a/qrepo.json +++ b/qrepo.json @@ -68,9 +68,13 @@ "linux:stop": [ "/opt/lampp/xampp stop" ], - "zip-up": [ + "linux:zip-up": [ "echo \"\\033[92m[+]\\033[0m Zipping deployment entity...\"", "zip -q -r qlbase.zip api assets bin components controller docs drive scripts side styles views favicon.ico .htaccess 404.html index.php sandbox.php" + ], + "windows:zip-up": [ + "echo \"\\033[92m[+]\\033[0m Zipping deployment entity...\"", + "powershell -Command \"Compress-Archive -Path @( 'api', 'assets', 'bin', 'components', 'controller', 'docs', 'drive', 'scripts', 'side', 'styles', 'views', 'favicon.ico', '.htaccess', '404.html', 'index.php', 'sandbox.php' ) -DestinationPath qlbase.zip -Force\"" ] } } \ No newline at end of file