Git Product home page Git Product logo

launcherbootstrap's Introduction

SKCraft Launcher Bootstrap

Mechanism

If the launcher does not appear to have been downloaded, the bootstrapper will download the latest launcher version, store it, and run it.

On next start up, the bootstrapper will start the existing downloaded version.

When you push an update, the launcher (not the bootstrapper) will download the new version, store it in the right place, and on next startup, the bootstrapper will start using this new version.

Customizing

All the customization is done within the src\main\resources\com\skcraft\launcher folder.

  • Replace bootstrapper_icon.png with your own program icon.
  • Change bootstrap.properties with a text editor.
  • Customize the language file in lang.

User's Files

On Windows, the launcher will store its files within My Documents. On other operating systems, the launcher will store its files in the home directory.

The name of the folder can be customized in bootstrap.properties but the directory cannot.

Update URL

The update URL should point to a file that looks like this:

{
    "version": "4.2.2",
    "url": "http://example.com/launcher/versions/4.2.2.jar.pack"
}

This is the same file that the main launcher uses.

The URL within this file must point to the main launcher's jar file that has been compressed using the pack200 tool (that comes with the JDK).

Compiling

  1. The Java Development Kit (JDK) needs to be installed. This turns Java code into Java programs.
  2. Maven needs to be installed as well. This program reads the "pom.xml" file and runs the JDK for you.

While in the same directory as this document, run the following in terminal or command prompt:

mvn clean package

In the target/ folder should be the resulting files.

If you want to generate .exe (for Windows) and .app files (for Mac OS X), compile using the following command:

mvn -Pplatform-specific clean package 

WARNING: If the path that you have the bootstrap project in has space characters, this may fail.

License

The launcher is licensed under the GNU General Public License, version 3.

Contributions by third parties must be dual licensed under the two licenses described within LICENSE.txt (GNU General Public License, version 3, and the 3-clause BSD license).

launcherbootstrap's People

Contributors

sk89q avatar

Watchers

James Cloos avatar Marcin Michalak 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.