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
Snap: the release's .deb on core24, six apps, strict confinement
Yashwanth Kamireddie8613765d19d
diff --git a/.github/workflows/snap.yml b/.github/workflows/snap.ymlnew file mode 100644index 0000000..cfd2330--- /dev/null+++ b/.github/workflows/snap.yml@@ -0,0 +1,47 @@+# Builds the Snap from the release's .deb and checks that it installs and starts (offline, under+# a virtual display). Uploading to the Snap Store needs SNAPCRAFT_STORE_CREDENTIALS and is a+# separate step, run only on a tag.+name: Snap++on:+ workflow_dispatch:+ inputs:+ tag:+ description: Release whose .deb the Snap wraps+ default: v0.1.2+ push:+ branches: [snap]++permissions:+ contents: read++jobs:+ build:+ runs-on: ubuntu-24.04+ steps:+ - uses: actions/checkout@v5+ - name: The release's .deb+ env:+ GH_TOKEN: ${{ github.token }}+ TAG: ${{ inputs.tag || 'v0.1.2' }}+ run: |+ gh release download "$TAG" -p 'Skykeep_*_amd64.deb' -D snap/local+ mv snap/local/Skykeep_*_amd64.deb snap/local/skykeep.deb+ version=${TAG#v}+ sed -i "s/^version: .*/version: '$version'/" snap/snapcraft.yaml+ - uses: snapcore/action-build@v1+ id: build+ - name: It installs and starts+ run: |+ sudo snap install --dangerous "${{ steps.build.outputs.snap }}"+ sudo apt-get install -y xvfb dbus-x11 >/dev/null+ set +e+ timeout 20 dbus-run-session -- xvfb-run -a snap run skykeep > run.log 2>&1+ code=$?+ cat run.log | tail -40+ # 124 = still running when the timeout ended it: it started and stayed up.+ [ "$code" -eq 124 ] || { echo "::error::Skykeep exited ($code) instead of staying up"; exit 1; }+ - uses: actions/upload-artifact@v4+ with:+ name: skykeep-snap+ path: ${{ steps.build.outputs.snap }}diff --git a/snap/local/skykeep.png b/snap/local/skykeep.pngnew file mode 100644index 0000000..fbbf38dBinary files /dev/null and b/snap/local/skykeep.png differdiff --git a/snap/snapcraft.yaml b/snap/snapcraft.yamlnew file mode 100644index 0000000..988c6ec--- /dev/null+++ b/snap/snapcraft.yaml@@ -0,0 +1,100 @@+# The Snap: the same .deb the release builds and tests on Ubuntu 24.04, on the matching core24+# base, with what the .deb depends on staged beside it. The release workflow puts that .deb at+# snap/local/skykeep.deb before snapcraft runs; nothing is built twice.+#+# Confinement is strict. iCloud Drive and Photos as FUSE folders need a privileged interface, so+# in the Snap they open inside the app, as in the Flatpak. The keyring is password-manager-service.+name: skykeep+title: Skykeep+version: '0.1.2'+summary: Your iCloud, at home on Linux and Windows+description: |+ Notes, Reminders, Calendar, Contacts, iCloud Drive and Photos as real desktop apps, on a native+ Rust engine that keeps your library on your computer. They open instantly, work offline and+ stay in sync with your iPhone.++ Free and open source, with no Skykeep account and no analytics. Sign-in is Apple's own, with+ two-factor. Skykeep is an independent project, not affiliated with or endorsed by Apple Inc.+license: GPL-3.0-only+website: https://github.com/YashwanthKamireddi/Skykeep+source-code: https://github.com/YashwanthKamireddi/Skykeep+issues: https://github.com/YashwanthKamireddi/Skykeep/issues+icon: snap/local/skykeep.png+base: core24+grade: stable+confinement: strict+platforms:+ amd64:++apps:+ skykeep:+ command: usr/bin/skykeep+ desktop: usr/share/applications/Skykeep.desktop+ extensions: [gnome]+ plugs: [network, network-status, home, removable-media, password-manager-service, audio-playback]+ environment:+ WEBKIT_GST_USE_PLAYBIN3: "1"+ common-id: io.github.yashwanthkamireddi.Skykeep+ notes:+ command: usr/bin/skykeep --app notes+ desktop: usr/share/applications/io.github.yashwanthkamireddi.Skykeep.Notes.desktop+ extensions: [gnome]+ plugs: [network, network-status, home, removable-media, password-manager-service, audio-playback]+ environment:+ WEBKIT_GST_USE_PLAYBIN3: "1"+ reminders:+ command: usr/bin/skykeep --app reminders+ desktop: usr/share/applications/io.github.yashwanthkamireddi.Skykeep.Reminders.desktop+ extensions: [gnome]+ plugs: [network, network-status, home, removable-media, password-manager-service, audio-playback]+ environment:+ WEBKIT_GST_USE_PLAYBIN3: "1"+ calendar:+ command: usr/bin/skykeep --app calendar+ desktop: usr/share/applications/io.github.yashwanthkamireddi.Skykeep.Calendar.desktop+ extensions: [gnome]+ plugs: [network, network-status, home, removable-media, password-manager-service, audio-playback]+ environment:+ WEBKIT_GST_USE_PLAYBIN3: "1"+ contacts:+ command: usr/bin/skykeep --app contacts+ desktop: usr/share/applications/io.github.yashwanthkamireddi.Skykeep.Contacts.desktop+ extensions: [gnome]+ plugs: [network, network-status, home, removable-media, password-manager-service, audio-playback]+ environment:+ WEBKIT_GST_USE_PLAYBIN3: "1"+ drive:+ command: usr/bin/skykeep --app drive+ desktop: usr/share/applications/io.github.yashwanthkamireddi.Skykeep.Drive.desktop+ extensions: [gnome]+ plugs: [network, network-status, home, removable-media, password-manager-service, audio-playback]+ environment:+ WEBKIT_GST_USE_PLAYBIN3: "1"+ photos:+ command: usr/bin/skykeep --app photos+ desktop: usr/share/applications/io.github.yashwanthkamireddi.Skykeep.Photos.desktop+ extensions: [gnome]+ plugs: [network, network-status, home, removable-media, password-manager-service, audio-playback]+ environment:+ WEBKIT_GST_USE_PLAYBIN3: "1"++parts:+ skykeep:+ plugin: dump+ source: snap/local/skykeep.deb+ source-type: deb+ stage-packages:+ - libsecret-1-0+ - libheif1+ - libheif-plugin-libde265+ - libwebkit2gtk-4.1-0+ - libayatana-appindicator3-1+ - gstreamer1.0-plugins-base+ - gstreamer1.0-plugins-good+ - gstreamer1.0-libav+ override-prime: |+ craftctl default+ # Each launcher's icon, from inside the snap.+ for f in usr/share/applications/*.desktop; do+ sed -i -E 's|^Icon=.*|Icon=${SNAP}/usr/share/icons/hicolor/512x512/apps/skykeep.png|' "$f"+ done