Make packaging script for making releases

This commit is contained in:
2024-04-09 14:20:02 -04:00
parent 12f61cab03
commit c8505ea859
2 changed files with 14 additions and 2 deletions
-2
View File
@@ -1,2 +0,0 @@
clear-host
+14
View File
@@ -0,0 +1,14 @@
clear-host
$path_root = git rev-parse --show-toplevel
$path_plugins = join-path $path_root 'Plugins'
$path_release = Join-Path $path_root 'Release'
if ( -not(Test-Path $path_release) ) { New-Item -ItemType Directory -Path $path_release }
$path_cog_zip = join-path $path_release 'Cog.zip'
if (Test-Path $path_cog_zip) { Remove-Item -Path $path_cog_zip }
Get-ChildItem -Path $path_plugins | Compress-Archive -DestinationPath $path_cog_zip
Write-Host "Created zip file at $path_cog_zip"