Skip to content

Commit 9fdfca0

Browse files
author
Soham Dasgupta
committed
chore: improve formatting
1 parent 5a91ec3 commit 9fdfca0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

polygon.ps1

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $latestTag = if ($isGitHubActions) {
1515
}
1616

1717
# Get the latest version from tag
18-
$versionNumber = (Select-String -Pattern "\d+\.\d+\.\d+" -InputObject $latestTag).Matches[0].Value
18+
$versionNumber = (Select-String -Pattern "\d+\.\d+\.\d+" -InputObject $latestTag).Matches[0].Value;
1919

2020
Write-Host "Building Polygon version $versionNumber" -ForegroundColor Green;
2121

@@ -24,27 +24,27 @@ Remove-Item -Path "$cwd\build" -Recurse -Force -ErrorAction SilentlyContinue;
2424
New-Item -Path "$cwd\build" -ItemType Directory -Force | Out-Null;
2525

2626
# Download AutoHotkey
27-
$ahkFileNamePattern = "AutoHotkey_.*\.zip"
27+
$ahkFileNamePattern = "AutoHotkey_.*\.zip";
2828
$ahkLatestRelease = Invoke-RestMethod -Uri "https://api.github.com/repos/AutoHotkey/AutoHotkey/releases/latest";
29-
$ahkDownloadURL = ($ahkLatestRelease.assets | Where-Object { $_.name -match "$ahkFileNamePattern" }) | Select-Object -ExpandProperty browser_download_url
29+
$ahkDownloadURL = ($ahkLatestRelease.assets | Where-Object { $_.name -match "$ahkFileNamePattern" }) | Select-Object -ExpandProperty browser_download_url;
3030
Invoke-WebRequest -Uri $ahkDownloadURL -OutFile "$cwd\build\autohotkey.zip";
3131
Expand-Archive -Path "$cwd\build\autohotkey.zip" -DestinationPath "$cwd\build\ahk";
3232

3333
Write-Host "Downloaded the latest release from AutoHotkey into `"$cwd\build\ahk\`"" -ForegroundColor Green;
3434

3535
# Download Ahk2Exe
36-
$ahk2ExeFileNamePattern = "Ahk2Exe.*\.zip"
36+
$ahk2ExeFileNamePattern = "Ahk2Exe.*\.zip";
3737
$ahk2ExeLatestRelease = Invoke-RestMethod -Uri "https://api.github.com/repos/AutoHotkey/Ahk2Exe/releases/latest";
38-
$ahk2ExeDownloadURL = ($ahk2ExeLatestRelease.assets | Where-Object { $_.name -match "$ahk2ExeFileNamePattern" }) | Select-Object -ExpandProperty browser_download_url
38+
$ahk2ExeDownloadURL = ($ahk2ExeLatestRelease.assets | Where-Object { $_.name -match "$ahk2ExeFileNamePattern" }) | Select-Object -ExpandProperty browser_download_url;
3939
Invoke-WebRequest -Uri $ahk2ExeDownloadURL -OutFile "$cwd\build\Ahk2exe.zip";
4040
Expand-Archive -Path "$cwd\build\Ahk2exe.zip" -DestinationPath "$cwd\build\ahk";
4141

4242
Write-Host "Downloaded the latest release from Ahk2Exe into `"$cwd\build\ahk\`"" -ForegroundColor Green;
4343

4444
# Download upx
45-
$upxFileNamePattern = "upx-.*\-win64.zip"
45+
$upxFileNamePattern = "upx-.*\-win64.zip";
4646
$upxLatestRelease = Invoke-RestMethod -Uri "https://api.github.com/repos/upx/upx/releases/latest";
47-
$upxDownloadURL = ($upxLatestRelease.assets | Where-Object { $_.name -match "$upxFileNamePattern" }) | Select-Object -ExpandProperty browser_download_url
47+
$upxDownloadURL = ($upxLatestRelease.assets | Where-Object { $_.name -match "$upxFileNamePattern" }) | Select-Object -ExpandProperty browser_download_url;
4848
Invoke-WebRequest -Uri $upxDownloadURL -OutFile "$cwd\build\upx.zip";
4949
Expand-Archive -Path "$cwd\build\upx.zip" -DestinationPath "$cwd\build\upx" -Force;
5050
$sourceFolders = Get-ChildItem -Path "$cwd\build\upx\" -Directory -Filter "upx-*";
@@ -58,16 +58,16 @@ foreach ($folder in $sourceFolders) {
5858
Write-Host "Downloaded the latest release from upx into `"$cwd\build\upx\`"" -ForegroundColor Green;
5959

6060
# Download Wix3
61-
$wixFileNamePattern = "wix311-binaries.zip"
61+
$wixFileNamePattern = "wix311-binaries.zip";
6262
$wixLatestRelease = Invoke-RestMethod -Uri "https://api.github.com/repos/wixtoolset/wix3/releases/latest";
63-
$wixDownloadURL = ($wixLatestRelease.assets | Where-Object { $_.name -match "$wixFileNamePattern" }) | Select-Object -ExpandProperty browser_download_url
63+
$wixDownloadURL = ($wixLatestRelease.assets | Where-Object { $_.name -match "$wixFileNamePattern" }) | Select-Object -ExpandProperty browser_download_url;
6464
Invoke-WebRequest -Uri $wixDownloadURL -OutFile "$cwd\build\$wixFileNamePattern";
6565
Expand-Archive -Path "$cwd\build\$wixFileNamePattern" -DestinationPath "$cwd\build\wix\";
6666

6767
Write-Host "Downloaded the latest release from Wix3 into `"$cwd\build\wix\`"" -ForegroundColor Green;
6868

6969
# Build polygon executables
70-
Start-Process -FilePath "$cwd\build\ahk\Ahk2Exe.exe" -NoNewWindow -Wait -ArgumentList "/in polygon.ahk /out ""$cwd\build\polygon-x86.exe"" /compress 2 /icon logo.ico /base ""$cwd\build\ahk\AutoHotkey32.exe"""
70+
Start-Process -FilePath "$cwd\build\ahk\Ahk2Exe.exe" -NoNewWindow -Wait -ArgumentList "/in polygon.ahk /out ""$cwd\build\polygon-x86.exe"" /compress 2 /icon logo.ico /base ""$cwd\build\ahk\AutoHotkey32.exe""";
7171
Start-Process -FilePath "$cwd\build\ahk\Ahk2Exe.exe" -NoNewWindow -Wait -ArgumentList "/in polygon.ahk /out ""$cwd\build\polygon-x64.exe"" /compress 2 /icon logo.ico /base ""$cwd\build\ahk\AutoHotkey64.exe""";
7272

7373
Write-Host "Polygon binaries built successfully into `"$cwd\build\`"" -ForegroundColor Green;

0 commit comments

Comments
 (0)