Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AGD-3334 - Create Release Folders, Implement Github Actions #118

Merged
merged 11 commits into from
Feb 4, 2025
Prev Previous commit
Next Next commit
Create CompressFilesForRelease.ps1
johnpierson committed Jan 30, 2025
commit 8f291841cd758a50a531d8f2669bf81f6b76db57
23 changes: 23 additions & 0 deletions Samples/Revit2023/CompressFilesForRelease.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Ensure 7-Zip is installed and accessible
$7ZipPath = "C:\Program Files\7-Zip\7z.exe"

#$basePath= "C:\Users\piersoj\rp\Samples\Revit2023"
$mypath = $PSScriptRoot

Write-Output $mypath

if (!(Test-Path $7ZipPath)) {
Write-Error "7-Zip not found at $7ZipPath. Please ensure 7-Zip is installed."
return
}

$dirs = Get-ChildItem -Path $mypath -Directory

Write-Output -InputObject $dirs

Foreach ($dir in $dirs)
{
$name = $dir.name

& $7ZipPath a $mypath\$name $mypath\$dir\*
}