updated gdrive_upload_full.ps1

This commit is contained in:
dzaitsev
2025-05-21 20:52:42 +03:00
parent a2e4157b9f
commit 176a3ed0a6
+9 -5
View File
@@ -1,10 +1,14 @@
param (
[string]$Path = "."
)
Write-Output "`n=== Starting Upload: Full Installer ZIP ==="
$uploadFolder = "AzaionSuiteBuilds"
Write-Output "[INFO] Target Google Drive folder: $uploadFolder"
Write-Output "[INFO] Looking for latest .zip matching 'AzaionSuite.Full.*.zip'..."
Write-Output "[INFO] Looking for latest .zip matching 'AzaionSuite.Full.*.zip' in folder: $Path..."
$fullZip = Get-ChildItem -Path . -Filter "AzaionSuite.Full.*.zip" |
$fullZip = Get-ChildItem -Path $Path -Filter "AzaionSuite.Full.*.zip" |
Sort-Object LastWriteTime -Descending |
Select-Object -First 1
@@ -16,12 +20,12 @@ if ($fullZip) {
rclone copy "$($fullZip.FullName)" "AzaionGoogleDrive:$uploadFolder" --progress
if ($LASTEXITCODE -eq 0) {
Write-Output "[SUCCESS] Full installer ZIP uploaded successfully."
Write-Output "[SUCCESS] Full installer ZIP uploaded successfully."
} else {
Write-Output "[ERROR] Upload failed with exit code $LASTEXITCODE."
Write-Output "[ERROR] Upload failed with exit code $LASTEXITCODE."
}
} else {
Write-Output "[WARNING] ⚠️ No matching Full installer ZIP found in current directory."
Write-Output "[WARNING] No matching Full installer ZIP found in folder: $Path."
}
Write-Output "=== Upload Complete: Full Installer ZIP ===`n"