mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:36:30 +00:00
31 lines
1.2 KiB
PowerShell
31 lines
1.2 KiB
PowerShell
Write-Output "`n=== Starting Upload: Iterative Installer ==="
|
|
|
|
# Change to parent directory (one level up)
|
|
Set-Location ..
|
|
|
|
$uploadFolder = "AzaionSuiteBuilds"
|
|
Write-Output "[INFO] Target Google Drive folder: $uploadFolder"
|
|
Write-Output "[INFO] Looking for latest .exe matching 'AzaionSuite.Iterative.*.exe' in folder: $(Get-Location)..."
|
|
|
|
$iterativeFile = Get-ChildItem -Path . -Filter "AzaionSuite.Iterative.*.exe" |
|
|
Sort-Object LastWriteTime -Descending |
|
|
Select-Object -First 1
|
|
|
|
if ($iterativeFile) {
|
|
Write-Output "[FOUND] Iterative installer: $($iterativeFile.Name)"
|
|
Write-Output "[INFO] Full path: $($iterativeFile.FullName)"
|
|
Write-Output "[ACTION] Uploading file to Google Drive using rclone..."
|
|
|
|
rclone copy "$($iterativeFile.FullName)" "AzaionGoogleDrive:$uploadFolder" --progress
|
|
|
|
if ($LASTEXITCODE -eq 0) {
|
|
Write-Output "[SUCCESS] ✅ Iterative installer uploaded successfully."
|
|
} else {
|
|
Write-Output "[ERROR] ❌ Upload failed with exit code $LASTEXITCODE."
|
|
}
|
|
} else {
|
|
Write-Output "[WARNING] ⚠️ No matching Iterative installer found in current directory."
|
|
}
|
|
|
|
Write-Output "=== Upload Complete: Iterative Installer ===`n"
|