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
Linux: the rpm installs on Fedora and openSUSE, and every distro is checked on release
Yashwanth Kamireddife0788724147
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.mdindex c3a86bf..2f13425 100644--- a/.github/CONTRIBUTING.md+++ b/.github/CONTRIBUTING.md@@ -48,7 +48,8 @@ sudo zypper install gcc gcc-c++ make nodejs-default npm-default \The appindicator package is only for `npx tauri build`, the installable packages: it is notlinked (the Linux tray is ksni's), but tauri-cli sees the `tray-icon` feature the Windows andmacOS builds ask for and stops with "Can't detect any appindicator library" without it.-`./run.sh`, `cargo build` and `./check.sh` don't need it.+`./run.sh`, `cargo build`, `./check.sh` and the Arch `makepkg` don't need it (on Arch, `npx tauri+build` needs `libayatana-appindicator`).Then:diff --git a/.github/workflows/linux-compat.yml b/.github/workflows/linux-compat.ymlindex d008b12..b3b4844 100644--- a/.github/workflows/linux-compat.yml+++ b/.github/workflows/linux-compat.yml@@ -8,6 +8,9 @@# Not on every push: by hand (Actions → Linux compatibility → Run workflow), and for a release# tag. The packages are built the way release.yml builds them, on Ubuntu 24.04 — the oldest# base whose libheif (1.17) the app accepts; Debian 12 (libheif 1.15, glibc 2.36) cannot run it.+# `native` also builds from source on Debian 13, Fedora 42 and openSUSE Tumbleweed (and `arch`+# on Arch) with the build dependencies CONTRIBUTING lists, and installs each of those packages+# in a clean container of the distribution it was built on.name: Linux compatibilityon:@@ -108,6 +111,93 @@ jobs:# shellcheck disable=SC2086bash /compat/check.sh /compat/$PKG /compat/distro_check /compat/test.heic+ # The packages built on each distribution itself, from the build dependencies CONTRIBUTING+ # lists for it — so a missing or renamed -devel package, a compiler that disagrees or a+ # Node too old shows up here, not in an issue from someone building from source.+ native:+ name: Build on ${{ matrix.name }}+ runs-on: ubuntu-24.04+ timeout-minutes: 90+ strategy:+ fail-fast: false+ matrix:+ include:+ - { name: "Debian 13", key: debian13, image: "debian:trixie", bundle: deb }+ - { name: "Fedora 42", key: fedora42, image: "fedora:42", bundle: rpm }+ - { name: "openSUSE Tumbleweed", key: tumbleweed, image: "opensuse/tumbleweed", bundle: rpm }+ container:+ image: ${{ matrix.image }}+ steps:+ - name: Build dependencies, as CONTRIBUTING lists them+ run: |+ case "${{ matrix.key }}" in+ debian13)+ apt-get update+ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \+ build-essential curl ca-certificates git nodejs npm \+ libwebkit2gtk-4.1-dev libgtk-3-dev librsvg2-dev libsecret-1-dev \+ libheif-dev libfuse3-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \+ pkg-config libayatana-appindicator3-dev ;;+ fedora42)+ dnf -y install gcc gcc-c++ make curl git nodejs npm \+ webkit2gtk4.1-devel gtk3-devel librsvg2-devel libsecret-devel \+ libheif-devel fuse3-devel gstreamer1-devel gstreamer1-plugins-base-devel \+ pkgconf-pkg-config libayatana-appindicator-gtk3-devel ;;+ tumbleweed)+ zypper -n install --no-recommends gcc gcc-c++ make curl git tar gzip \+ nodejs-default npm-default \+ webkitgtk3-devel gtk3-devel librsvg-devel libsecret-devel \+ libheif-devel fuse3-devel gstreamer-devel gstreamer-plugins-base-devel \+ pkgconf-pkg-config libayatana-appindicator3-devel ;;+ esac+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0+ - name: Rust, the version rust-toolchain.toml pins+ run: |+ curl -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --profile minimal --default-toolchain none+ echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"+ - run: npm ci --no-audit --no-fund+ - name: Build the package+ env:+ RUSTFLAGS: --remap-path-prefix=${{ github.workspace }}=skykeep+ run: npx tauri build --bundles ${{ matrix.bundle }}+ - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2+ with:+ name: native-${{ matrix.key }}+ path: target/release/bundle/${{ matrix.bundle }}/*.${{ matrix.bundle }}+ if-no-files-found: error+ retention-days: 7++ native-install:+ needs: [build, native]+ name: ${{ matrix.name }} (built there)+ runs-on: ubuntu-24.04+ timeout-minutes: 20+ strategy:+ fail-fast: false+ matrix:+ include:+ - { name: "Debian 13", key: debian13, image: "debian:trixie", bundle: deb }+ - { name: "Fedora 42", key: fedora42, image: "fedora:42", bundle: rpm }+ - { name: "openSUSE Tumbleweed", key: tumbleweed, image: "opensuse/tumbleweed", bundle: rpm }+ container:+ image: ${{ matrix.image }}+ steps:+ - name: Tools the artifact actions need+ if: matrix.key == 'tumbleweed'+ run: zypper -n install --no-recommends tar gzip+ - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0+ with:+ name: linux-compat+ path: /compat+ - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0+ with:+ name: native-${{ matrix.key }}+ path: /native+ - name: Install and run+ run: |+ chmod +x /compat/check.sh /compat/distro_check+ bash /compat/check.sh "$(ls /native/*.${{ matrix.bundle }})" /compat/distro_check /compat/test.heic+arch:needs: buildname: Arch Linux (PKGBUILD)@@ -115,6 +205,11 @@ jobs:timeout-minutes: 60container:image: archlinux:latest+ # Arch's gnome-keyring-daemon, started as root, drops its capabilities and aborts+ # ("error dropping process capabilities") when the container's bounding set lacks some;+ # the keyring check then fails for the container, not for Skykeep. With every capability+ # it starts (checked under podman).+ options: --cap-add=ALLsteps:- name: Build toolsrun: pacman -Syu --noconfirm --needed base-devel git rust nodejs npmdiff --git a/README.md b/README.mdindex bb83c74..bc83b07 100644--- a/README.md+++ b/README.md@@ -129,7 +129,7 @@ sudo zypper install --allow-unsigned-rpm ./Skykeep-*.x86_64.rpmHEIC photos and HEVC videos need it from [RPM Fusion](https://rpmfusion.org/Howto/Multimedia)(Fedora: `ffmpeg` in place of `ffmpeg-free`, and `libheif-freeworld`) or[Packman](https://en.opensuse.org/Additional_package_repositories#Packman) (openSUSE:-`libavcodec`, `libheif1` and `libde265` from Packman). Everything else works without it.</sub>+`libavcodec`, `libheif1`, `libde265` and `libheif-HEIF` from Packman). Everything else works without it.</sub>**Arch, CachyOS, EndeavourOS, Manjaro** <sub>coming to the AUR</sub>diff --git a/packaging/README.md b/packaging/README.mdindex b2fe7e6..027cc9a 100644--- a/packaging/README.md+++ b/packaging/README.md@@ -30,9 +30,22 @@ npx tauri build```builds every bundle for the platform you're on (`.deb`, `.rpm` and `.AppImage` on Linux;-`.msi` and the `-setup.exe` on Windows) under `target/release/bundle/`. Releases are built-the same way by `.github/workflows/release.yml`, which installs and starts each Linux package-before keeping it.+`.msi` and the `-setup.exe` on Windows) under `target/release/bundle/`; `--bundles deb` (or+`rpm`, `appimage`) builds one. Releases are built the same way by+`.github/workflows/release.yml`, which installs and starts each Linux package before keeping+it.++The build dependencies are the ones in [CONTRIBUTING](../.github/CONTRIBUTING.md#set-up),+**including the libayatana-appindicator development package**: tauri-cli adds up the `tauri`+features of every target, sees the Windows/macOS `tray-icon`, and stops with "Can't detect any+appindicator library" without it. For the same reason the `.deb` depends on+`libayatana-appindicator3-1`, the `.rpm` on `libayatana-appindicator3.so.1()(64bit)` and the+AppImage carries `libayatana-appindicator3.so.1`, although the Linux tray is ksni's and never+loads it (`ldd` on the binary doesn't list it).++`linux-compat.yml` (Actions → Linux compatibility) builds the packages on Ubuntu 24.04,+Debian 13, Fedora 42, openSUSE Tumbleweed and Arch from these instructions and installs each in a+clean container of its distribution; `linux-compat/check.sh` is what it runs there.## Flatpakdiff --git a/packaging/linux-compat/check.sh b/packaging/linux-compat/check.shindex 1272074..dcce398 100644--- a/packaging/linux-compat/check.sh+++ b/packaging/linux-compat/check.sh@@ -11,7 +11,8 @@## Checked, each on its own line, PASS or FAIL:# ldd the program finds every library it links;-# gst the GStreamer elements the player and poster reader load at run time are there;+# gst the GStreamer elements the player and poster reader load at run time are there+# (SKIP for an AppImage on a system whose gst-inspect is newer than its GStreamer);# heic a HEIC decodes through the system's libheif, the app's own way;# keyring a made-up session goes into a Secret Service (gnome-keyring) and back out# through the app's sign-in storage;@@ -37,8 +38,12 @@ case "$like" inexport DEBIAN_FRONTEND=noninteractiveapt-get update -qqtools="xvfb xauth dbus gnome-keyring gstreamer1.0-tools desktop-file-utils appstream"- # An AppImage carries its libraries but not the ones every desktop has (excludelist).- [[ $pkg == *.AppImage ]] && tools+=" libgl1 libegl1 libfontconfig1 fonts-dejavu-core"+ # An AppImage carries its libraries but not the ones every desktop has (linuxdeploy's+ # excludelist): GL, X11, fonts and text shaping, ALSA, DRM. Without them in this bare+ # container gst-libav (libavcodec links them) does not load and avdec_* looks missing.+ [[ $pkg == *.AppImage ]] && tools+=" libgl1 libegl1 libgles2 libfontconfig1 fonts-dejavu-core \+ libx11-6 libx11-xcb1 libxcb1 libxcb-dri3-0 libdrm2 libharfbuzz0b libfribidi0 libfreetype6 \+ libasound2t64"# shellcheck disable=SC2086apt-get install -y -qq --no-install-recommends $tools >/dev/null[[ $pkg == *.deb ]] && { apt-get install -y -q --no-install-recommends "$pkg" || exit 1; }@@ -46,13 +51,17 @@ case "$like" in*" fedora "*)tools="xorg-x11-server-Xvfb xorg-x11-xauth dbus-daemon gnome-keyring gstreamer1 \desktop-file-utils appstream which"- [[ $pkg == *.AppImage ]] && tools+=" mesa-libGL mesa-libEGL fontconfig dejavu-sans-fonts"+ # As above; libGLESv2 (libglvnd-gles) too, which WebKit opens and every Fedora desktop has.+ [[ $pkg == *.AppImage ]] && tools+=" mesa-libGL mesa-libEGL libglvnd-gles fontconfig \+ dejavu-sans-fonts libX11 libX11-xcb libxcb libdrm harfbuzz fribidi freetype alsa-lib"# shellcheck disable=SC2086dnf -y -q install --setopt=install_weak_deps=False $tools[[ $pkg == *.rpm ]] && { dnf -y install --setopt=install_weak_deps=False "$pkg" || exit 1; };;*" suse "* | *" opensuse "*)- tools="xvfb-run dbus-1 gnome-keyring gstreamer-utils desktop-file-utils AppStream which"+ # dbus-run-session is in dbus-1-daemon, not dbus-1.+ tools="xvfb-run dbus-1 dbus-1-daemon gnome-keyring gstreamer-utils desktop-file-utils \+ AppStream which"[[ $pkg == *.AppImage ]] && tools+=" Mesa-libGL1 Mesa-libEGL1 fontconfig dejavu-fonts"# shellcheck disable=SC2086zypper -q --non-interactive install --no-recommends $tools@@ -102,19 +111,27 @@ if [[ $pkg == *.AppImage ]]; thenfimedia() {local absent= e- for e in playbin3 decodebin videoconvert videoflip appsink qtdemux "avdec_h264|openh264dec" \- avdec_h265; do- LD_LIBRARY_PATH=$libs gst-inspect-1.0 "${e%%|*}" >/dev/null 2>&1 || { [[ $e == *"|"* ]] &&- LD_LIBRARY_PATH=$libs gst-inspect-1.0 "${e##*|}" >/dev/null 2>&1; } || absent+=" $e"- done- [[ -z $absent ]] && pass gst || $1 gst "missing:$absent"+ # The AppImage's elements are looked at with this system's gst-inspect-1.0 on the AppImage's+ # own libgstreamer. A system GStreamer newer than the bundled one (Fedora 42's 1.26 against+ # Ubuntu 24.04's 1.24) cannot do that ("undefined symbol"), which says nothing about the+ # AppImage; then the elements are not checked here (Ubuntu and Debian check them).+ if [[ $pkg == *.AppImage ]] && ! LD_LIBRARY_PATH=$libs gst-inspect-1.0 --version >/dev/null 2>&1; then+ echo "SKIP gst — this system's gst-inspect-1.0 cannot load the AppImage's GStreamer"+ else+ for e in playbin3 decodebin videoconvert videoflip appsink qtdemux \+ "avdec_h264|openh264dec" avdec_h265; do+ LD_LIBRARY_PATH=$libs gst-inspect-1.0 "${e%%|*}" >/dev/null 2>&1 || { [[ $e == *"|"* ]] &&+ LD_LIBRARY_PATH=$libs gst-inspect-1.0 "${e##*|}" >/dev/null 2>&1; } || absent+=" $e"+ done+ [[ -z $absent ]] && pass gst || $1 gst "missing:$absent"+ fiif out=$(LD_LIBRARY_PATH=$libs "$probe" heic "$heic" 2>&1); then pass heic "$out"else $1 heic "$out"; fi}# Fedora leaves HEVC out of its own repositories — libheif without its libde265 decoder, FFmpeg-# without H.265 — so an iPhone's HEIC photos and HEVC videos need RPM Fusion there (the-# README's Fedora and openSUSE note). Without it, those two are noted, not failed; then RPM-# Fusion is added exactly as the README says, and with it both must pass.+# without H.265 — so an iPhone's HEIC photos and HEVC videos need RPM Fusion there (the note+# under the README's Linux install lines). Without it, those two are noted, not failed; then+# RPM Fusion is added exactly as the README says, and with it both must pass.# openSUSE is the same: no libde265 and an FFmpeg without HEVC in its own repositories; H.264# comes from the openh264 repository it has enabled out of the box, HEVC from Packman.known() { echo "KNOWN $1 — ${2} (no HEVC decoder in $NAME's own repositories)"; }@@ -138,7 +155,7 @@ elif [[ $like == *" suse "* && $pkg != *.AppImage ]]; then"https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/" packman &&zypper -q --non-interactive --gpg-auto-import-keys refresh packman &&zypper -q --non-interactive install --no-recommends --allow-vendor-change --from packman \- libavcodec62 libheif1 libde265-0 $(zypper -q se -r packman -x libheif-de265 >/dev/null 2>&1 && echo libheif-de265) ||+ libavcodec62 libheif1 libde265-0 libheif-HEIF ||fail packman "could not be added"echo "-- with Packman:"rm -rf "${XDG_CACHE_HOME:-$HOME/.cache}/gstreamer-1.0"diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.jsonindex 2c3c2ad..73623d2 100644--- a/src-tauri/tauri.conf.json+++ b/src-tauri/tauri.conf.json@@ -116,7 +116,7 @@},"rpm": {"depends": [- "glibc >= 2.39",+ "(glibc >= 2.39)","libsecret-1.so.0()(64bit)","libheif.so.1()(64bit)","(libheif >= 1.17 or libheif1 >= 1.17)",