Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Nextcloud Update

A Bash script that downloads, GPG-verifies, and installs the latest Nextcloud Desktop AppImage on Linux.

Features

  • Downloads from the official Nextcloud server or GitHub Releases
  • Verifies the GPG signature before installing
  • Gracefully quits a running Nextcloud instance before replacing it
  • Integrates with AppImage managers (gearlever, appimagelauncher)
  • Creates a .desktop file and optional autostart entry
  • Prompts to launch Nextcloud when done

Dependencies

Tool Purpose
curl Fetch release metadata and download AppImage
jq Parse GitHub API JSON (only needed with --github)
gpg Verify signature
pgrep Detect running Nextcloud process
gtk-launch Launch Nextcloud via .desktop file

Install on Debian/Ubuntu:

sudo apt install curl jq gpg procps

Usage

Usage: nextcloud_update.sh [OPTIONS]

Options:
  --github              Download from GitHub Releases instead of the official Nextcloud server
  --version <ver>       Download a specific version instead of the latest (e.g. 3.14.2 or v3.14.2)
  --manager <name>      Integrate with an AppImage manager (supported: gearlever, appimagelauncher)
  --manual-install      Move AppImage to ~/Applications without prompting
  --install-dir <path>  Override the install directory (default: ~/Applications)
  --autostart           Symlink the .desktop file into ~/.config/autostart
  --dry-run             Print what would be done without making any changes
  -h, --help            Show this help message

Examples

Download from the official server and prompt for install method:

bash nextcloud_update.sh

Download from GitHub and integrate with gearlever, with autostart:

bash nextcloud_update.sh --github --manager gearlever --autostart

Move to ~/Applications and set up autostart non-interactively:

bash nextcloud_update.sh --manual-install --autostart

Install to a custom directory:

bash nextcloud_update.sh --manual-install --install-dir /opt/appimages

Download a specific version:

bash nextcloud_update.sh --version 3.14.2 --manual-install

Preview what would happen without making any changes:

bash nextcloud_update.sh --dry-run --github --manager gearlever --autostart

GPG Verification

The script automatically imports and uses the official Nextcloud GPG key (A724937A) to verify the AppImage signature before installation. It tries hkps://pgp.mit.edu first, falling back to hkps://keyserver.ubuntu.com if unreachable.

License

MIT — see LICENSE.

About

A Bash script that downloads, GPG-verifies, and installs the latest Nextcloud Desktop AppImage on Linux.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages