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.
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
.
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.
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).
- The Java Development Kit (JDK) needs to be installed. This turns Java code into Java programs.
- 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.
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).