Giter Site home page Giter Site logo

aron2560 / update4j Goto Github PK

View Code? Open in Web Editor NEW

This project forked from update4j/update4j

0.0 1.0 0.0 422 KB

Update and launch Java 9+ applications. Built with the Java Platform Module System in mind.

Home Page: http://update4j.org/

License: Apache License 2.0

Java 100.00%

update4j's Introduction

update4j-logo

Build Status Apache License Java-9+ Maven Release Gitter

Read the documentation, explore the JavaDoc, or see it in action

Auto-updater and launcher for your distributed applications. Built with Java 9's module system in mind.

Screenshots

Headless

Downloads 4 files then launches hello-world.jar. You can see that subsequent runs won't download again. headless

JavaFX

Downloads 4 files then launches hello-world.jar javafx

Overview

The update4j framework is the first auto-update and launcher framework completely compatible with Java 9 and up. Easily host your application files anywhere (even Google Drive, Dropbox, Amazon S3, or Maven Central) and you can synchronize them with all your distributed applications. You can use any protocol you wish to retrieve those files and may be protected under authenticated API.

In update4j you have ultimate control of every process, from startup - update - launch - shutdown; unlike other auto-update frameworks that yields over the control only once the business application was launched. In addition, every single piece of code is completely updatable; even the framework itself, once a new version is released!

Installation & Usage

You can download or install using Maven:

<dependency>
    <groupId>org.update4j</groupId>
    <artifactId>update4j</artifactId>
    <version>1.4.1</version>
</dependency>

You can use it as a regular dependency, or you may run it as a runnable JAR file.

To run it in the modulepath, use either of:

$ java -p update4j-1.4.1.jar -m org.update4j
$ java -p . -m org.update4j

To run it in the classpath, use either of:

$ java -jar update4j-1.4.1.jar
$ java -cp * org.update4j.Bootstrap

For more information refer to Starting the Application in the wiki.

What's New in 1.4.x โ€” Migration Guide

  • Added UpdateHandler.shouldCheckForUpdate(). Returning false will skip that file from being updated.
  • Pass arguments and system properties from the config when using the DefaultLauncher.
  • DefaultLauncher is now aware of JavaFX and will start javafx.application.Application even if missing a main method in class defined in default.launcher.main.class.
  • Reduced system dependencies to java.xml and added warnings if system module is not properly resolved. (breaking change in some cases).
  • Added dependency injection framework to communicate between the bootstrap and service provider.
  • Consequently, removed provider consumers at update and launch, and passing args at launch.
  • Removed many confusing getXxxProperty() methods in Configuration class.
  • You can now add properties to a config dynamically at runtime.
  • Locate explicit service providers even if not properly registered as required by ServiceLoader.
  • Made many service methods default.
  • Added osFromFilename() method in FileMetadata builder.
  • Changed how --delegate argument in Bootstrap works.

Attribution

This project was highly influenced by edvin/fxlauncher. Thanks for the insights that made this possible.

License

This project is licensed under the Apache Software License 2.0

update4j's People

Contributors

mordechaim avatar xzel23 avatar debei avatar meblum avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.