Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here


Statistics on auto-update

Number of watchers on Github 62
Number of open issues 1
Main language Objective-C
Open pull requests 0+
Closed pull requests 0+
Last commit over 5 years ago
Repo Created over 5 years ago
Repo Last Updated over 1 year ago
Size 204 KB
Organization / Authorautomattic
Latest Release0.1.1
Contributors1
Page Updated
Do you use auto-update? Leave a review!
View auto-update activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating auto-update for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

Automatic Updates Everywhere!

Icons

The goal of this project is to provide a drop-in solution for silent, automatic, unobstrusive Chrome-like updates to a variety of platforms.

This repository holds the client-side code for downloading and installing software updates. For the server-side code, check https://github.com/cloudup/auto-update-server .

Currently, two ports of the client-side library are available:

  • An Objective-C / Cocoa port, for OSX 10.6+
  • A C# / .NET port, for Windows XP/Vista/7/8/8.1

The .NET port is currently behind the Cocoa port, and is not quite ready for production use. It's temporarily available only under the dot-net branch. Once it reaches parity with the Cocoa port it will be merged back to master.

We intend to have as many ports as possible.

Technical Overview

Each port of the client library is responsible for doing an HTTP request to the update server, providing information such as the current application name, application version, operating system version, machine architecture, etc.

The server then iterates over the available updates and responds with the latest version that matches all provided criteria. (For more information about the server operation check its repository)

The client library then handles downloading the update into temporary storage, extracting/decompressing its contents (if applicable), and installing it.

Since replacing the executable file of the current running process is tricky on some platforms, the installation is usually performed via a second stage shell script/batch file.

Robustness

If possible, the update client library should operate on a separate thread (or even on a separate process) to provide isolation and robustness, so that it's still possible to download updates in case the main thread hangs or crashes.

This is specially useful when delivering updates for continuous integration purposes. (i.e. one build per push to a github repository)

Relaunching

To finish the installation of the update, an app relaunch is required. The update client library will notify the app when an update is available, and the app can decide whether to relaunch imediately or to wait. For status bar/notification area applications like Cloudup, that run in the background, an immediate relauch is usually adequate. (As long as the user is not currently using the app, or a critical operation is taking place) For more traditional applications, it might be interesting to delay the relaunch, or to provide a UI to manually relaunch the app.

Content of update files

On the OS X port, updates are simply the latest application bundle, compressed as a .tar.gz file. For other ports, the content of the update file should probably match the platform conventions, (e.g. MSI files for Windows, .deb or .rpm files for Linux) unless it's more convenient to utilize a non-standard format for performance or other technical reasons.

Creating New Ports

New ports should be created on a separate git branch, inside a new directory with the AutoUpdate.XYZ name, where XYZ is the name of the port. For example, for a Python port you should do:

git checkout -b python
mkdir AutoUpdate.Python
cd AutoUpdate.Python

(Keep your port contained in that directory.)

The ports don't need to be literal, exact ports of the Cocoa or .NET versions, you're free to create something that is idiomatic and makes sense under the platform/programming language conventions, while trying to more or less match the style of the API.

Before creating a new port, please open an issue so that we can avoid situations like two people creating ports for the same platform at the same time, and that so we can discuss the approach used for the port.

Contributors

License

The MIT License (MIT)

Copyright (c) 2014 Automattic, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

auto-update open issues Ask a question     (View All Issues)
  • over 5 years Linux Port
auto-update questions on Stackoverflow (View All Questions)
  • Auto update excel spreadsheet everyday from new csv file that created everyday
  • Disable Firefox auto update requests
  • Long lag between ClickOnce publish and client-side auto-update
  • Auto-update process in the background
  • delay indexed view auto update
  • Auto-Update for (private) Android apps
  • Does IE11 auto update to Edge?
  • Best way to filter data and auto update on filter view
  • Is is possible to auto-update install4j bundled JRE
  • Inject username into dbContext (Entity Framework 6) to auto-update columns ModifiedBy/CreatedBy
  • Auto-update (calculate) the Excel sheet when a cell is changed
  • Implementing a JavaFX application auto update feature
  • Auto-update ms-word graph based on a table in the same document
  • How to create auto-update date header pattern
  • karma + Chrome not working after last auto-update of Chrome
  • Use HTTP Request in auto update feature of Install4j
  • MySQL event scheduler set expiration date on data and auto update if expired
  • Auto-refresh / auto-update page in background
  • MeteorJs toggle template's reactivity [auto-update] on client-side?
  • auto update xml/php script
  • Auto-Update frameworks for Java applications
  • Auto-update an Android launcher
  • C# Auto Update List insted of .clear and refill the list
  • Joomla's Dynamic Page title and meta descriptions ( page title and meta auto update from DB chosen fields )
  • How to auto update many descendants forms after ancerstor form had an control deleted?
  • paypal auto update of quantity in cart
  • How to enable auto-update for my Android apk?
  • Turning Off Auto Update on JDK installation of Java 8
  • Android: how to programmatically check about the app auto-update settings
  • How To upload iOS build to our own website and auto update the in house apps
auto-update list of languages used
Other projects in Objective-C