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.

Chocolatey: WebView2 is its own dependency, so uninstalling Skykeep never takes it; Tumbleweed lines up with its mirror first

Yashwanth Kamireddie66be9ae5ccc
diff --git a/.github/workflows/linux-compat.yml b/.github/workflows/linux-compat.yml
index f11c058..aaf4230 100644
--- a/.github/workflows/linux-compat.yml
+++ b/.github/workflows/linux-compat.yml
@@ -195,6 +195,11 @@ jobs:
libheif-devel fuse3-devel gstreamer1-devel gstreamer1-plugins-base-devel \
pkgconf-pkg-config libayatana-appindicator-gtk3-devel ;;
tumbleweed)
+ # Tumbleweed rolls: the image can be newer than a mirror that is mid-sync (6 Nov:
+ # libnghttp2 1.71 installed, its -devel only 1.70), and then nothing installs. A
+ # distribution upgrade first lines the system up with the repositories, as
+ # openSUSE says to do on Tumbleweed, so a mirror's timing never fails the build.
+ zypper -n dup --no-recommends
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 \
diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml
index d4eca3b..a4f2817 100644
--- a/.github/workflows/packages.yml
+++ b/.github/workflows/packages.yml
@@ -78,7 +78,8 @@ jobs:
run: |
choco pack packaging/chocolatey/skykeep.nuspec --outputdirectory out
if ($LASTEXITCODE) { throw "choco pack failed" }
- choco install skykeep --source "$PWD\out" -y --no-progress
+ # The package from this run; its dependency (webview2-runtime) from the community feed.
+ choco install skykeep --source "$PWD\out;https://community.chocolatey.org/api/v2/" -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" }
@@ -93,6 +94,11 @@ jobs:
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"
+ # WebView2 is every other app's too: removing Skykeep must leave it where it was.
+ $wv = Get-ItemProperty HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*, HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\* -ErrorAction SilentlyContinue |
+ Where-Object DisplayName -eq 'Microsoft Edge WebView2 Runtime'
+ if (-not $wv) { throw "uninstalling skykeep took WebView2 with it" }
+ "WebView2 $($wv[0].DisplayVersion) is still installed"
# Only the package this run just installed and uninstalled, and only when asked. The
# first versions wait for a human moderator on community.chocolatey.org.
diff --git a/packaging/chocolatey/skykeep.nuspec b/packaging/chocolatey/skykeep.nuspec
index 7567696..9d17ec3 100644
--- a/packaging/chocolatey/skykeep.nuspec
+++ b/packaging/chocolatey/skykeep.nuspec
@@ -26,6 +26,13 @@
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>
+ <!-- Skykeep draws its window with Microsoft's WebView2. As its own package it is installed
+ before Skykeep and kept apart from it: when Skykeep's installer set it up instead,
+ Chocolatey took WebView2 for part of Skykeep and its auto-uninstaller went to remove
+ it with Skykeep (the 0.1.11 moderation test), which every other app using it needs. -->
+ <dependencies>
+ <dependency id="webview2-runtime" />
+ </dependencies>
</metadata>
<files>
<file src="tools\**" target="tools" />