feat: implement package manager support for Windows and macOS, including Chocolatey and Homebrew configurations
Some checks are pending
Tests & Quality Checks / Test on Python 3.11 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.11-1 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12-1 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.10 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.11-2 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12-2 (push) Waiting to run
Tests & Quality Checks / Build Artifacts (push) Blocked by required conditions
Tests & Quality Checks / Build Artifacts-1 (push) Blocked by required conditions
Some checks are pending
Tests & Quality Checks / Test on Python 3.11 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.11-1 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12-1 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.10 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.11-2 (push) Waiting to run
Tests & Quality Checks / Test on Python 3.12-2 (push) Waiting to run
Tests & Quality Checks / Build Artifacts (push) Blocked by required conditions
Tests & Quality Checks / Build Artifacts-1 (push) Blocked by required conditions
This commit is contained in:
parent
1dcce081f1
commit
87884935c9
9 changed files with 758 additions and 10 deletions
47
build/chocolatey/tools/chocolateyInstall.ps1
Normal file
47
build/chocolatey/tools/chocolateyInstall.ps1
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
$PackageName = 'webdrop-bridge'
|
||||
$Version = '0.8.0'
|
||||
$Url = "https://git.him-tools.de/HIM-public/webdrop-bridge/releases/download/v$Version/WebDropBridge_Setup.msi"
|
||||
$Checksum = '' # Update with actual SHA256 checksum from release
|
||||
$ChecksumType = 'sha256'
|
||||
|
||||
# Create temporary directory for download
|
||||
$TempDir = Join-Path $env:TEMP "webdrop-bridge-$Version"
|
||||
New-Item -ItemType Directory -Path $TempDir -Force | Out-Null
|
||||
|
||||
try {
|
||||
# Download MSI installer
|
||||
Write-Host "Downloading WebDropBridge $Version MSI installer..."
|
||||
$InstallerPath = Join-Path $TempDir "WebDropBridge_Setup.msi"
|
||||
|
||||
Get-ChocolateyWebFile -PackageName $PackageName `
|
||||
-FileFullPath $InstallerPath `
|
||||
-Url $Url `
|
||||
-Checksum $Checksum `
|
||||
-ChecksumType $ChecksumType
|
||||
|
||||
# Install MSI
|
||||
Write-Host "Installing WebDropBridge..."
|
||||
$InstallArgs = @(
|
||||
'/i'
|
||||
"`"$InstallerPath`""
|
||||
'/quiet' # Silent installation
|
||||
'/norestart' # Don't restart immediately
|
||||
)
|
||||
|
||||
Invoke-ChocolateyInstall -PackageName $PackageName `
|
||||
-File 'msiexec.exe' `
|
||||
-FileArgs $InstallArgs `
|
||||
-ValidExitCodes @(0, 3010) # 0=success, 3010=restart needed
|
||||
|
||||
Write-Host "WebDropBridge installed successfully"
|
||||
} catch {
|
||||
Write-Error "Installation failed: $_"
|
||||
exit 1
|
||||
} finally {
|
||||
# Cleanup
|
||||
if (Test-Path $TempDir) {
|
||||
Remove-Item $TempDir -Recurse -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue