updated gdrive_upload_iterative.ps1

This commit is contained in:
dzaitsev
2025-05-21 20:46:37 +03:00
parent 080d98389d
commit a2e4157b9f
+9 -5
View File
@@ -1,10 +1,14 @@
param (
[string]$Path = "."
)
Write-Output "`n=== Starting Upload: Iterative Installer ==="
$uploadFolder = "AzaionSuiteBuilds"
Write-Output "[INFO] Target Google Drive folder: $uploadFolder"
Write-Output "[INFO] Looking for latest .exe matching 'AzaionSuite.Iterative.*.exe'..."
Write-Output "[INFO] Looking for latest .exe matching 'AzaionSuite.Iterative.*.exe' in folder: $Path..."
$iterativeFile = Get-ChildItem -Path . -Filter "AzaionSuite.Iterative.*.exe" |
$iterativeFile = Get-ChildItem -Path $Path -Filter "AzaionSuite.Iterative.*.exe" |
Sort-Object LastWriteTime -Descending |
Select-Object -First 1
@@ -16,12 +20,12 @@ if ($iterativeFile) {
rclone copy "$($iterativeFile.FullName)" "AzaionGoogleDrive:$uploadFolder" --progress
if ($LASTEXITCODE -eq 0) {
Write-Output "[SUCCESS] Iterative installer uploaded successfully."
Write-Output "[SUCCESS] Iterative installer 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 Iterative installer found in current directory."
Write-Output "[WARNING] No matching Iterative installer found in folder: $Path."
}
Write-Output "=== Upload Complete: Iterative Installer ===`n"