From c62cc9fc5e1dcae2f224e3a1dd0f424ed86d8995 Mon Sep 17 00:00:00 2001 From: Alex Trepca Date: Tue, 1 Sep 2026 07:03:05 -0700 Subject: [PATCH] Fix contacts/calendar download as source archive (#2588) The setup script is using GitHub's auto-generated source archive URL (archive/refs/tags/) to download the Nextcloud contacts and calendar apps. Source archives exclude `vendor/` composer dependencies and compiled frontend assets since they're gitignored, causing app:enable to fail with: `Could not download app contacts`. Switch to the release tarball URL (releases/download/) which includes all pre-built assets. --- setup/nextcloud.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/setup/nextcloud.sh b/setup/nextcloud.sh index 1c1f5b03..85c96c73 100755 --- a/setup/nextcloud.sh +++ b/setup/nextcloud.sh @@ -32,16 +32,16 @@ nextcloud_hash=d5c10b650e5396d5045131c6d22c02a90572527c # https://github.com/nextcloud/user_external/tags # # * For these three packages, contact, calendar and user_external, the hash is the SHA1 hash of -# the ZIP package, which you can find by just running this script and copying it from -# the error message when it doesn't match what is below: +# the release tarball (from the releases/download URL, not the source archive), which you can +# find by running: curl -sL | sha1sum # Always ensure the versions are supported, see https://apps.nextcloud.com/apps/contacts contacts_ver=5.5.3 -contacts_hash=799550f38e46764d90fa32ca1a6535dccd8316e5 +contacts_hash=b234ab410480a4106176a28f39c9b27f471d0473 # Always ensure the versions are supported, see https://apps.nextcloud.com/apps/calendar calendar_ver=4.7.6 -calendar_hash=a995bca4effeecb2cab25f3bbeac9bfe05fee766 +calendar_hash=cf8e68e7d945ee71933f5bb71a969faf152da55c # Always ensure the versions are supported, see https://apps.nextcloud.com/apps/user_external user_external_ver=3.3.0 @@ -105,11 +105,11 @@ InstallNextcloud() { # their github repositories. mkdir -p /usr/local/lib/owncloud/apps - wget_verify "https://github.com/nextcloud-releases/contacts/archive/refs/tags/v$version_contacts.tar.gz" "$hash_contacts" /tmp/contacts.tgz + wget_verify "https://github.com/nextcloud-releases/contacts/releases/download/v$version_contacts/contacts-v$version_contacts.tar.gz" "$hash_contacts" /tmp/contacts.tgz tar xf /tmp/contacts.tgz -C /usr/local/lib/owncloud/apps/ rm /tmp/contacts.tgz - wget_verify "https://github.com/nextcloud-releases/calendar/archive/refs/tags/v$version_calendar.tar.gz" "$hash_calendar" /tmp/calendar.tgz + wget_verify "https://github.com/nextcloud-releases/calendar/releases/download/v$version_calendar/calendar-v$version_calendar.tar.gz" "$hash_calendar" /tmp/calendar.tgz tar xf /tmp/calendar.tgz -C /usr/local/lib/owncloud/apps/ rm /tmp/calendar.tgz