2016-02-06 22:59:16 -07:00
|
|
|
# ATLauncher
|
2013-11-18 04:51:19 -07:00
|
|
|
|
2019-06-09 02:49:03 -07:00
|
|
|
[![CircleCI](https://circleci.com/gh/ATLauncher/ATLauncher/tree/master.svg?style=shield)](https://circleci.com/gh/ATLauncher/ATLauncher/tree/master)
|
2019-06-23 00:00:58 -07:00
|
|
|
[![Discord](https://discordapp.com/api/guilds/117047818136322057/embed.png?style=shield)](https://atl.pw/discordfromgithub)
|
2019-06-09 02:49:03 -07:00
|
|
|
|
|
|
|
## What is it
|
2018-05-26 19:47:33 -07:00
|
|
|
|
2016-02-06 22:59:16 -07:00
|
|
|
ATLauncher is a Launcher for Minecraft which integrates multiple different ModPacks to allow you to download and install
|
|
|
|
ModPacks easily and quickly.
|
2013-11-18 04:51:19 -07:00
|
|
|
|
2016-02-06 22:59:16 -07:00
|
|
|
## Links
|
2018-05-26 19:47:33 -07:00
|
|
|
|
2019-07-13 06:42:25 -07:00
|
|
|
- [ATLauncher Website](https://www.atlauncher.com)
|
|
|
|
- [ATLauncher Facebook](http://www.facebook.com/ATLauncher)
|
|
|
|
- [ATLauncher Reddit](http://www.reddit.com/r/ATLauncher)
|
|
|
|
- [ATLauncher Twitter](http://twitter.com/ATLauncher)
|
2013-11-18 04:51:19 -07:00
|
|
|
|
2016-02-06 22:59:16 -07:00
|
|
|
## Coding Standards & Styling Guidelines
|
2018-05-26 19:47:33 -07:00
|
|
|
|
2016-02-06 22:59:16 -07:00
|
|
|
Please see the [STYLE.md](STYLE.md) file for coding standards and style guidelines.
|
2013-11-18 04:51:19 -07:00
|
|
|
|
2016-02-06 23:12:41 -07:00
|
|
|
## Contributing to ATLauncher
|
2018-05-26 19:47:33 -07:00
|
|
|
|
2019-06-23 00:00:58 -07:00
|
|
|
Take a look at [CONTRIBUTING.md](CONTRIBUTING.md)
|
2016-02-06 23:12:41 -07:00
|
|
|
|
|
|
|
## Testing
|
2018-05-26 19:47:33 -07:00
|
|
|
|
2016-02-06 23:12:41 -07:00
|
|
|
Please see the [TESTING.md](TESTING.md) file for information on how we write tests.
|
|
|
|
|
2016-02-06 22:59:16 -07:00
|
|
|
## Building
|
2018-05-26 19:47:33 -07:00
|
|
|
|
2019-06-08 15:14:03 -07:00
|
|
|
To build this project, simply run:
|
2018-05-26 19:47:33 -07:00
|
|
|
|
2019-06-08 15:14:03 -07:00
|
|
|
```sh
|
|
|
|
./gradlew build
|
2013-11-18 04:51:19 -07:00
|
|
|
```
|
|
|
|
|
2019-06-08 15:14:03 -07:00
|
|
|
This will build the application and output the resulting files for Windows, Linux and OSX in the
|
|
|
|
`dist` directory.
|
2017-08-12 23:29:23 -07:00
|
|
|
|
2019-06-09 04:19:52 -07:00
|
|
|
## Running in test
|
|
|
|
|
|
|
|
If you want to run the launcher while developing with it, you can use your IDE (if you have one) to
|
|
|
|
do that for you.
|
|
|
|
|
|
|
|
Alternatively you can run:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./gradlew run --args="--debug --debug-level 3 --working-dir=test"
|
|
|
|
```
|
|
|
|
|
2019-06-14 23:28:48 -07:00
|
|
|
## Using VSCode
|
|
|
|
|
|
|
|
This project is setup to use [VSCode](https://code.visualstudio.com/) for development. You're free
|
|
|
|
to use any other IDE that you're accustomed to (if any), but by using VSCode, you get the benefit
|
|
|
|
of predefined tasks and launch commands.
|
|
|
|
|
2019-07-17 06:46:52 -07:00
|
|
|
## Checking for dependency updates
|
|
|
|
|
|
|
|
To check for dependency updates with gradle, simply run:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
./gradlew dependencyUpdates
|
|
|
|
```
|
|
|
|
|
|
|
|
This will print a report to the console about any dependencies which have updates.
|
|
|
|
|
2016-02-06 22:59:16 -07:00
|
|
|
## Plugging In Your Data
|
2018-05-26 19:47:33 -07:00
|
|
|
|
2016-02-06 22:59:16 -07:00
|
|
|
To get started with the code and plug in your own data, you need to edit the
|
|
|
|
/src/main/java/com/atlauncher/data/Constants.java file.
|
2013-11-18 04:51:19 -07:00
|
|
|
|
2019-06-08 15:14:03 -07:00
|
|
|
By using this source code you don't get permissions to use our CDN/files/assets/modpacks. See the
|
|
|
|
License section at the bottom for more.
|
2013-11-18 04:51:19 -07:00
|
|
|
|
2014-06-15 02:43:24 -07:00
|
|
|
See below for explanations as to what each constant means.
|
2013-11-18 04:51:19 -07:00
|
|
|
|
2016-02-06 22:59:16 -07:00
|
|
|
### VERSION
|
2018-05-26 19:47:33 -07:00
|
|
|
|
2019-06-08 15:14:03 -07:00
|
|
|
This is a LauncherVersion object passed in the reserved, major, minor, revision ints for this
|
|
|
|
version of the launcher. See the 'Versioning System' section below.
|
2014-06-17 05:21:38 -07:00
|
|
|
|
2016-02-06 22:59:16 -07:00
|
|
|
### API_BASE_URL
|
2018-05-26 19:47:33 -07:00
|
|
|
|
2019-06-08 15:14:03 -07:00
|
|
|
This is a link to your server side API for processing of leaderboard times and pack installs. This
|
|
|
|
is optional and can be removed. We do not give implementation code, this is your own doing.
|
2014-04-30 04:22:44 -07:00
|
|
|
|
2016-02-06 22:59:16 -07:00
|
|
|
### PASTE_CHECK_URL
|
2018-05-26 19:47:33 -07:00
|
|
|
|
2019-06-08 15:14:03 -07:00
|
|
|
This is a link to the url where an instance of [stikked](https://github.com/claudehohl/Stikked) is
|
|
|
|
running (For instance http://www.mypaste.com) this is how the launcher knows if the paste was
|
|
|
|
successful by checking the response from the API for the url of the software.
|
2014-04-30 04:22:44 -07:00
|
|
|
|
2019-06-08 15:14:03 -07:00
|
|
|
_Please note that the domain given above IS NOT REAL. You must install
|
|
|
|
[stikked](https://github.com/claudehohl/Stikked) on your own domain and reference it, the domain is
|
|
|
|
only there as an example of what a valid value is._
|
2014-12-20 20:13:15 -07:00
|
|
|
|
2016-02-06 22:59:16 -07:00
|
|
|
### PASTE_API_URL
|
2018-05-26 19:47:33 -07:00
|
|
|
|
2019-06-08 15:14:03 -07:00
|
|
|
Same as above
|
2014-12-20 20:13:15 -07:00
|
|
|
|
2016-02-06 22:59:16 -07:00
|
|
|
### SERVERS
|
2018-05-26 19:47:33 -07:00
|
|
|
|
2016-02-06 22:59:16 -07:00
|
|
|
This is an array of
|
2019-06-08 15:14:03 -07:00
|
|
|
[Server](https://github.com/ATLauncher/ATLauncher/blob/master/src/main/java/com/atlauncher/data/Server.java)
|
|
|
|
type elements the launcher uses as a base to download files.
|
2013-11-18 04:51:19 -07:00
|
|
|
|
2016-02-06 22:59:16 -07:00
|
|
|
### LAUNCHER_NAME
|
2018-05-26 19:47:33 -07:00
|
|
|
|
2015-01-12 13:51:11 -07:00
|
|
|
This is the name of the launcher.
|
|
|
|
|
2016-02-06 22:59:16 -07:00
|
|
|
### How to make your data
|
2018-05-26 19:47:33 -07:00
|
|
|
|
2019-06-08 15:14:03 -07:00
|
|
|
To make the data the Launcher needs you will need to figure out your own server side way of doing
|
|
|
|
that. You can create a system to do it automatically or you can manually do it by just popping the
|
|
|
|
files on the server. The best way to get the file structure and contents is to examine the source
|
|
|
|
code and the ATLauncher files it downloads.
|
2014-06-15 03:28:35 -07:00
|
|
|
|
2016-02-06 22:59:16 -07:00
|
|
|
## Versioning System
|
2018-05-26 19:47:33 -07:00
|
|
|
|
2019-06-08 15:14:03 -07:00
|
|
|
Starting with version 3.2.1.0 a new versioning system was put into place. It works off the
|
|
|
|
following:
|
2014-06-15 03:28:35 -07:00
|
|
|
|
2014-12-02 01:13:11 -07:00
|
|
|
Reserved.Major.Minor.Revision.Build
|
2014-06-15 03:28:35 -07:00
|
|
|
|
2019-06-08 15:14:03 -07:00
|
|
|
So for 3.2.1.0.0 the major number is 2 and minor number is 1 and revision number is 0. Reserved is
|
|
|
|
used as a base, only incremented on complete rewrites. The build number is optional and should be 0
|
|
|
|
on releases.
|
2014-06-15 03:28:35 -07:00
|
|
|
|
|
|
|
Major should be incremented when large changes/features are made.
|
|
|
|
|
|
|
|
Minor should be incremented when small changes/features are made.
|
|
|
|
|
2019-06-08 15:14:03 -07:00
|
|
|
Revision should be incremented when there are no new features and only contains bug fixes for the
|
|
|
|
previous minor.
|
2014-06-15 03:28:35 -07:00
|
|
|
|
2019-06-08 15:14:03 -07:00
|
|
|
Build is used for beta releases allowing you to have higher version numbers but force users to
|
|
|
|
update when the real
|
2016-02-06 22:59:16 -07:00
|
|
|
release comes.
|
2013-11-18 04:51:19 -07:00
|
|
|
|
2019-07-13 00:19:54 -07:00
|
|
|
## Translating
|
|
|
|
|
|
|
|
ATLauncher is written for English speakers. All our translations are community run by those who
|
2019-07-13 01:09:40 -07:00
|
|
|
take their time and submit updates to the text in a different language.
|
2019-07-13 00:19:54 -07:00
|
|
|
|
2019-07-13 01:09:40 -07:00
|
|
|
If you wish to help translate ATLauncher, please visit our page on
|
|
|
|
[Crowdin](https://crowdin.com/project/atlauncher) and start translating.
|
2019-07-13 00:19:54 -07:00
|
|
|
|
|
|
|
### Updating the template file
|
|
|
|
|
|
|
|
If new strings are added to the launcher, the template file will need to be updated in order to
|
|
|
|
take into account the new strings.
|
|
|
|
|
2019-07-13 01:09:40 -07:00
|
|
|
In order to do this, run `./gradlew generatePots` which will scan the source files and create a
|
|
|
|
`build/gettext/translations.pot` file.
|
2019-07-13 00:19:54 -07:00
|
|
|
|
2019-07-13 01:09:40 -07:00
|
|
|
Note that out of the box, this will not generate in the correct format. The file should be opened
|
|
|
|
with [POEdit](https://poedit.net/), which will automatically fix the file, which then you can save
|
|
|
|
to `translations.pot` in the root directory, which will then get picked up by Crowdin.
|
2019-07-13 00:19:54 -07:00
|
|
|
|
2016-02-06 22:59:16 -07:00
|
|
|
## Need Help/Have Questions?
|
2018-05-26 19:47:33 -07:00
|
|
|
|
2015-05-15 02:41:53 -07:00
|
|
|
If you have questions please don't hesitate to [contact us](https://www.atlauncher.com/contact-us/)
|
2013-11-18 04:51:19 -07:00
|
|
|
|
2016-02-06 22:59:16 -07:00
|
|
|
## License
|
2018-05-26 19:47:33 -07:00
|
|
|
|
2019-06-08 15:14:03 -07:00
|
|
|
This work is licensed under the GNU General Public License v3.0. To view a copy of this license,
|
|
|
|
visit <http://www.gnu.org/licenses/gpl-3.0.txt>.
|
2015-05-15 02:41:53 -07:00
|
|
|
|
2019-06-08 15:14:03 -07:00
|
|
|
A simple way to keep in terms of the license is by forking this repository and leaving it open
|
|
|
|
source under the same license. We love free software, seeing people use our code and then not share
|
|
|
|
the code, breaking the license, is saddening. So please take a look at the license and respect what
|
|
|
|
we're doing.
|
2015-05-15 02:41:53 -07:00
|
|
|
|
2019-06-08 15:14:03 -07:00
|
|
|
Also, while we cannot enforce this under the license, you cannot use our CDN/files/assets/modpacks
|
|
|
|
on your own launcher. Again we cannot enforce this under the license, but needless to say, we'd be
|
|
|
|
very unhappy if you did that and really would like to leave cease and desist letters as a last
|
|
|
|
resort.
|
2015-05-15 02:41:53 -07:00
|
|
|
|
2019-06-08 15:14:03 -07:00
|
|
|
If you have any questions or concerns as to the license or what we consider to be good and bad in
|
|
|
|
your clone/fork, please use the contact link in the section right above this one.
|