Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

rednoah/jup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

jup

The jup (Java Update) project aims to provide an easy, efficient and cross-platform install and auto-update framework for Java applications.

Design Ideas

  • Require JRE. Use System JRE? Use embedded JRE? How do we update the embedded JRE?
  • Standalone CLI tool similar to npm? e.g. jup install update.xml
  • Updates must consist of static files only, so that no server-side software is required and all requests can be served from CDNs
  • Keep all application files from previous version and use them as local cache when downloading files for the new version. Download only new or changed files and hardlink existing files from the previous version.
  • Restore execute permissions from TAR archives on extract, or use execute flag in update descriptor
  • Separate jup.exe that requires elevated permissions and can modify Program Files (Windows only)
  • How can we update Mac app bundles installed in ~/Applications? How do we get write access? AuthorizationExecuteWithPrivileges?
  • Execute command via MSI? Can we build an MSI package that will download the latest version via jup on install?
  • Sign XML update descriptor, maybe via an additional XML header attribute? e.g. <?xml version="1.0" encoding="UTF-8" signature="A1B2C3D4F5" ?> What about multiple signatures? Use separate update.xml.signature files? (side effect: if update.xml is large, we only need to check for changes in the small *.signature file to know if there's any updates)
  • Should we use XML Digital Signatures? Java has an API, but it it seems overly complex (to account for use cases we don't care about).
  • Do target files need to be signed? If only the update.xml file is signed and contains SHA-256 checksums for all target files. Can we trust target files just by checking SHA-256 file integrity?
  • Keep local modification of original file has not been changed for this update
  • Send machine identifier with HTTP requests to estimate number of active users
  • Post-update hook that can call an *.msi that was part of the update, so that we can update the updater itself, Software Panel information, Window Shortcuts, etc
  • Same rationale as Getdown

Related Papers

Related Projects

Status

The Microsoft Store has thoroughly solved the problem on Windows. The Mac App Store and brew cask work reasonably well on Mac. Snap works on Ubuntu, and probably all the popular Linuxes, and maybe even BSD in the future. I recommend going with native package management instead of building update functionality into end-user software.

About

Java Update Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published