14 lines
No EOL
601 B
PowerShell
14 lines
No EOL
601 B
PowerShell
# Step 1: Read the contents of "token.txt" into variable $tkn
|
|
$tkn = Get-Content -Path "token.txt" -Raw
|
|
|
|
# Step 2: Prompt the user for version input
|
|
$ver = Read-Host "Enter version"
|
|
|
|
# Step 3: Compress "build_folder" into a zip file named "lon$ver.zip"
|
|
$zipName = "lon$ver.zip"
|
|
Compress-Archive -Path "build_folder" -DestinationPath $zipName -Force
|
|
|
|
& ".\deploy_tools\butler.exe" push $zipName "lon-team/lon-test:windows" --userversion $ver
|
|
# Step 4: Execute deploy_tools\gjpush with required arguments
|
|
#& ".\deploy_tools\gjpush.exe" -t $tkn -g 1005720 -p 1012636 -r $ver $zipName
|
|
Remove-Item $zipName |