Native iCloud apps for Windows and Linux, built in Rust. Notes, Reminders, Calendar, Contacts, Drive and Photos, offline and in sync with your iPhone.
Rust apple-notesapple-reminderscloudkitcrdtdesktop-appicloudicloud-calendaricloud-driveicloud-notesicloud-photosiphonelinuxlinux-desktoplocal-firstoffline-firstprivacyrusttauritauri-appwindows
AUR: skykeep from the release tarball, skykeep-bin from the release .deb
Yashwanth Kamireddic0a23b293e78
diff --git a/README.md b/README.mdindex 183b137..85eb16e 100644--- a/README.md+++ b/README.md@@ -25,7 +25,7 @@ Notes, Reminders, Calendar, Contacts, iCloud Drive and Photos as fast desktop ap[](https://github.com/YashwanthKamireddi/Skykeep/releases/latest)[](https://github.com/YashwanthKamireddi/Skykeep/releases)Once live:-[](https://aur.archlinux.org/packages/skykeep-git)+[](https://aur.archlinux.org/packages/skykeep)[](https://flathub.org/apps/io.github.yashwanthkamireddi.Skykeep)-->@@ -144,7 +144,7 @@ Skykeep is free. Download it from the [latest release](https://github.com/Yashwa| **Fedora 41+** | `Skykeep-<version>-1.x86_64.rpm` | `sudo dnf install ./Skykeep-*.x86_64.rpm` || **openSUSE Tumbleweed** | `Skykeep-<version>-1.x86_64.rpm` | `sudo zypper install --allow-unsigned-rpm ./Skykeep-*.x86_64.rpm` || **Any other Linux** | `Skykeep_<version>_amd64.AppImage` | `chmod +x Skykeep_*.AppImage && ./Skykeep_*.AppImage` |-| **Arch, CachyOS, EndeavourOS, Manjaro** | [Build from the PKGBUILD](#arch-linux) | Coming to the AUR as `skykeep-git` |+| **Arch, CachyOS, EndeavourOS, Manjaro** | [Build from the PKGBUILD](#arch-linux) | Coming to the AUR as `skykeep` |### Windows@@ -199,7 +199,7 @@ Or install the library once with `sudo apt install libfuse2t64`, and the AppImag<details><summary><b>Arch, CachyOS, EndeavourOS, Manjaro</b></summary>-Skykeep is coming to the AUR as `skykeep-git`. Until then, build it from this repository:+Skykeep is coming to the AUR as `skykeep`, with `skykeep-bin` for the ready-built release. Until then, build it from this repository:```shgit clone https://github.com/YashwanthKamireddi/Skykeep.gitdiff --git a/packaging/README.md b/packaging/README.mdindex 027cc9a..cc5b955 100644--- a/packaging/README.md+++ b/packaging/README.md@@ -5,7 +5,7 @@ Everything that turns a build into something people install.| Path | What it is ||---|---|| `arch/` | A PKGBUILD that builds the checkout it sits in. |-| `aur/` | The AUR package, `skykeep-git`: the same steps, built from GitHub. |+| `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). || `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. |@@ -23,6 +23,25 @@ makepkg -siThis installs Skykeep like any other program: `skykeep` on the path, launcher entries for themain app and each of the six apps, the icon, search providers and the licence.+### The AUR++`aur/skykeep` is the one to recommend: the tagged release, built with the same steps as+`arch/`. `aur/skykeep-bin` unpacks the release's `.deb` (the build CI installs and starts on+Ubuntu), so nothing is compiled and pacman owns every file. `aur/skykeep-git` follows `main`.+`skykeep-bin` and `skykeep-git` provide and conflict with `skykeep`.++At each release, in `aur/skykeep` and `aur/skykeep-bin`:++```sh+# set pkgver to the new tag (without the v) and pkgrel=1, then:+updpkgsums # fills sha256sums from the published files+makepkg --printsrcinfo > .SRCINFO+```++Until `updpkgsums` has run, their `sha256sums` hold a `TODO` that makepkg refuses, so nothing+is built from a file nobody checked. Each folder is pushed to its own AUR repository+(`ssh://[email protected]/<name>.git`) with just its `PKGBUILD` and `.SRCINFO`.+## Debian, Ubuntu, Fedora, AppImage, Windows```shdiff --git a/packaging/arch/PKGBUILD b/packaging/arch/PKGBUILDindex 3c7e3b4..cc0bc43 100644--- a/packaging/arch/PKGBUILD+++ b/packaging/arch/PKGBUILD@@ -2,8 +2,9 @@# program on this machine is — `makepkg -si` from here — rather than run out of a build# directory. That is the difference between something Yash has and something anyone has.#-# The AUR package (packaging/aur, skykeep-git) is this one built from GitHub, with a real-# `pkgver()`. Its depends, build and package steps are kept identical to these.+# The AUR packages in packaging/aur build the same way from GitHub: `skykeep` from a release+# tag, `skykeep-git` from the latest commit with a real `pkgver()`. Their depends, build and+# package steps are kept identical to these (`skykeep-bin` repackages the release's .deb).pkgname=skykeeppkgver=0.1.0diff --git a/packaging/aur/skykeep-bin/.SRCINFO b/packaging/aur/skykeep-bin/.SRCINFOnew file mode 100644index 0000000..35f89ae--- /dev/null+++ b/packaging/aur/skykeep-bin/.SRCINFO@@ -0,0 +1,25 @@+pkgbase = skykeep-bin+ pkgdesc = Your iCloud, on this computer — calendar, reminders, notes, contacts and Drive+ pkgver = 0.1.0+ pkgrel = 1+ url = https://github.com/YashwanthKamireddi/Skykeep+ arch = x86_64+ license = GPL-3.0-only+ depends = webkit2gtk-4.1+ depends = gtk3+ depends = libsecret+ depends = libheif+ depends = gstreamer+ depends = gst-plugins-base-libs+ depends = gst-plugins-base+ depends = gst-plugins-good+ depends = gst-libav+ optdepends = fuse3: iCloud Drive and Photos as folders in the file manager+ provides = skykeep+ conflicts = skykeep+ options = !strip+ options = !debug+ source = Skykeep_0.1.0_amd64.deb::https://github.com/YashwanthKamireddi/Skykeep/releases/download/v0.1.0/Skykeep_0.1.0_amd64.deb+ sha256sums = TODO-fill-at-release-with-updpkgsums++pkgname = skykeep-bindiff --git a/packaging/aur/skykeep-bin/PKGBUILD b/packaging/aur/skykeep-bin/PKGBUILDnew file mode 100644index 0000000..89f4b85--- /dev/null+++ b/packaging/aur/skykeep-bin/PKGBUILD@@ -0,0 +1,47 @@+# The AUR package `skykeep-bin`: the release's own .deb, unpacked as it is, for anyone who'd+# rather not compile. It's the same build the release workflow installs and starts on Ubuntu+# 24.04 before publishing it, so on Arch it runs against Arch's newer libraries. Built from+# source instead: ../skykeep.+#+# The .deb rather than the AppImage: a .deb is plain files under /usr, so pacman owns every+# one of them, and the app uses Arch's own WebKitGTK, GStreamer and libheif with their+# security updates. The AppImage carries its own copies of those. Installed this way, Skykeep+# knows its package manager updates it (src-tauri/src/updates.rs) and never contacts GitHub.+#+# At each release: set pkgver to the tag (without the v), reset pkgrel to 1, then run+# `updpkgsums` here to fill in sha256sums, and `makepkg --printsrcinfo > .SRCINFO`.++pkgname=skykeep-bin+_pkgname=skykeep+pkgver=0.1.0+pkgrel=1+pkgdesc="Your iCloud, on this computer — calendar, reminders, notes, contacts and Drive"+arch=('x86_64')+url="https://github.com/YashwanthKamireddi/Skykeep"+license=('GPL-3.0-only')++# The same run-time needs as ../skykeep, which explains each one.+depends=('webkit2gtk-4.1' 'gtk3' 'libsecret' 'libheif' 'gstreamer' 'gst-plugins-base-libs'+ 'gst-plugins-base' 'gst-plugins-good' 'gst-libav')+# The iCloud Drive and Photos folders are mounted through fusermount3.+optdepends=('fuse3: iCloud Drive and Photos as folders in the file manager')+provides=("$_pkgname")+conflicts=("$_pkgname")+# The binary is the release's, already stripped; there is nothing to make a debug package from.+options=('!strip' '!debug')++source=("Skykeep_${pkgver}_amd64.deb::$url/releases/download/v$pkgver/Skykeep_${pkgver}_amd64.deb")+# TODO(release day): replace with the .deb's real checksum once v$pkgver is published: run+# `updpkgsums` in this folder, or copy its line from the release's SHA256SUMS-linux.txt. Until+# then makepkg refuses this value on purpose.+sha256sums=('TODO-fill-at-release-with-updpkgsums')++package() {+ # makepkg has already split the .deb into control.tar.* and data.tar.*; the files are in the+ # second, laid out under /usr exactly as they install.+ bsdtar -xf "$srcdir"/data.tar.* -C "$pkgdir"+ # Some Tauri versions also write a 2x icon into a folder no icon theme reads+ # (hicolor/256x256@2); every size is already there under its proper name.+ rm -rf "$pkgdir"/usr/share/icons/hicolor/*@2+ chmod 755 "$pkgdir/usr/bin/skykeep"+}diff --git a/packaging/aur/.SRCINFO b/packaging/aur/skykeep-git/.SRCINFOsimilarity index 95%rename from packaging/aur/.SRCINFOrename to packaging/aur/skykeep-git/.SRCINFOindex 1e78636..8db7292 100644--- a/packaging/aur/.SRCINFO+++ b/packaging/aur/skykeep-git/.SRCINFO@@ -19,7 +19,6 @@ pkgbase = skykeep-gitdepends = gst-plugins-basedepends = gst-plugins-gooddepends = gst-libav- depends = libayatana-appindicatoroptdepends = fuse3: iCloud Drive and Photos as folders in the file managerprovides = skykeepconflicts = skykeepdiff --git a/packaging/aur/PKGBUILD b/packaging/aur/skykeep-git/PKGBUILDsimilarity index 95%rename from packaging/aur/PKGBUILDrename to packaging/aur/skykeep-git/PKGBUILDindex 36c16bb..309d590 100644--- a/packaging/aur/PKGBUILD+++ b/packaging/aur/skykeep-git/PKGBUILD@@ -1,6 +1,7 @@-# The AUR package: Skykeep built from the latest source on GitHub, as `yay -S skykeep-git` or-# `makepkg -si` installs it. The same build and package steps as packaging/arch, which builds-# from a local checkout instead.+# The AUR package `skykeep-git`: Skykeep built from the latest commit on GitHub, as+# `yay -S skykeep-git` or `makepkg -si` installs it. Most people want `skykeep` (the tagged+# release, ../skykeep) or `skykeep-bin` (the release's .deb, ../skykeep-bin). The same build and+# package steps as packaging/arch, which builds from a local checkout instead.pkgname=skykeep-gitpkgver=0.1.0.r405.g054560fdiff --git a/packaging/aur/skykeep/.SRCINFO b/packaging/aur/skykeep/.SRCINFOnew file mode 100644index 0000000..a14bc2d--- /dev/null+++ b/packaging/aur/skykeep/.SRCINFO@@ -0,0 +1,26 @@+pkgbase = skykeep+ pkgdesc = Your iCloud, on this computer — calendar, reminders, notes, contacts and Drive+ pkgver = 0.1.0+ pkgrel = 1+ url = https://github.com/YashwanthKamireddi/Skykeep+ arch = x86_64+ license = GPL-3.0-only+ makedepends = rust+ makedepends = nodejs+ makedepends = npm+ makedepends = pkgconf+ depends = webkit2gtk-4.1+ depends = gtk3+ depends = libsecret+ depends = libheif+ depends = gstreamer+ depends = gst-plugins-base-libs+ depends = gst-plugins-base+ depends = gst-plugins-good+ depends = gst-libav+ optdepends = fuse3: iCloud Drive and Photos as folders in the file manager+ options = !lto+ source = skykeep-0.1.0.tar.gz::https://github.com/YashwanthKamireddi/Skykeep/archive/refs/tags/v0.1.0.tar.gz+ sha256sums = TODO-fill-at-release-with-updpkgsums++pkgname = skykeepdiff --git a/packaging/aur/skykeep/PKGBUILD b/packaging/aur/skykeep/PKGBUILDnew file mode 100644index 0000000..4b24276--- /dev/null+++ b/packaging/aur/skykeep/PKGBUILD@@ -0,0 +1,133 @@+# The AUR package `skykeep`: the tagged release, built from its source tarball on GitHub, as+# `yay -S skykeep` or `makepkg -si` installs it. The same depends, build and package steps as+# packaging/arch and ../skykeep-git; only where the source comes from differs.+#+# At each release: set pkgver to the tag (without the v), reset pkgrel to 1, then run+# `updpkgsums` here to fill in sha256sums, and `makepkg --printsrcinfo > .SRCINFO`.++pkgname=skykeep+pkgver=0.1.0+pkgrel=1+pkgdesc="Your iCloud, on this computer — calendar, reminders, notes, contacts and Drive"+arch=('x86_64')+url="https://github.com/YashwanthKamireddi/Skykeep"+license=('GPL-3.0-only')++# WebKitGTK is what Tauri renders through on Linux, and libsecret is where the session is+# kept — the app will start without the second but cannot stay signed in.+# What the built binary asks for, read off it with ldd rather than guessed — webkit2gtk for+# the window, gtk3 under it, libsecret for the keyring, libheif for HEIC photos (nothing+# else pulls it in: without it the app does not start; Arch's carries the libde265 decoder),+# GStreamer for videos. The tray needs no library: it is a StatusNotifierItem spoken over+# D-Bus by the app itself (ksni), so libayatana-appindicator is no longer asked for.+# The GStreamer plugins are loaded at run time too, so ldd can't see them either. The window's+# player (playbin3) and the poster reader (poster.rs: decodebin, videoconvert, videoflip,+# appsink) need gst-plugins-base for the elements, gst-plugins-good for qtdemux (an iPhone's+# .mov/.mp4) and videoflip, and gst-libav for the H.264/HEVC decoders. Without them a video+# shows a black frame and won't play.+depends=('webkit2gtk-4.1' 'gtk3' 'libsecret' 'libheif' 'gstreamer' 'gst-plugins-base-libs'+ 'gst-plugins-base' 'gst-plugins-good' 'gst-libav')+# The iCloud Drive and Photos folders are mounted through fusermount3.+optdepends=('fuse3: iCloud Drive and Photos as folders in the file manager')+makedepends=('rust' 'nodejs' 'npm' 'pkgconf')++# makepkg turns link-time optimisation on for everything, which compiles the C and assembly+# inside ring and libsqlite3-sys to LLVM bitcode. Rust links its own way and cannot see into+# those archives, so the build failed with several hundred undefined symbols — every SQLite+# entry point and every one of ring's arithmetic primitives. Rust does its own optimising+# here; this only declines to have it done twice, in two languages that disagree about how.+options=('!lto')++source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")+# TODO(release day): replace with the tarball's real checksum once the v$pkgver tag is pushed:+# run `updpkgsums` in this folder. Until then makepkg refuses this value on purpose, so nothing+# can be built from a tarball nobody has checked.+sha256sums=('TODO-fill-at-release-with-updpkgsums')++# GitHub names the folder inside the tarball after the repository and the tag, without the v.+_dir="Skykeep-$pkgver"++prepare() {+ cd "$srcdir/$_dir"++ # makepkg builds in a clean environment, which does not carry a rustup installation. The+ # `rust` package puts cargo in /usr/bin and needs nothing here; a rustup one lives in the+ # user's home and would otherwise look simply absent.+ if ! command -v cargo >/dev/null; then+ export PATH="${CARGO_HOME:-$HOME/.cargo}/bin:$PATH"+ fi+ command -v cargo >/dev/null || {+ echo "cargo not found — install the 'rust' package, or put a rustup one on PATH" >&2+ return 1+ }++ # Everything the build downloads is fetched here, so build() runs offline.+ export CARGO_TARGET_DIR="$srcdir/target"+ cargo fetch --locked --target "$(rustc -vV | sed -n 's/^host: //p')"+ npm ci --no-audit --no-fund+}++build() {+ cd "$srcdir/$_dir"++ # Its own build directory, not the one a developer is using. makepkg builds with its own+ # CFLAGS and LDFLAGS, and cargo reuses whatever C objects it finds — so sharing a target+ # directory with an ordinary `cargo build` produced a binary that would not link at all,+ # with sqlite3 and ring's assembly missing from it.+ export CARGO_TARGET_DIR="$srcdir/target"+ if ! command -v cargo >/dev/null; then+ export PATH="${CARGO_HOME:-$HOME/.cargo}/bin:$PATH"+ fi++ npm run build+ cargo build --release --frozen -p quince-app+}++package() {+ cd "$srcdir/$_dir"+ # Cargo names the binary after its crate; `tauri build` renames it and this does not go+ # through that, so the rename happens here.+ install -Dm755 "$srcdir/target/release/quince-app" "$pkgdir/usr/bin/skykeep"+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"+ # The metainfo names the .deb's launcher (Skykeep.desktop, Tauri's name for it); here the+ # launcher is installed under the app ID, so the metainfo is pointed at that one.+ sed 's|<launchable type="desktop-id">Skykeep.desktop</launchable>|<launchable type="desktop-id">io.github.yashwanthkamireddi.Skykeep.desktop</launchable>|' \+ packaging/io.github.yashwanthkamireddi.Skykeep.metainfo.xml \+ > "$srcdir/io.github.yashwanthkamireddi.Skykeep.metainfo.xml"+ install -Dm644 "$srcdir/io.github.yashwanthkamireddi.Skykeep.metainfo.xml" \+ "$pkgdir/usr/share/metainfo/io.github.yashwanthkamireddi.Skykeep.metainfo.xml"+ # The same entry the .deb and .rpm get, with the names this package uses filled in.+ sed -e 's/{{name}}/Skykeep/' \+ -e 's/{{comment}}/Your iCloud, on this computer/' \+ -e 's/{{exec}}/skykeep/g' \+ -e 's/{{icon}}/io.github.yashwanthkamireddi.Skykeep/' \+ -e 's/{{categories}}/Office;Calendar;ContactManagement;/' \+ packaging/io.github.yashwanthkamireddi.Skykeep.desktop.in \+ > "$srcdir/io.github.yashwanthkamireddi.Skykeep.desktop"+ install -Dm644 "$srcdir/io.github.yashwanthkamireddi.Skykeep.desktop" \+ "$pkgdir/usr/share/applications/io.github.yashwanthkamireddi.Skykeep.desktop"+ # The icon at every size the launchers and panels ask for, under the name they ask for.+ local size src+ for size in 16x16:16x16 24x24:24x24 32x32:32x32 48x48:48x48 64x64:64x64 128x128:128x128 \+ 256x256:128x128@2x 512x512:icon; do+ src=${size#*:}+ install -Dm644 "src-tauri/icons/$src.png" \+ "$pkgdir/usr/share/icons/hicolor/${size%%:*}/apps/io.github.yashwanthkamireddi.Skykeep.png"+ done+ # The six apps, each its own launcher entry (skykeep --app notes, …).+ for entry in packaging/apps/*.desktop; do+ install -Dm644 "$entry" "$pkgdir/usr/share/applications/$(basename "$entry")"+ done+ # In the desktop's own search: GNOME Shell's provider, KRunner's D-Bus plugin, and the bus+ # entry that starts Skykeep hidden when either searches and it is not running.+ # The provider names the .deb's launcher (Skykeep.desktop); here it is the app ID's.+ sed 's|^DesktopId=Skykeep.desktop$|DesktopId=io.github.yashwanthkamireddi.Skykeep.desktop|' \+ packaging/io.github.yashwanthkamireddi.Skykeep.search-provider.ini \+ > "$srcdir/io.github.yashwanthkamireddi.Skykeep.search-provider.ini"+ install -Dm644 "$srcdir/io.github.yashwanthkamireddi.Skykeep.search-provider.ini" \+ "$pkgdir/usr/share/gnome-shell/search-providers/io.github.yashwanthkamireddi.Skykeep.search-provider.ini"+ install -Dm644 packaging/io.github.yashwanthkamireddi.Skykeep.SearchProvider.service \+ "$pkgdir/usr/share/dbus-1/services/io.github.yashwanthkamireddi.Skykeep.SearchProvider.service"+ install -Dm644 packaging/io.github.yashwanthkamireddi.Skykeep.krunner.desktop \+ "$pkgdir/usr/share/krunner/dbusplugins/io.github.yashwanthkamireddi.Skykeep.krunner.desktop"+}