mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 00:01:37 -07:00
Make packaging script for making releases
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
clear-host
|
||||
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user