spotube/packaging/chocolatey/tools/chocolateyinstall.ps1
Kingkor Roy Tirtho 8ab9463c9a feat(packaging): Flathub, AUR, WinGet and Chocolatey publishing
- Flatpak manifest (GNOME 51, libvlc built from source) installing from a new
  portable spotube-linux-<version>-<arch>.tar.xz, shared with the AUR package
- Release workflow builds and attaches the Linux tarballs for x86_64 and aarch64
- Package files are JMustache templates rendered by :composeApp:renderPackaging<Target>
  with the version, release asset checksums and git-cliff release notes; the
  metainfo release history is generated
- Publish workflow (workflow_dispatch, release tag input) renders once and pushes to
  Flathub, the AUR, WinGet (PR from team-spotube/winget-pkgs) and Chocolatey
- Chocolatey and WinGet updated for the NSIS installer
2026-10-23 10:08:29 +06:00

20 lines
644 B
PowerShell

$ErrorActionPreference = 'Stop'; # stop on all errors
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$fileLocation = Join-Path $toolsDir 'Spotube-windows-x86_64-setup.exe'
$packageArgs = @{
packageName = $env:ChocolateyPackageName
fileType = 'exe'
file = $fileLocation
softwareName = 'Spotube*'
silentArgs = '/S' # NSIS (electron-builder one-click, per-user)
validExitCodes= @(0)
}
Install-ChocolateyInstallPackage @packageArgs
# The installer was only needed to install; don't keep a copy in the package directory
Remove-Item $fileLocation -Force -ErrorAction SilentlyContinue