choco spec

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-09-22 14:27:09 +02:00
parent cb896f9ac9
commit fac56c0b2d
3 changed files with 82 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
<?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 & 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>
+28
View File
@@ -0,0 +1,28 @@
$ErrorActionPreference = 'Stop'
$packageName = 'rclone-ui'
$toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
$url_x64 = 'URL_X64'
$sha_x64 = 'SHA256_x64'
$url_arm64 = 'URL_ARM64'
$sha_arm64 = 'SHA256_arm64'
$silentArgs = '/S /AllUsers'
$arch = (Get-CimInstance Win32_Processor | Select-Object -First 1 -ExpandProperty Architecture)
$isArm = $arch -eq 12 # 12 = ARM64, 9 = x64
$url = $isArm ? $url_arm64 : $url_x64
$sha = $isArm ? $sha_arm64 : $sha_x64
$packageArgs = @{
packageName = $packageName
fileType = 'exe'
url64bit = $url
checksum64 = $sha
checksumType64 = 'sha256'
silentArgs = $silentArgs
validExitCodes = @(0)
}
Install-ChocolateyPackage @packageArgs
+14
View File
@@ -0,0 +1,14 @@
$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