Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-09-23 17:40:55 +02:00
parent 5502cdd51c
commit 7277569334
9 changed files with 0 additions and 521 deletions
-120
View File
@@ -1,120 +0,0 @@
name: Choco
on:
# release:
# types: [published]
workflow_dispatch:
inputs:
version:
description: "Version to publish (e.g. 2.6.0). If empty, use the release tag."
required: false
jobs:
choco:
runs-on: windows-latest
env:
PACKAGE_ID: rclone-ui
CHOCO_DIR: choco
INSTALL_SCRIPT: choco/tools/chocolateyinstall.ps1
OUTDIR: choco/out
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Show choco version
shell: pwsh
run: choco --version
- name: Determine version (from tag or input)
id: ver
shell: pwsh
run: |
$v = if ("${{ github.event.release.tag_name }}") { "${{ github.event.release.tag_name }}" }
elseif ("${{ inputs.version }}") { "${{ inputs.version }}" }
else { throw "No version provided. Use a release tag (vX.Y.Z) or pass inputs.version." }
$v = $v.TrimStart('v')
"version=$v" >> $env:GITHUB_OUTPUT
- name: Download release assets (Rclone.UI_* .exe)
uses: robinraju/release-downloader@v1
with:
repository: ${{ github.repository }}
tag: v${{ steps.ver.outputs.version }}
fileName: "Rclone.UI_*.exe"
out-file-path: dist
token: ${{ secrets.GITHUB_TOKEN }}
- name: Compute SHA256 and build canonical URLs
id: assets
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$v = '${{ steps.ver.outputs.version }}'
$repo = '${{ github.repository }}'
$base = "https://github.com/$repo/releases/download/v$v"
$x64 = Get-ChildItem "dist\*x64*.exe" -ErrorAction SilentlyContinue | Select-Object -First 1
$arm = Get-ChildItem "dist\*arm64*.exe" -ErrorAction SilentlyContinue | Select-Object -First 1
if (-not $x64) { throw "x64 EXE not found under dist/ (expected Rclone.UI_x64.exe)" }
$x64sha = (Get-FileHash $x64.FullName -Algorithm SHA256).Hash
"x64_url=$base/$($x64.Name)" >> $env:GITHUB_OUTPUT
"x64_sha=$x64sha" >> $env:GITHUB_OUTPUT
if ($arm) {
$armsha = (Get-FileHash $arm.FullName -Algorithm SHA256).Hash
"arm64_url=$base/$($arm.Name)" >> $env:GITHUB_OUTPUT
"arm64_sha=$armsha" >> $env:GITHUB_OUTPUT
} else {
# If you ever skip arm64, just mirror x64 to keep placeholders filled.
"arm64_url=$base/$($x64.Name)" >> $env:GITHUB_OUTPUT
"arm64_sha=$x64sha" >> $env:GITHUB_OUTPUT
}
- name: Locate .nuspec under choco/
id: nuspec
shell: pwsh
run: |
$n = Get-ChildItem '${{ env.CHOCO_DIR }}' -Filter *.nuspec | Select-Object -First 1 -ExpandProperty FullName
if (-not $n) { throw "No .nuspec found under $env:CHOCO_DIR" }
"path=$n" >> $env:GITHUB_OUTPUT
- name: Set nuspec version
shell: pwsh
run: |
$nuspec = "${{ steps.nuspec.outputs.path }}"
$xml = [xml](Get-Content $nuspec)
$xml.package.metadata.version = '${{ steps.ver.outputs.version }}'
$xml.Save((Resolve-Path $nuspec))
- name: Inject URLs + SHA256 into choco/tools/chocolateyinstall.ps1
shell: pwsh
run: |
$f = "${{ env.INSTALL_SCRIPT }}"
if (-not (Test-Path $f)) { throw "Install script not found at $f" }
(Get-Content $f) `
-replace "(?m)(^\s*\$url_x64\s*=\s*)'.*?'", "`$1'${{ steps.assets.outputs.x64_url }}'" `
-replace "(?m)(^\s*\$sha_x64\s*=\s*)'.*?'", "`$1'${{ steps.assets.outputs.x64_sha }}'" `
-replace "(?m)(^\s*\$url_arm64\s*=\s*)'.*?'", "`$1'${{ steps.assets.outputs.arm64_url }}'" `
-replace "(?m)(^\s*\$sha_arm64\s*=\s*)'.*?'", "`$1'${{ steps.assets.outputs.arm64_sha }}'" `
| Set-Content $f -Encoding UTF8
- name: Pack Chocolatey package
shell: pwsh
run: |
New-Item -ItemType Directory -Force -Path "${{ env.OUTDIR }}" | Out-Null
choco pack "${{ steps.nuspec.outputs.path }}" --out "${{ env.OUTDIR }}" --no-progress
- name: Local install/uninstall
shell: pwsh
run: |
$pkg = Join-Path '${{ env.OUTDIR }}' "${{ env.PACKAGE_ID }}.${{ steps.ver.outputs.version }}.nupkg"
choco install ${{ env.PACKAGE_ID }} --source "'${{ env.OUTDIR }}'" -y --no-progress
choco uninstall ${{ env.PACKAGE_ID }} -y --no-progress
# - name: Push to Chocolatey Community Repository
# if: startsWith(github.ref, 'refs/tags/')
# env:
# CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }}
# shell: pwsh
# run: |
# $pkg = Join-Path '${{ env.OUTDIR }}' "${{ env.PACKAGE_ID }}.${{ steps.ver.outputs.version }}.nupkg"
# choco apikey --source https://push.chocolatey.org/ --key $env:CHOCO_API_KEY
# choco push $pkg --source https://push.chocolatey.org/ --no-progress
-32
View File
@@ -1,32 +0,0 @@
name: WinGet
on:
workflow_dispatch:
jobs:
validate:
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Ensure WinGet CLI is present
uses: Cyberboss/install-winget@v1
- name: Show winget version
shell: pwsh
run: winget --version
- name: Validate manifests
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
if (-not (Test-Path -Path "$pwd\winget")) {
Write-Error "Expected manifests directory '$pwd\winget' not found."
}
# Run validation non-interactively and with verbose logs for CI
Write-Host "Validating manifests in $pwd\winget"
winget validate --manifest "$pwd\winget" --disable-interactivity --verbose-logs `
| Tee-Object -FilePath "$pwd\winget-validate-output.txt"
-165
View File
@@ -1,165 +0,0 @@
name: WinGet2
on:
workflow_dispatch:
jobs:
validate-and-test:
runs-on: windows-2025
env:
MANIFEST_DIR: winget
PACKAGE_ID: RcloneUI.RcloneUI
EXPECTED_NAME: Rclone UI
EXPECTED_PUBLISHER: Rclone UI
EXPECTED_VERSION: 2.6.0
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Show winget version
shell: pwsh
run: winget --version
- name: Validate manifest (schema/rules)
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
if (-not (Test-Path $env:MANIFEST_DIR)) { throw "Missing $env:MANIFEST_DIR" }
winget validate --manifest $env:MANIFEST_DIR --disable-interactivity --verbose-logs `
| Tee-Object -FilePath "$pwd\winget-validate.txt"
- name: Enable local manifest installs
shell: pwsh
run: |
# Required to install directly from a local manifest folder. :contentReference[oaicite:2]{index=2}
winget settings --enable LocalManifestFiles
- name: Install PowerShell YAML module (for parsing the manifest)
shell: pwsh
run: |
Install-Module -Name powershell-yaml -Force -Scope CurrentUser
- name: Check installer URLs + verify SHA256 for all installers (x64 & arm64)
shell: pwsh
run: |
Import-Module powershell-yaml
$manifestFiles = Get-ChildItem -Path $env:MANIFEST_DIR -Include *.yml,*.yaml -File -Recurse
if (-not $manifestFiles) { throw "No manifest files found in $env:MANIFEST_DIR" }
$rows = @()
foreach ($f in $manifestFiles) {
$y = (Get-Content -Raw $f.FullName) | ConvertFrom-Yaml
if ($y.ManifestType -ne 'installer') { continue }
foreach ($inst in $y.Installers) {
$url = $inst.InstallerUrl
$sha = ($inst.InstallerSha256 ?? $inst.InstallerSha256Hash ?? $inst.Sha256) # tolerate naming
$arch = $inst.Architecture
$scope = $inst.Scope
$out = Join-Path $env:RUNNER_TEMP ("installer_{0}_{1}{2}" -f $arch, $scope, [IO.Path]::GetExtension($url))
Write-Host "Downloading $url -> $out"
Invoke-WebRequest -Uri $url -OutFile $out -UseBasicParsing
$got = (Get-FileHash -Path $out -Algorithm SHA256).Hash.ToLower()
$ok = $got -eq $sha.ToLower()
$rows += [pscustomobject]@{
File = $out; Architecture=$arch; Scope=$scope; Url=$url; ExpectedSHA=$sha; ActualSHA=$got; Match=$ok
}
if (-not $ok) { throw "SHA256 mismatch for $url" }
}
}
$rows | Format-Table | Out-String | Tee-Object "$pwd\hash-check.txt"
- name: Matrix install tests (x64 / user & machine)
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
$scopes = @('user','machine')
# Prime sources once to avoid first-run prompts
winget source list --accept-source-agreements | Out-Null
winget source update --accept-source-agreements | Out-Null
foreach ($scope in $scopes) {
Write-Host "=== INSTALL TEST scope=$scope (x64) ==="
# Before: plain 'list' caused the msstore prompt
winget list --id $env:PACKAGE_ID -e --source winget --accept-source-agreements `
| Tee-Object -FilePath "$pwd\winget-list-before-$scope.txt"
# Best-effort uninstall in case a prior run left state around
winget uninstall --id $env:PACKAGE_ID -e --scope $scope --silent `
--source winget --accept-source-agreements --disable-interactivity --verbose-logs 2>$null
# Install from the local manifest.
winget install --manifest $env:MANIFEST_DIR --scope $scope --architecture x64 --silent `
--dependency-source winget --accept-source-agreements --accept-package-agreements `
--disable-interactivity --verbose-logs `
| Tee-Object -FilePath "$pwd\winget-install-$scope.txt"
# Post-install presence check (also pinned to 'winget' to avoid msstore)
winget list --id $env:PACKAGE_ID -e --source winget --accept-source-agreements `
| Tee-Object -FilePath "$pwd\winget-list-after-$scope.txt"
# Verify ARP entry in the appropriate registry hive (unchanged)
if ($scope -eq 'machine') {
$roots = @(
'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall',
'HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall'
)
} else {
$roots = @('HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall')
}
$found = $false
foreach ($root in $roots) {
if (Test-Path $root) {
Get-ChildItem $root | ForEach-Object {
$p = Get-ItemProperty $_.PsPath -ErrorAction SilentlyContinue
if ($p.DisplayName -eq $env:EXPECTED_NAME) {
$found = $true
"ARP ($scope): Name=$($p.DisplayName) Publisher=$($p.Publisher) Version=$($p.DisplayVersion)" `
| Tee-Object -FilePath "$pwd\arp-$scope.txt"
if ($p.Publisher -ne $env:EXPECTED_PUBLISHER -or $p.DisplayVersion -ne $env:EXPECTED_VERSION) {
throw "ARP mismatch for $scope."
}
}
}
}
}
if (-not $found) { throw "ARP entry '$env:EXPECTED_NAME' not found for $scope scope." }
# Dependency presence check (pin to 'winget' to avoid msstore)
winget list --id Microsoft.EdgeWebView2Runtime -e --source winget --accept-source-agreements `
| Tee-Object -FilePath "$pwd\webview2-$scope.txt"
# Clean uninstall (also pinned)
winget uninstall --id $env:PACKAGE_ID -e --scope $scope --silent `
--source winget --accept-source-agreements --disable-interactivity --verbose-logs `
| Tee-Object -FilePath "$pwd\winget-uninstall-$scope.txt"
winget list --id $env:PACKAGE_ID -e --source winget --accept-source-agreements `
| Tee-Object -FilePath "$pwd\winget-list-final-$scope.txt"
}
# - name: Collect WinGet logs + step outputs
# if: always()
# uses: actions/upload-artifact@v4
# with:
# name: winget-ci-logs
# path: |
# *.txt
# ${{ env.LOCALAPPDATA }}\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\*.log
# if-no-files-found: ignore
- name: CI summary
if: always()
shell: pwsh
run: |
"## WinGet CI Summary`n" | Out-File $env:GITHUB_STEP_SUMMARY -Append
Get-Content "$pwd\winget-validate.txt" -ErrorAction SilentlyContinue | Out-File $env:GITHUB_STEP_SUMMARY -Append
"`n---`nHashes:`n" | Out-File $env:GITHUB_STEP_SUMMARY -Append
Get-Content "$pwd\hash-check.txt" -ErrorAction SilentlyContinue | Out-File $env:GITHUB_STEP_SUMMARY -Append
-40
View File
@@ -1,40 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>rclone-ui</id>
<version>2.6.0</version>
<title>Rclone UI</title>
<authors>RcloneUI</authors>
<owners>RcloneUI</owners>
<projectUrl>https://github.com/rclone-ui/rclone-ui</projectUrl>
<projectSourceUrl>https://github.com/rclone-ui/rclone-ui</projectSourceUrl>
<docsUrl>https://github.com/rclone-ui/rclone-ui</docsUrl>
<bugTrackerUrl>https://github.com/rclone-ui/rclone-ui/issues</bugTrackerUrl>
<licenseUrl>https://github.com/rclone-ui/rclone-ui?tab=Apache-2.0-1-ov-file#readme</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<summary>GUI for Rclone.</summary>
<description>
A light, transparent layer on top of rclone to manage your remotes &amp; tasks in a more user-friendly way.
Features;
- Works with your existing rclone installation (or can install rclone for you) and keeps it updated (with your approval)
- Add/Edit/Remove Remotes
- Sync, Copy, Move, Delete, Purge, Serve, Mount, etc
- Save time by setting default flags for each Remote separately, for each operation (Mount, Sync, Copy, etc)
- Customize the flags (parameters) when running an operation, on a case by case basis
- Embedded documentation for each flag, no need to google what everything does!
- File Browser
- Proxy
- Scheduled Tasks (cron)
- Job Logs (visualize all background operations)
- Start on boot (autostart) and Mount on start (automount)
- Set a password for the Settings panel
- Hide commands or Remotes from the tray menu
- Import/Export Configs (encrypted with pass or command)
</description>
<tags>rclone rsync drive sync cloud storage</tags>
</metadata>
</package>
-49
View File
@@ -1,49 +0,0 @@
$ErrorActionPreference = 'Stop'
$packageName = 'rclone-ui'
$toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
$url_x64 = 'x64'
$sha_x64 = 'x64'
$url_arm64 = 'arm64'
$sha_arm64 = 'arm64'
$repo = 'rclone-ui/rclone-ui'
$pkgVersion = $env:ChocolateyPackageVersion
if (-not $pkgVersion) { $pkgVersion = $env:chocolateyPackageVersion }
$base = if ($pkgVersion) { "https://github.com/$repo/releases/download/v$pkgVersion" } else { $null }
$defaultUrlX64 = if ($base) { "$base/Rclone.UI_x64.exe" } else { $null }
$defaultUrlArm64 = if ($base) { "$base/Rclone.UI_arm64.exe" } else { $null }
$arch = (Get-CimInstance Win32_Processor | Select-Object -First 1 -ExpandProperty Architecture)
$isArm = $arch -eq 12
if ($isArm) {
$url = $url_arm64
$sha = $sha_arm64
} else {
$url = $url_x64
$sha = $sha_x64
}
if (-not ($url -match '^https?://')) {
if ($isArm -and $defaultUrlArm64) {
$url = $defaultUrlArm64
} elseif ($defaultUrlX64) {
$url = $defaultUrlX64
}
}
$packageArgs = @{
packageName = $packageName
fileType = 'exe'
url64bit = $url
silentArgs = '/S /AllUsers'
validExitCodes = @(0)
}
if ($sha -match '^[0-9A-Fa-f]{64}$') {
$packageArgs['checksum64'] = $sha
$packageArgs['checksumType64'] = 'sha256'
}
Install-ChocolateyPackage @packageArgs
-14
View File
@@ -1,14 +0,0 @@
$ErrorActionPreference = 'Stop'
$packageName = 'rclone-ui'
$displayName = 'Rclone UI*'
$uninstKeys = Get-UninstallRegistryKey -SoftwareName $displayName
if (-not $uninstKeys -or $uninstKeys.Count -eq 0) {
Write-Warning "No uninstall entry found for $displayName"
return
}
$uninstString = $uninstKeys[0].UninstallString
Uninstall-ChocolateyPackage -PackageName $packageName -FileType 'exe' -SilentArgs '/S' -File $uninstString
-69
View File
@@ -1,69 +0,0 @@
PackageIdentifier: RcloneUI.RcloneUI
PackageVersion: 2.6.0
InstallerLocale: en-US
MinimumOSVersion: 10.0.0.0
Platform:
- Windows.Desktop
InstallerType: nullsoft
Scope: machine
InstallModes:
- interactive
- silent
- silentWithProgress
UpgradeBehavior: install
ElevationRequirement: elevatesSelf
Dependencies:
PackageDependencies:
- PackageIdentifier: Microsoft.EdgeWebView2Runtime
Installers:
- Architecture: x64
Scope: user
InstallerUrl: https://github.com/rclone-ui/rclone-ui/releases/download/v2.6.0/Rclone.UI_x64.exe
InstallerSha256: C40ED89DC2F512FF4ED12E1801A75A52C46E8C48C534515CDC0C413A9CCFEAA4
InstallerSwitches:
Silent: /S
SilentWithProgress: /S
Custom: /CurrentUser
AppsAndFeaturesEntries:
- DisplayName: Rclone UI
Publisher: Rclone UI
DisplayVersion: 2.6.0
- Architecture: x64
Scope: machine
InstallerUrl: https://github.com/rclone-ui/rclone-ui/releases/download/v2.6.0/Rclone.UI_x64.exe
InstallerSha256: C40ED89DC2F512FF4ED12E1801A75A52C46E8C48C534515CDC0C413A9CCFEAA4
InstallerSwitches:
Silent: /S
SilentWithProgress: /S
Custom: /AllUsers
AppsAndFeaturesEntries:
- DisplayName: Rclone UI
Publisher: Rclone UI
DisplayVersion: 2.6.0
- Architecture: arm64
Scope: user
InstallerUrl: https://github.com/rclone-ui/rclone-ui/releases/download/v2.6.0/Rclone.UI_arm64.exe
InstallerSha256: A69968F8E3B32A42B826CCAD56B91972AC8AE659A2682404F3103D31D62DF3E0
InstallerSwitches:
Silent: /S
SilentWithProgress: /S
Custom: /CurrentUser
AppsAndFeaturesEntries:
- DisplayName: Rclone UI
Publisher: Rclone UI
DisplayVersion: 2.6.0
- Architecture: arm64
Scope: machine
InstallerUrl: https://github.com/rclone-ui/rclone-ui/releases/download/v2.6.0/Rclone.UI_arm64.exe
InstallerSha256: A69968F8E3B32A42B826CCAD56B91972AC8AE659A2682404F3103D31D62DF3E0
InstallerSwitches:
Silent: /S
SilentWithProgress: /S
Custom: /AllUsers
AppsAndFeaturesEntries:
- DisplayName: Rclone UI
Publisher: Rclone UI
DisplayVersion: 2.6.0
ManifestType: installer
ManifestVersion: 1.10.0
ReleaseDate: 2025-09-22
@@ -1,27 +0,0 @@
PackageIdentifier: RcloneUI.RcloneUI
PackageVersion: 2.6.0
PackageLocale: en-US
Publisher: RcloneUI
PublisherUrl: https://github.com/rclone-ui
PublisherSupportUrl: https://github.com/rclone-ui/rclone-ui/issues
Author: RcloneUI
PackageName: Rclone UI
PackageUrl: https://github.com/rclone-ui/rclone-ui
License: Apache-2.0
LicenseUrl: https://github.com/rclone-ui/rclone-ui/tree/main?tab=Apache-2.0-1-ov-file#readme
CopyrightUrl: https://github.com/rclone-ui/rclone-ui/tree/main?tab=Apache-2.0-1-ov-file#readme
ShortDescription: GUI for Rclone.
Moniker: rclone-ui
Tags:
- rclone
- rsync
- sync
- backup
- file-manager
- file-transfer
ReleaseNotesUrl: https://github.com/rclone-ui/rclone-ui/releases/tag/2.6.0
Documentations:
- DocumentLabel: Wiki
DocumentUrl: https://github.com/rclone-ui/rclone-ui/blob/main/README.md
ManifestType: defaultLocale
ManifestVersion: 1.10.0
-5
View File
@@ -1,5 +0,0 @@
PackageIdentifier: RcloneUI.RcloneUI
PackageVersion: 2.6.0
DefaultLocale: en-US
ManifestType: version
ManifestVersion: 1.10.0