@@ -85,26 +85,9 @@ function Get-GitHubReleaseAssets {
8585 }
8686 }
8787
88- <<<<<<< Updated upstream
89- <<<<<<< Updated upstream
90- if ($ReleaseTag -like ' latest' ) {
91- $apiUrl = " https://api.github.com/repos/$repositoryOwner /$repositoryName /releases/latest"
92- } else {
93- $apiUrl = " https://api.github.com/repos/$repositoryOwner /$repositoryName /releases/tags/$ReleaseTag "
94- }
9588
96- Show-Message " Getting release information..." $StyleAction
97- $headers = @ { " User-Agent" = " PowerShell-ahk2exe-action" }
98- if (! [string ]::IsNullOrEmpty($env: GitHubToken )) { $headers [" Authorization" ] = " token $env: GitHubToken " }
99-
100- $release = Invoke-RestMethod - Uri $apiUrl - Method Get - Headers $headers
101-
102- =======
103- $release = Get-GitHubReleaseInformation - Repository $Repository - ReleaseTag $ReleaseTag
104- >>>>>>> Stashed changes
105- =======
10689 $release = Get-GitHubReleaseInformation - Repository $Repository - ReleaseTag $ReleaseTag
107- >>>>>>> Stashed changes
90+
10891 $assets = $release.assets
10992 if ($assets.Count -eq 0 ) { Throw " No assets found for release '$displayPath '" }
11093
@@ -134,8 +117,6 @@ function Get-GitHubReleaseAssets {
134117 return $downloadFolder
135118}
136119
137- <<<<<<< Updated upstream
138- =======
139120function Get-GitHubReleaseFile {
140121 param (
141122 [string ]$Repository ,
@@ -178,7 +159,6 @@ function Get-GitHubReleaseFile {
178159 return $downloadDestination
179160}
180161
181- >>>>>>> Stashed changes
182162function Invoke-UnzipAllInPlace {
183163 param (
184164 [string ]$FolderPath
@@ -259,8 +239,6 @@ function Install-Ahk2Exe {
259239 return $installPath
260240}
261241
262- <<<<<<< Updated upstream
263- =======
264242function Install-BinMod {
265243 param (
266244 [string ]$Ahk2ExePath
@@ -292,7 +270,6 @@ function Install-BinMod {
292270 return $installPath
293271}
294272
295- >>>>>>> Stashed changes
296273function Install-UPX {
297274 param (
298275 [string ]$Ahk2ExePath
@@ -387,14 +364,8 @@ function Invoke-Action {
387364
388365 $ahkPath = Install-AutoHotkey
389366 $ahk2exePath = Install-Ahk2Exe
390- <<<<<<< Updated upstream
391- <<<<<<< Updated upstream
392- =======
393- =======
394- >>>>>>> Stashed changes
395367
396368 [void ](Install-BinMod - Ahk2ExePath $ahk2exePath )
397- >>>>>>> Stashed changes
398369
399370 if (" $env: Compression " -eq " upx" ) {
400371 [void ](Install-UPX - Ahk2ExePath $ahk2exePath )
0 commit comments