Skip to content

Native iCloud apps for Windows and Linux, built in Rust. Notes, Reminders, Calendar, Contacts, Drive and Photos, offline and in sync with your iPhone.

Packages for Chocolatey, Scoop and Fedora COPR

Yashwanth Kamireddi84cd3bad5b0c
diff --git a/.copr/Makefile b/.copr/Makefile
new file mode 100644
index 0000000..1ee018e
--- /dev/null
+++ b/.copr/Makefile
@@ -0,0 +1,26 @@
+# Fedora COPR's "make srpm" source method (packaging/copr/README.md):
+# make -f .copr/Makefile srpm outdir=<dir> [spec=<path>]
+# Makes the source RPM from the commit COPR cloned, at the version src-tauri/tauri.conf.json
+# says (written into the spec's Version), so a tag needs no edit here or in the spec.
+
+root := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))/..)
+# COPR passes spec= with whatever the package's Spec File field holds, which may be empty.
+specfile := $(abspath $(if $(spec),$(spec),$(root)/packaging/copr/skykeep.spec))
+outdir ?= $(root)/.copr/out
+version := $(shell sed -n 's/^ "version": "\([^"]*\)",$$/\1/p' $(root)/src-tauri/tauri.conf.json)
+work := $(abspath $(outdir))/.srpm-work
+
+srpm:
+ @test -n "$(version)" || { echo "no version in src-tauri/tauri.conf.json" >&2; exit 1; }
+ command -v git >/dev/null && command -v rpmbuild >/dev/null || dnf -y install git rpm-build
+ mkdir -p $(work)
+ git -c safe.directory='*' -C $(root) archive --format=tar.gz \
+ --prefix=Skykeep-$(version)/ -o $(work)/Skykeep-$(version).tar.gz HEAD
+ sed 's/^Version:.*/Version: $(version)/' $(specfile) > $(work)/skykeep.spec
+ rpmbuild -bs \
+ --define "_sourcedir $(work)" \
+ --define "_srcrpmdir $(abspath $(outdir))" \
+ $(work)/skykeep.spec
+ rm -rf $(work)
+
+.PHONY: srpm
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7754575..7bf7bc4 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -5,10 +5,12 @@
# web — npm ci, the type check, the production build, the model tests, and a smoke run of
# the key interface suites in Chromium against `vite preview`.
# The two run side by side. A newer push to the same branch or pull request cancels the older
-# run. Windows is proven by windows.yml, by hand or by a release.
+# run. Windows is proven by windows.yml, by hand or by a release. A branch can be run by hand
+# (Actions → CI → Run workflow) before it goes to main.
name: CI
on:
+ workflow_dispatch:
push:
branches: [main]
pull_request:
diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml
new file mode 100644
index 0000000..9fd4f88
--- /dev/null
+++ b/.github/workflows/packages.yml
@@ -0,0 +1,234 @@
+# The Chocolatey, Scoop and Fedora COPR packages in packaging/, each proven before it is
+# published (by hand, from packaging/<channel>/README.md). Run by hand: Actions → Packages →
+# Run workflow, with the release to package.
+# windows — packs the Chocolatey package and installs, checks and uninstalls it; installs the
+# Scoop manifest, starts Skykeep from it, checks Scoop's checkver and autoupdate
+# find the release, and uninstalls it. Keeps the .nupkg and the manifest.
+# copr — on each Fedora, makes the source RPM with .copr/Makefile exactly as COPR does,
+# rebuilds it with rpmbuild, and installs and runs the package in a clean container
+# of that Fedora (packaging/linux-compat/check.sh).
+name: Packages
+
+on:
+ workflow_dispatch:
+ inputs:
+ version:
+ description: "Release to package, without the v (its files must be on GitHub Releases)"
+ type: string
+ default: "0.1.3"
+
+permissions:
+ contents: read
+
+env:
+ VERSION: ${{ inputs.version || '0.1.2' }}
+
+jobs:
+ windows:
+ runs-on: windows-latest
+ timeout-minutes: 30
+ steps:
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - name: Point the packages at the release
+ shell: pwsh
+ run: |
+ $base = "https://github.com/YashwanthKamireddi/Skykeep/releases/download/v$env:VERSION"
+ # Saved and read back: the release serves it as octet-stream, which Invoke-WebRequest
+ # hands over as bytes, not text.
+ Invoke-WebRequest "$base/SHA256SUMS-windows.txt" -OutFile "$env:RUNNER_TEMP\sums.txt"
+ $sums = Get-Content "$env:RUNNER_TEMP\sums.txt" -Raw
+ $line = $sums -split "`n" | Where-Object { $_ -match "\sSkykeep_$([regex]::Escape($env:VERSION))_x64-setup\.exe\s*$" }
+ if (-not $line) { throw "no installer for $env:VERSION in SHA256SUMS-windows.txt" }
+ $hash = ($line -split '\s+')[0].ToLower()
+ [xml]$nuspec = Get-Content packaging/chocolatey/skykeep.nuspec
+ $old = $nuspec.package.metadata.version
+ $oldHash = (Select-String -Path packaging/chocolatey/tools/chocolateyinstall.ps1 -Pattern "checksum64\s*=\s*'([0-9a-f]{64})'").Matches[0].Groups[1].Value
+ foreach ($f in "packaging/chocolatey/skykeep.nuspec", "packaging/chocolatey/tools/chocolateyinstall.ps1", "packaging/scoop/skykeep.json") {
+ (Get-Content $f -Raw).Replace($old, $env:VERSION).Replace($oldHash, $hash) | Set-Content $f -NoNewline
+ }
+ "$old -> $env:VERSION, installer sha256 $hash"
+ git diff --stat
+
+ - name: Chocolatey — pack, install, check, uninstall
+ shell: pwsh
+ run: |
+ choco pack packaging/chocolatey/skykeep.nuspec --outputdirectory out
+ if ($LASTEXITCODE) { throw "choco pack failed" }
+ choco install skykeep --source "$PWD\out" -y --no-progress
+ if ($LASTEXITCODE) { throw "choco install failed ($LASTEXITCODE)" }
+ $exe = (Get-ChildItem $env:LOCALAPPDATA -Recurse -Depth 3 -Filter skykeep.exe -ErrorAction SilentlyContinue | Select-Object -First 1).FullName
+ if (-not $exe) { throw "choco install ran, but there is no skykeep.exe" }
+ $key = Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* |
+ Where-Object DisplayName -eq 'Skykeep'
+ if ($key.DisplayVersion -ne $env:VERSION) { throw "installed version is '$($key.DisplayVersion)'" }
+ $list = choco list skykeep --exact --limit-output
+ if ($list -ne "skykeep|$env:VERSION") { throw "choco list says '$list'" }
+ "installed: $exe, Skykeep $($key.DisplayVersion), $list"
+ choco uninstall skykeep -y --no-progress
+ if ($LASTEXITCODE) { throw "choco uninstall failed ($LASTEXITCODE)" }
+ if (Test-Path $exe) { throw "uninstalled, but $exe is still there" }
+ if (choco list skykeep --exact --limit-output) { throw "choco still lists skykeep" }
+ "uninstalled: skykeep.exe gone and choco lists nothing"
+
+ - name: Scoop — install, start, checkver and autoupdate, uninstall
+ shell: pwsh
+ env:
+ GITHUB_TOKEN: ${{ github.token }}
+ run: |
+ Invoke-Expression "& {$(Invoke-RestMethod https://get.scoop.sh)} -RunAsAdmin"
+ $env:PATH = "$env:USERPROFILE\scoop\shims;$env:PATH"
+ scoop install "$PWD\packaging\scoop\skykeep.json"
+ if ($LASTEXITCODE) { throw "scoop install failed" }
+ $dir = "$env:USERPROFILE\scoop\apps\skykeep\current"
+ Get-ChildItem $dir | Format-Table Name, Length
+ foreach ($f in "skykeep.exe", "scoop-install.json", "scoop-manifest.json") {
+ if (-not (Test-Path "$dir\$f")) { throw "no $f in $dir" }
+ }
+ if (Get-ChildItem $dir -Filter 'uninstall*') { throw "the NSIS uninstaller was left in $dir" }
+ if (Get-ChildItem $dir -Filter '$*') { throw "NSIS's own folders were left in $dir" }
+ $menu = "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Scoop Apps"
+ $links = @(Get-ChildItem $menu -Filter 'Skykeep*.lnk').Name | Sort-Object
+ "shortcuts: $($links -join ', ')"
+ if ($links.Count -ne 7) { throw "expected 7 Skykeep shortcuts, found $($links.Count)" }
+ $notes = (New-Object -ComObject WScript.Shell).CreateShortcut("$menu\Skykeep Notes.lnk")
+ if ($notes.Arguments -ne '--app notes') { throw "Skykeep Notes runs '$($notes.Arguments)'" }
+
+ # Started from Scoop's folder, it runs (and stays running).
+ $p = Start-Process "$dir\skykeep.exe" -PassThru
+ Start-Sleep -Seconds 15
+ if ($p.HasExited) { throw "Skykeep exited at once (code $($p.ExitCode))" }
+ "Skykeep running from Scoop (pid $($p.Id))"
+ Get-Process skykeep -ErrorAction SilentlyContinue | Stop-Process -Force
+ Start-Sleep -Seconds 2
+
+ # checkver finds the release on GitHub, and autoupdate rebuilds the manifest from it —
+ # the URL and the hash read from SHA256SUMS-windows.txt — exactly as committed.
+ $bin = "$env:USERPROFILE\scoop\apps\scoop\current\bin"
+ New-Item -ItemType Directory check | Out-Null
+ Copy-Item packaging/scoop/skykeep.json check/
+ & "$bin\checkver.ps1" -App skykeep -Dir "$PWD\check" -ForceUpdate -Version $env:VERSION
+ $want = Get-Content packaging/scoop/skykeep.json -Raw | ConvertFrom-Json
+ $got = Get-Content check/skykeep.json -Raw | ConvertFrom-Json
+ foreach ($k in 'url', 'hash') {
+ if ($got.architecture.'64bit'.$k -ne $want.architecture.'64bit'.$k) {
+ throw "autoupdate's $k is '$($got.architecture.'64bit'.$k)', not '$($want.architecture.'64bit'.$k)'"
+ }
+ }
+ & "$bin\checkver.ps1" -App skykeep -Dir "$PWD\packaging\scoop"
+ "autoupdate reproduces the manifest for $env:VERSION"
+
+ scoop uninstall skykeep
+ if ($LASTEXITCODE) { throw "scoop uninstall failed" }
+ if (Test-Path "$env:USERPROFILE\scoop\apps\skykeep") { throw "uninstalled, but Scoop's folder is still there" }
+ if (Get-ChildItem $menu -Filter 'Skykeep*.lnk' -ErrorAction SilentlyContinue) { throw "uninstalled, but shortcuts are left" }
+ "uninstalled: folder and shortcuts gone"
+
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
+ with:
+ name: windows-packages-${{ env.VERSION }}
+ path: |
+ out/*.nupkg
+ packaging/chocolatey/
+ packaging/scoop/skykeep.json
+ if-no-files-found: error
+
+ # A HEIC made for check.sh, as linux-compat.yml makes it: Fedora's heif-enc has no HEVC
+ # encoder.
+ heic:
+ runs-on: ubuntu-24.04
+ steps:
+ - run: |
+ sudo apt-get update
+ sudo apt-get install -y --no-install-recommends libheif-examples libheif-plugin-x265
+ W=64 H=48
+ { printf 'YUV4MPEG2 W%s H%s F25:1 Ip A1:1 C420jpeg\nFRAME\n' "$W" "$H"
+ LC_ALL=C awk -v w=$W -v h=$H 'BEGIN {
+ for (y = 0; y < h; y++) for (x = 0; x < w; x++) printf "%c", 16 + int(200 * x / w)
+ for (i = 0; i < w * h / 2; i++) printf "%c", 90 + int(80 * (i % (w / 2)) / (w / 2)) }'
+ } > "$RUNNER_TEMP/test.y4m"
+ heif-enc -q 80 -o test.heic "$RUNNER_TEMP/test.y4m"
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
+ with:
+ name: test-heic
+ path: test.heic
+ if-no-files-found: error
+
+ copr-build:
+ name: COPR build (Fedora ${{ matrix.fedora }})
+ runs-on: ubuntu-24.04
+ timeout-minutes: 90
+ strategy:
+ fail-fast: false
+ matrix:
+ fedora: ["43", "latest"]
+ container:
+ image: fedora:${{ matrix.fedora }}
+ steps:
+ # git first, so the checkout is a real clone, as COPR's is.
+ - run: dnf -y install git make rpm-build
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
+ - name: The source RPM, the way COPR's make_srpm makes it
+ run: |
+ make -f .copr/Makefile srpm outdir="$PWD/srpm" spec=
+ ls -l srpm
+ rpm -qp --qf '%{NAME}-%{VERSION}-%{RELEASE}\n' srpm/*.src.rpm
+ rpm -qp --qf '%{VERSION}\n' srpm/*.src.rpm | grep -qx "$VERSION" \
+ || { echo "the source RPM is not version $VERSION"; exit 1; }
+ - name: Build dependencies, from the spec
+ run: dnf -y builddep srpm/*.src.rpm
+ - name: rpmbuild
+ run: |
+ rpm -i srpm/*.src.rpm
+ rpmbuild -bb ~/rpmbuild/SPECS/skykeep.spec
+ find ~/rpmbuild/RPMS -name '*.rpm' -exec rpm -qip {} \; -exec rpm -qlp {} \;
+ - name: The check's probe, with the same crates
+ run: |
+ build=$(dirname "$(find ~/rpmbuild/BUILD -name Cargo.lock -path '*Skykeep-*' | head -1)")
+ echo "build tree: $build"
+ unset RUSTFLAGS
+ CARGO_HOME="$build/.cargo-home" CARGO_TARGET_DIR="$build/target" \
+ cargo build --release --locked -p quince-probe --example distro_check
+ mkdir compat
+ cp ~/rpmbuild/RPMS/x86_64/skykeep-*.rpm "$build/target/release/examples/distro_check" \
+ packaging/linux-compat/check.sh crates/quince-media/tests/fixtures/black-start.mp4 \
+ crates/quince-media/tests/fixtures/hevc.mov compat/
+ ls -l compat
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
+ with:
+ name: copr-fedora-${{ matrix.fedora }}
+ path: |
+ compat/
+ srpm/*.src.rpm
+ if-no-files-found: error
+ retention-days: 7
+
+ copr-install:
+ name: COPR package installed and run (Fedora ${{ matrix.fedora }})
+ needs: [copr-build, heic]
+ runs-on: ubuntu-24.04
+ timeout-minutes: 20
+ strategy:
+ fail-fast: false
+ matrix:
+ fedora: ["43", "latest"]
+ container:
+ image: fedora:${{ matrix.fedora }}
+ # gnome-keyring 51 (Fedora 45) drops its process capabilities as it starts and aborts
+ # when a default container won't let it ("error dropping process capabilities"), so the
+ # keyring check had no Secret Service. A desktop session has no such limit.
+ options: --privileged
+ steps:
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
+ with:
+ name: copr-fedora-${{ matrix.fedora }}
+ path: /copr
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
+ with:
+ name: test-heic
+ path: /copr/compat
+ - name: Install and run
+ run: |
+ cd /copr/compat
+ chmod +x check.sh distro_check
+ bash check.sh "$PWD/$(ls skykeep-*.rpm)" "$PWD/distro_check" "$PWD/test.heic" \
+ "$PWD/black-start.mp4" "$PWD/hevc.mov"
diff --git a/packaging/README.md b/packaging/README.md
index 15a3a3e..bf7220e 100644
--- a/packaging/README.md
+++ b/packaging/README.md
@@ -7,6 +7,9 @@ Everything that turns a build into something people install.
| `arch/` | A PKGBUILD that builds the checkout it sits in. |
| `aur/` | The AUR packages, each in its own folder with its `.SRCINFO`: `skykeep` builds the release's source tarball, `skykeep-bin` installs the release's `.deb`, and `skykeep-git` builds the latest commit. |
| `flatpak/` | The Flatpak manifest for Flathub, with its own [README](flatpak/README.md). |
+| `chocolatey/` | The Chocolatey package (the release's installer, checked and run silently), with its own [README](chocolatey/README.md). |
+| `scoop/` | The Scoop manifest for a bucket of our own, with its own [README](scoop/README.md). |
+| `copr/` | The Fedora COPR spec, built from source with `../.copr/Makefile`, with its own [README](copr/README.md). |
| `apps/` | The six per-app launcher entries (Notes, Reminders, Calendar, Contacts, Drive, Photos). |
| `*.desktop.in`, `*.metainfo.xml` | The main launcher entry and the AppStream data software centres show. |
| `*.search-provider.ini`, `*.SearchProvider.service`, `*.krunner.desktop` | Results in GNOME Shell and KRunner search. |
diff --git a/packaging/chocolatey/README.md b/packaging/chocolatey/README.md
new file mode 100644
index 0000000..813c6bf
--- /dev/null
+++ b/packaging/chocolatey/README.md
@@ -0,0 +1,40 @@
+# Chocolatey
+
+`skykeep.nuspec` and `tools/` make the `skykeep` package for the Chocolatey Community
+Repository. It downloads the release's per-user NSIS installer from GitHub Releases, checks
+its SHA256 and runs it silently (`/S`); `chocolateyuninstall.ps1` runs Skykeep's own
+uninstaller and waits for it to finish. No binaries are embedded, so no `VERIFICATION.txt` or
+`LICENSE.txt` is needed in the package.
+
+Proven by `.github/workflows/packages.yml` (Actions → Packages → Run workflow): `choco pack`,
+`choco install skykeep --source .`, the installed version checked, `choco uninstall`. Its
+artifact `windows-packages-<version>` holds the packed `.nupkg` for that version.
+
+## Account
+
+A free account at <https://community.chocolatey.org/account/Register>. The nuspec's
+`<owners>` is `YashwanthKamireddi`; change it if the account's username differs. The API key
+is under <https://community.chocolatey.org/account>.
+
+## Publishing a release
+
+1. Run the Packages workflow with the version (for example `0.1.3`) and wait for green. It
+ rewrites the version and installer SHA256 (from the release's `SHA256SUMS-windows.txt`) in
+ `skykeep.nuspec` and `tools/chocolateyinstall.ps1` and packs them.
+2. Make the same change here and commit it: in `skykeep.nuspec` the `<version>` and the two
+ `v0.1.2` in `<iconUrl>` and `<releaseNotes>`; in `tools/chocolateyinstall.ps1` the
+ version in `url64bit` and `checksum64` (the `Skykeep_<ver>_x64-setup.exe` line of
+ `SHA256SUMS-windows.txt`).
+3. On any Windows machine with Chocolatey, from this folder (or with the `.nupkg` from the
+ workflow's artifact):
+
+ ```powershell
+ choco pack
+ choco apikey add --source https://push.chocolatey.org/ --key <your API key>
+ choco push skykeep.<version>.nupkg --source https://push.chocolatey.org/
+ ```
+
+4. The package goes through the automatic validator, verifier and virus scan, then a human
+ moderator for the first versions; the package page shows each result. Answer the
+ moderator's comments there. Once a few versions are approved, later ones are usually
+ approved automatically.
diff --git a/packaging/chocolatey/skykeep.nuspec b/packaging/chocolatey/skykeep.nuspec
new file mode 100644
index 0000000..b979bc6
--- /dev/null
+++ b/packaging/chocolatey/skykeep.nuspec
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
+ <metadata>
+ <id>skykeep</id>
+ <version>0.1.2</version>
+ <packageSourceUrl>https://github.com/YashwanthKamireddi/Skykeep/tree/main/packaging/chocolatey</packageSourceUrl>
+ <owners>YashwanthKamireddi</owners>
+ <title>Skykeep</title>
+ <authors>Yashwanth Kamireddi</authors>
+ <projectUrl>https://github.com/YashwanthKamireddi/Skykeep</projectUrl>
+ <iconUrl>https://cdn.jsdelivr.net/gh/YashwanthKamireddi/[email protected]/packaging/icons/skykeep.svg</iconUrl>
+ <copyright>2026 Yashwanth Kamireddi</copyright>
+ <licenseUrl>https://github.com/YashwanthKamireddi/Skykeep/blob/main/LICENSE</licenseUrl>
+ <requireLicenseAcceptance>false</requireLicenseAcceptance>
+ <projectSourceUrl>https://github.com/YashwanthKamireddi/Skykeep/tree/main</projectSourceUrl>
+ <docsUrl>https://github.com/YashwanthKamireddi/Skykeep#readme</docsUrl>
+ <bugTrackerUrl>https://github.com/YashwanthKamireddi/Skykeep/issues</bugTrackerUrl>
+ <tags>skykeep icloud notes reminders calendar contacts drive photos sync foss gpl</tags>
+ <summary>Your iCloud on your PC: Notes, Reminders, Calendar, Contacts, Drive and Photos in one app.</summary>
+ <description><![CDATA[Skykeep brings your iCloud to Windows: Notes, Reminders, Calendar, Contacts, Drive and Photos, each in its own window and kept on your computer, so they open instantly and work offline.
+
+- Six apps in one install, each with its own Start menu entry and taskbar button
+- Changes you make show at once and sync to iCloud in the background
+- Free and open source (GPL-3.0)
+
+Skykeep is an independent project. Not affiliated with Apple. iCloud is a trademark of Apple Inc.
+]]></description>
+ <releaseNotes>https://github.com/YashwanthKamireddi/Skykeep/releases/tag/v0.1.2</releaseNotes>
+ </metadata>
+ <files>
+ <file src="tools\**" target="tools" />
+ </files>
+</package>
diff --git a/packaging/chocolatey/tools/chocolateyinstall.ps1 b/packaging/chocolatey/tools/chocolateyinstall.ps1
new file mode 100644
index 0000000..fc7b1b2
--- /dev/null
+++ b/packaging/chocolatey/tools/chocolateyinstall.ps1
@@ -0,0 +1,16 @@
+$ErrorActionPreference = 'Stop'
+
+# The release's own per-user installer, checked against the SHA256 published with it
+# (SHA256SUMS-windows.txt on the release page).
+$packageArgs = @{
+ packageName = $env:ChocolateyPackageName
+ fileType = 'exe'
+ url64bit = 'https://github.com/YashwanthKamireddi/Skykeep/releases/download/v0.1.2/Skykeep_0.1.2_x64-setup.exe'
+ checksum64 = 'e70c1473a1f2c4ef198725d6e4c68d1c73835e5a4f53f6f120a23401c47ab536'
+ checksumType64 = 'sha256'
+ silentArgs = '/S'
+ validExitCodes = @(0)
+ softwareName = 'Skykeep'
+}
+
+Install-ChocolateyPackage @packageArgs
diff --git a/packaging/chocolatey/tools/chocolateyuninstall.ps1 b/packaging/chocolatey/tools/chocolateyuninstall.ps1
new file mode 100644
index 0000000..5731690
--- /dev/null
+++ b/packaging/chocolatey/tools/chocolateyuninstall.ps1
@@ -0,0 +1,26 @@
+$ErrorActionPreference = 'Stop'
+
+[array]$keys = Get-UninstallRegistryKey -SoftwareName 'Skykeep'
+
+if ($keys.Count -eq 1) {
+ $uninstaller = $keys[0].UninstallString -replace '"', ''
+ $packageArgs = @{
+ packageName = $env:ChocolateyPackageName
+ fileType = 'exe'
+ file = $uninstaller
+ silentArgs = '/S'
+ validExitCodes = @(0)
+ }
+ Uninstall-ChocolateyPackage @packageArgs
+
+ # The NSIS uninstaller hands itself to a temporary copy and returns at once; wait for that
+ # copy so the package is reported removed only once Skykeep is gone.
+ $program = Join-Path (Split-Path $uninstaller) 'skykeep.exe'
+ for ($i = 0; $i -lt 60 -and (Test-Path $program); $i++) { Start-Sleep -Seconds 1 }
+ if (Test-Path $program) { throw "Skykeep's uninstaller did not remove $program" }
+} elseif ($keys.Count -eq 0) {
+ Write-Warning "$env:ChocolateyPackageName has already been uninstalled by other means."
+} else {
+ Write-Warning "$($keys.Count) matches found; uninstall Skykeep from Settings > Apps instead."
+ $keys | ForEach-Object { Write-Warning "- $($_.DisplayName)" }
+}
diff --git a/packaging/copr/README.md b/packaging/copr/README.md
new file mode 100644
index 0000000..ebe84eb
--- /dev/null
+++ b/packaging/copr/README.md
@@ -0,0 +1,65 @@
+# Fedora COPR
+
+`skykeep.spec` builds Skykeep from source, with the same steps and files as
+`packaging/arch/PKGBUILD`: `npm ci`, `npm run build`, `cargo build --release --locked`, then
+the program, launchers, icons, metainfo and search providers under `/usr`. `.copr/Makefile` (at
+the repository root) is COPR's "make srpm" method: it makes the source RPM from the commit COPR
+cloned, with `Version` set from `src-tauri/tauri.conf.json`, so a tag needs no edit to the spec.
+
+Why this route: COPR builds from source RPMs, and a spec that repackages the released `.rpm` is
+a prebuilt binary, which COPR's rules leave unclear. A fully offline build would need every
+crate and npm package vendored into the source RPM (hundreds of MB) and regenerated each
+release. Instead the project allows network access during builds, a standard COPR project
+setting, so npm and cargo fetch exactly what `package-lock.json` and `Cargo.lock` pin.
+
+The build uses Fedora's own Rust (`rust-toolchain.toml` is for rustup and is ignored here),
+which must be at least the workspace's `rust-version`.
+
+Proven by `.github/workflows/packages.yml` (Actions → Packages → Run workflow): on Fedora 43 and
+the latest Fedora, `make -f .copr/Makefile srpm` as COPR runs it, `dnf builddep`, `rpmbuild`,
+then the package installed in a clean container of that Fedora and checked by
+`packaging/linux-compat/check.sh` (libraries, GStreamer, HEIC, video, keyring, launch,
+launchers).
+
+## Account
+
+A Fedora Account (FAS), free at <https://accounts.fedoraproject.org>. Log in to
+<https://copr.fedorainfracloud.org> with it.
+
+## Setting it up, once
+
+1. **New Project**, named `skykeep`.
+ - Chroots: `fedora-43-x86_64`, `fedora-44-x86_64` and every newer `fedora-*-x86_64` (and
+ `fedora-rawhide-x86_64` if you want it). x86_64 only.
+ - Check **Enable internet access during builds** (Other options). Without it npm and cargo
+ cannot fetch and the build fails.
+ - Description: "Your iCloud on Fedora: Notes, Reminders, Calendar, Contacts, Drive and
+ Photos. Not affiliated with Apple." Instructions: `sudo dnf copr enable
+ <your FAS name>/skykeep && sudo dnf install skykeep`.
+2. **Packages → New package → SCM**:
+ - Package name `skykeep`; Clone URL `https://github.com/YashwanthKamireddi/Skykeep.git`;
+ Committish empty; Subdirectory empty; Spec File `packaging/copr/skykeep.spec`.
+ - Build SRPM with: **make srpm**.
+ - Check **Auto-rebuild**.
+ - Save, then **Rebuild** to build the current `main` once.
+3. **The webhook**, so each tag builds itself: in COPR, Settings → Integrations, copy the
+ GitHub webhook URL (`https://copr.fedorainfracloud.org/webhooks/github/<id>/<uuid>/`). In
+ GitHub, the repository's Settings → Webhooks → Add webhook: that URL as Payload URL, content
+ type `application/json`, "Let me select individual events" → only **Branch or tag
+ creation**. Pushing a `v*` tag then builds that tag in every chroot.
+
+## Each release
+
+Nothing: the tag's webhook builds it, at the version in `tauri.conf.json`. Check the build
+on the project's Builds page. To build by hand instead: Packages → skykeep → Rebuild, with the
+tag as committish. When a new Fedora is released, add its chroot under Settings.
+
+People install it with:
+
+```sh
+sudo dnf copr enable <your FAS name>/skykeep
+sudo dnf install skykeep
+```
+
+iPhone photos (HEIC) and HEVC videos need RPM Fusion, exactly as for the release's `.rpm`
+(the main README's "iPhone photos (HEIC) on Fedora or openSUSE").
diff --git a/packaging/copr/skykeep.spec b/packaging/copr/skykeep.spec
new file mode 100644
index 0000000..1aa11f9
--- /dev/null
+++ b/packaging/copr/skykeep.spec
@@ -0,0 +1,131 @@
+# Skykeep for Fedora COPR, built from source the way packaging/arch/PKGBUILD builds it.
+#
+# npm and cargo fetch their packages during %build, so the COPR project needs "Enable internet
+# access during builds" (README.md beside this file). .copr/Makefile makes the source RPM from
+# the commit COPR cloned, with Version set to src-tauri/tauri.conf.json's; built by hand,
+# Source0 is the tag's tarball from GitHub (spectool -g).
+
+# The release profile (Cargo.toml) already strips the binary, so there is nothing to make a
+# debuginfo package from.
+%global debug_package %{nil}
+# LTO in CFLAGS compiles the C inside ring and libsqlite3-sys to bitcode that Rust's linker
+# cannot read (the PKGBUILD explains); Rust does its own link-time optimising.
+%global _lto_cflags %{nil}
+
+%global appid io.github.yashwanthkamireddi.Skykeep
+
+Name: skykeep
+Version: 0.1.2
+Release: 1%{?dist}
+Summary: Your iCloud on this computer: notes, reminders, calendar, contacts, Drive, photos
+
+License: GPL-3.0-only
+URL: https://github.com/YashwanthKamireddi/Skykeep
+Source0: %{url}/archive/v%{version}/Skykeep-%{version}.tar.gz
+
+ExclusiveArch: x86_64
+
+BuildRequires: cargo
+BuildRequires: rust
+BuildRequires: /usr/bin/npm
+BuildRequires: nodejs
+BuildRequires: gcc
+BuildRequires: gcc-c++
+BuildRequires: make
+BuildRequires: pkgconfig(webkit2gtk-4.1)
+BuildRequires: pkgconfig(gtk+-3.0)
+BuildRequires: pkgconfig(librsvg-2.0)
+BuildRequires: pkgconfig(libsecret-1)
+BuildRequires: pkgconfig(libheif) >= 1.17
+BuildRequires: pkgconfig(fuse3)
+BuildRequires: pkgconfig(gstreamer-1.0)
+BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
+BuildRequires: desktop-file-utils
+BuildRequires: libappstream-glib
+
+# The libraries the binary links are found by rpm itself. These are loaded at run time: the
+# GStreamer elements behind the video player and posters (base, good, libav, and openh264
+# for H.264 from Fedora's Cisco repository), the same list the release's .rpm declares.
+Requires: libheif >= 1.17
+Requires: gstreamer1-plugins-base
+Requires: gstreamer1-plugins-good
+Requires: gstreamer1-plugin-libav
+Requires: gstreamer1-plugin-openh264
+# iCloud Drive and Photos as folders in the file manager.
+Recommends: fuse3
+# The release's own .rpm installs the same files under the name "Skykeep".
+Conflicts: Skykeep
+
+%description
+Skykeep keeps your iCloud notes, reminders, calendar, contacts, Drive and photos on your
+own computer, so they open instantly and work offline. Six apps in one, each with its own
+launcher. Free and open source.
+
+An independent project. Not affiliated with Apple. iCloud is a trademark of Apple Inc.
+
+%prep
+%autosetup -n Skykeep-%{version}
+
+%build
+# Built with the project's own release profile, as the release's .rpm is.
+unset RUSTFLAGS
+export CARGO_HOME="$PWD/.cargo-home"
+export npm_config_cache="$PWD/.npm-cache"
+npm ci --no-audit --no-fund
+npm run build
+cargo build --release --locked -p quince-app
+
+%install
+install -Dm755 target/release/quince-app %{buildroot}%{_bindir}/skykeep
+
+sed 's|<launchable type="desktop-id">Skykeep.desktop</launchable>|<launchable type="desktop-id">%{appid}.desktop</launchable>|' \
+ packaging/%{appid}.metainfo.xml > %{appid}.metainfo.xml
+install -Dm644 %{appid}.metainfo.xml %{buildroot}%{_metainfodir}/%{appid}.metainfo.xml
+
+sed -e '/^#/d' \
+ -e 's/{{name}}/Skykeep/' \
+ -e 's/{{comment}}/Your iCloud, on this computer/' \
+ -e 's/{{exec}}/skykeep/g' \
+ -e 's/{{icon}}/%{appid}/' \
+ -e 's/{{categories}}/Office;Calendar;ContactManagement;/' \
+ packaging/%{appid}.desktop.in > %{appid}.desktop
+install -Dm644 %{appid}.desktop %{buildroot}%{_datadir}/applications/%{appid}.desktop
+for entry in packaging/apps/*.desktop; do
+ install -Dm644 "$entry" %{buildroot}%{_datadir}/applications/$(basename "$entry")
+done
+
+for size in 16x16:16x16 24x24:24x24 32x32:32x32 48x48:48x48 64x64:64x64 128x128:128x128 \
+ 256x256:128x128@2x 512x512:icon; do
+ install -Dm644 "src-tauri/icons/${size#*:}.png" \
+ %{buildroot}%{_datadir}/icons/hicolor/${size%%:*}/apps/%{appid}.png
+done
+
+sed 's|^DesktopId=Skykeep.desktop$|DesktopId=%{appid}.desktop|' \
+ packaging/%{appid}.search-provider.ini > %{appid}.search-provider.ini
+install -Dm644 %{appid}.search-provider.ini \
+ %{buildroot}%{_datadir}/gnome-shell/search-providers/%{appid}.search-provider.ini
+install -Dm644 packaging/%{appid}.SearchProvider.service \
+ %{buildroot}%{_datadir}/dbus-1/services/%{appid}.SearchProvider.service
+install -Dm644 packaging/%{appid}.krunner.desktop \
+ %{buildroot}%{_datadir}/krunner/dbusplugins/%{appid}.krunner.desktop
+
+%check
+desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
+appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{appid}.metainfo.xml
+
+%files
+%license LICENSE
+%doc README.md
+%{_bindir}/skykeep
+%{_datadir}/applications/%{appid}*.desktop
+%{_datadir}/icons/hicolor/*/apps/%{appid}.png
+%{_metainfodir}/%{appid}.metainfo.xml
+%{_datadir}/gnome-shell/search-providers/%{appid}.search-provider.ini
+%{_datadir}/dbus-1/services/%{appid}.SearchProvider.service
+%dir %{_datadir}/krunner
+%dir %{_datadir}/krunner/dbusplugins
+%{_datadir}/krunner/dbusplugins/%{appid}.krunner.desktop
+
+%changelog
+* Wed Nov 04 2026 Yashwanth Kamireddi <[email protected]> - 0.1.2-1
+- Skykeep packaged for Fedora COPR
diff --git a/packaging/scoop/README.md b/packaging/scoop/README.md
new file mode 100644
index 0000000..3c24ca6
--- /dev/null
+++ b/packaging/scoop/README.md
@@ -0,0 +1,53 @@
+# Scoop
+
+`skykeep.json` is the Scoop manifest. Scoop Extras asks for an established project (100+
+stars), so until then it is published from a bucket of your own. It unpacks the release's NSIS
+installer with 7-Zip instead of running it (the way Extras ships Tauri apps), so everything
+stays in Scoop's folder, with Start menu shortcuts for Skykeep and its six apps. (The
+installer's `.ics`/`.vcf` file associations are not registered this way.) No `persist`: Skykeep keeps its library and settings in your profile
+(`%APPDATA%`, `%LOCALAPPDATA%`), never in its own folder, so they stay across updates.
+`checkver` reads the latest GitHub release and `autoupdate` takes the installer's hash from
+the release's `SHA256SUMS-windows.txt`.
+
+Releases after 0.1.2 see Scoop's `scoop-install.json` beside `skykeep.exe` and leave updates to
+Scoop (`src-tauri/src/updates.rs`); 0.1.2 itself still offers its own update.
+
+Proven by `.github/workflows/packages.yml` (Actions → Packages → Run workflow): `scoop install`
+from this manifest, the folder and the seven shortcuts checked, Skykeep started, `checkver`
+and `autoupdate` reproducing this manifest for the release, `scoop uninstall`.
+
+## Account
+
+Only GitHub. A public repository named `scoop-bucket` (any name works) on
+`github.com/YashwanthKamireddi`.
+
+## Publishing
+
+Once, make the bucket:
+
+```sh
+gh repo create YashwanthKamireddi/scoop-bucket --public \
+ --description "Scoop bucket for Skykeep"
+git clone https://github.com/YashwanthKamireddi/scoop-bucket
+mkdir scoop-bucket/bucket
+cp packaging/scoop/skykeep.json scoop-bucket/bucket/
+cd scoop-bucket && git add . && git commit -m "skykeep 0.1.2" && git push
+```
+
+People then install it with:
+
+```powershell
+scoop bucket add skykeep https://github.com/YashwanthKamireddi/scoop-bucket
+scoop install skykeep/skykeep
+```
+
+At each release, on Windows with Scoop, update the manifest from the release and push it (and
+copy it back here):
+
+```powershell
+& "$(scoop prefix scoop)\bin\checkver.ps1" -App skykeep -Dir .\bucket -Update
+git commit -am "skykeep <version>"; git push
+```
+
+Later, with 100+ stars, the same manifest can be proposed to Scoop Extras as a pull request to
+`ScoopInstaller/Extras` (`bucket/skykeep.json`); its CI runs the same checks.
diff --git a/packaging/scoop/skykeep.json b/packaging/scoop/skykeep.json
new file mode 100644
index 0000000..e5e6d5a
--- /dev/null
+++ b/packaging/scoop/skykeep.json
@@ -0,0 +1,38 @@
+{
+ "version": "0.1.2",
+ "description": "Your iCloud on your PC: Notes, Reminders, Calendar, Contacts, Drive and Photos in one app. Not affiliated with Apple.",
+ "homepage": "https://github.com/YashwanthKamireddi/Skykeep",
+ "license": "GPL-3.0-only",
+ "notes": "Your library and settings are kept in your user profile, outside the app folder, so they stay across updates. Update with: scoop update skykeep",
+ "##": [
+ "The release's NSIS installer, unpacked by 7-Zip rather than run (the way Scoop Extras ships Tauri apps), so nothing is written outside Scoop's folder.",
+ "No persist: Skykeep keeps nothing in its own folder. Releases after 0.1.2 see Scoop's scoop-install.json beside skykeep.exe and leave updates to Scoop instead of offering their own installer."
+ ],
+ "architecture": {
+ "64bit": {
+ "url": "https://github.com/YashwanthKamireddi/Skykeep/releases/download/v0.1.2/Skykeep_0.1.2_x64-setup.exe#/dl.7z",
+ "hash": "e70c1473a1f2c4ef198725d6e4c68d1c73835e5a4f53f6f120a23401c47ab536"
+ }
+ },
+ "post_install": "Remove-Item \"$dir\\`$*\", \"$dir\\uninstall*\" -Force -Recurse -ErrorAction Ignore",
+ "shortcuts": [
+ ["skykeep.exe", "Skykeep"],
+ ["skykeep.exe", "Skykeep Notes", "--app notes"],
+ ["skykeep.exe", "Skykeep Reminders", "--app reminders"],
+ ["skykeep.exe", "Skykeep Calendar", "--app calendar"],
+ ["skykeep.exe", "Skykeep Contacts", "--app contacts"],
+ ["skykeep.exe", "Skykeep Drive", "--app drive"],
+ ["skykeep.exe", "Skykeep Photos", "--app photos"]
+ ],
+ "checkver": "github",
+ "autoupdate": {
+ "architecture": {
+ "64bit": {
+ "url": "https://github.com/YashwanthKamireddi/Skykeep/releases/download/v$version/Skykeep_$version_x64-setup.exe#/dl.7z",
+ "hash": {
+ "url": "$baseurl/SHA256SUMS-windows.txt"
+ }
+ }
+ }
+ }
+}
diff --git a/src-tauri/src/updates.rs b/src-tauri/src/updates.rs
index e40ba6a..646d3e3 100644
--- a/src-tauri/src/updates.rs
+++ b/src-tauri/src/updates.rs
@@ -1,8 +1,8 @@
//! Skykeep's own updates, from the project's GitHub Releases.
//!
//! Only a copy installed from the AppImage, the Windows installer (.exe) or the .msi updates
-//! itself. A .deb, an .rpm, the AUR, a distribution's own package or the Flatpak is updated by
-//! its package manager and is never offered an update here ([`install_kind`]).
+//! itself. A .deb, an .rpm, the AUR, a distribution's own package, Scoop or the Flatpak is
+//! updated by its package manager and is never offered an update here ([`install_kind`]).
//!
//! Shortly after launch, and about once a day after that, the latest release's `latest.json`
//! is read through a client that can reach GitHub's release servers and nothing else
@@ -48,7 +48,8 @@ const WAIT_STEP: Duration = Duration::from_secs(2);
pub enum Install {
/// The AppImage, the Windows installer or the .msi: updated here.
Here,
- /// A .deb, an .rpm, the AUR or a distribution's package: its package manager updates it.
+ /// A .deb, an .rpm, the AUR, a distribution's package or Scoop: its package manager
+ /// updates it.
PackageManager,
/// Flatpak updates it.
Flatpak,
@@ -60,12 +61,15 @@ pub enum Install {
/// Who updates this copy. `bundle` is what Tauri's bundler wrote into the program when it
/// packaged it (none for a `cargo build`, which is how the AUR and the Flatpak build it);
-/// `appimage` whether it runs as an AppImage now, which is the file the update replaces.
+/// `appimage` whether it runs as an AppImage now, which is the file the update replaces;
+/// `scoop` whether Scoop unpacked it (packaging/scoop): its installer, run here, would put a
+/// second copy beside Scoop's.
pub fn install_kind(
os: &str,
bundle: Option<BundleType>,
appimage: bool,
flatpak: bool,
+ scoop: bool,
debug: bool,
) -> Install {
if debug {
@@ -74,6 +78,9 @@ pub fn install_kind(
if flatpak {
return Install::Flatpak;
}
+ if os == "windows" && scoop {
+ return Install::PackageManager;
+ }
match (os, bundle) {
("linux", Some(BundleType::AppImage)) if appimage => Install::Here,
// Packaged as an AppImage but not run as one (extracted by hand): no file to replace.
@@ -94,11 +101,22 @@ pub fn this_install(app: &AppHandle) -> Install {
false
};
let flatpak = std::env::var_os("FLATPAK_ID").is_some() || Path::new("/.flatpak-info").exists();
+ // Scoop records the install in the folder it unpacks an app to: scoop-install.json, or
+ // install.json beside manifest.json in older Scoop.
+ let scoop = cfg!(windows)
+ && std::env::current_exe()
+ .ok()
+ .and_then(|e| e.parent().map(Path::to_path_buf))
+ .is_some_and(|dir| {
+ dir.join("scoop-install.json").is_file()
+ || (dir.join("install.json").is_file() && dir.join("manifest.json").is_file())
+ });
install_kind(
std::env::consts::OS,
tauri::utils::platform::bundle_type(),
appimage,
flatpak,
+ scoop,
cfg!(debug_assertions),
)
}
@@ -1024,7 +1042,7 @@ mod tests {
#[test]
fn who_updates_each_kind_of_install() {
use BundleType::*;
- let here = |os, b, ai| install_kind(os, b, ai, false, false);
+ let here = |os, b, ai| install_kind(os, b, ai, false, false, false);
assert_eq!(here("linux", Some(AppImage), true), Install::Here);
assert_eq!(here("linux", Some(AppImage), false), Install::Manual);
assert_eq!(here("linux", Some(Deb), false), Install::PackageManager);
@@ -1036,17 +1054,26 @@ mod tests {
assert_eq!(here("windows", Some(Nsis), false), Install::Here);
assert_eq!(here("windows", Some(Msi), false), Install::Here);
assert_eq!(here("windows", None, false), Install::Manual);
+ // Unpacked by Scoop, which updates it.
+ assert_eq!(
+ install_kind("windows", Some(Nsis), false, false, true, false),
+ Install::PackageManager
+ );
+ assert_eq!(
+ install_kind("linux", Some(AppImage), true, false, true, false),
+ Install::Here
+ );
assert_eq!(here("macos", Some(App), false), Install::Manual);
assert_eq!(
- install_kind("linux", Some(AppImage), true, true, false),
+ install_kind("linux", Some(AppImage), true, true, false, false),
Install::Flatpak
);
assert_eq!(
- install_kind("linux", None, false, true, false),
+ install_kind("linux", None, false, true, false, false),
Install::Flatpak
);
assert_eq!(
- install_kind("windows", Some(Nsis), false, false, true),
+ install_kind("windows", Some(Nsis), false, false, false, true),
Install::Development
);
}