Skip to content

Commit

Permalink
fix choco package failing to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
jjw24 committed May 17, 2024
1 parent 08484b8 commit 50da633
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/update_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,20 @@ jobs:
if ($LastExitCode -eq 1)
{
cd .\flow-launcher\
dir
pwd
echo "`nNew update exists"
echo "`nPublishing new update to Chocolatey"
$response = Push-Package
echo "TODO CHECKING FAILED RESPONSES"
$response
$LastExitCode
$?
echo "TODO DONE"
$api_key = $Env:api_key
$push_url = 'https://push.chocolatey.org'
$packages = Get-ChildItem *.nupkg | Sort-Object -Property CreationTime -Descending
if (!$All) { $packages = $packages | Select-Object -First 1 }
if (!$packages) { throw 'There is no nupkg file in the directory'}
$packages | ForEach-Object { choco push $_.Name --api-key $api_key --source $push_url }
echo "`nCommiting to Git"
git config --global user.email "[email protected]"
git config --global user.name "choco_package_updater"
Expand Down
2 changes: 1 addition & 1 deletion flow-launcher/flow-launcher.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>flow-launcher</id>
<title>Flow Launcher</title>
<version>1.16.2</version>
<version>1.17.2</version>
<authors>Flow-Launcher Team</authors>
<projectUrl>https://www.flowlauncher.com</projectUrl>
<packageSourceUrl>https://github.com/Flow-Launcher/chocolatey-package</packageSourceUrl>
Expand Down
4 changes: 2 additions & 2 deletions flow-launcher/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$ErrorActionPreference = 'Stop';
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url64bit = 'https://github.com/Flow-Launcher/Flow.Launcher/releases/download/v1.16.2/Flow-Launcher-Setup.exe'
$url64bit = 'https://github.com/Flow-Launcher/Flow.Launcher/releases/download/v1.17.2/Flow-Launcher-Setup.exe'

If (Test-Path $env:LOCALAPPDATA\FlowLauncher\Flow.Launcher.exe){
$version = [System.Diagnostics.FileVersionInfo]::GetVersionInfo("$env:LocalAppData\FlowLauncher\Flow.Launcher.exe").FileVersion
Expand All @@ -15,7 +15,7 @@ $packageArgs = @{
fileType = 'exe'
url64bit = $url64bit
softwareName = 'Flow-Launcher*'
checksum64 = 'cde20eabce153d52718ceba413347a0e38b1852ae2309b66a733f3ee2a1df8ce'
checksum64 = '81fcfb53cd5cb589a418edd62da80390e3fa6f6eae39204c0bea53e3b33df1fa'
checksumType64 = 'sha256'
silentArgs = "/qn /norestart /l*v `"$($env:TEMP)\$($packageName).$($env:chocolateyPackageVersion).MsiInstall.log`""
validExitCodes = @(0, 3010, 1641)
Expand Down

0 comments on commit 50da633

Please sign in to comment.