mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-11-22 20:26:22 +03:00
Update README.md
This commit is contained in:
parent
3714c6582d
commit
14f8e456db
1 changed files with 13 additions and 0 deletions
13
README.md
13
README.md
|
@ -13,6 +13,7 @@ launcher.authenticator.getAuth("email", "password").then(auth => {
|
||||||
// Save the auth to a file so it can be used later on!
|
// Save the auth to a file so it can be used later on!
|
||||||
launcher.core({
|
launcher.core({
|
||||||
authorization: auth,
|
authorization: auth,
|
||||||
|
clientPackage: null,
|
||||||
// All of the following is required
|
// All of the following is required
|
||||||
root: "directory", // C:/Users/user/AppData/Roaming/.mc
|
root: "directory", // C:/Users/user/AppData/Roaming/.mc
|
||||||
os: "windows", // windows, osx, linux
|
os: "windows", // windows, osx, linux
|
||||||
|
@ -38,6 +39,7 @@ launcher.authenticator.getAuth("email", "password").then(auth => {
|
||||||
}
|
}
|
||||||
launcher.core({
|
launcher.core({
|
||||||
authorization: auth,
|
authorization: auth,
|
||||||
|
clientPackage: null,
|
||||||
// All of the following is required
|
// All of the following is required
|
||||||
root: "directory", // C:/Users/user/AppData/Roaming/.mc
|
root: "directory", // C:/Users/user/AppData/Roaming/.mc
|
||||||
os: "windows", // windows, osx, linux
|
os: "windows", // windows, osx, linux
|
||||||
|
@ -52,6 +54,17 @@ launcher.authenticator.getAuth("email", "password").then(auth => {
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Client Packages
|
||||||
|
|
||||||
|
Client Packages allow the client to run offline on setup.
|
||||||
|
|
||||||
|
* makePackage - `launcher.handler.makePackage(["arrayOfVersions"], "os");`
|
||||||
|
* extractPackage - `launcher.handler.extractPackage("directory", "packageDirectory")`
|
||||||
|
|
||||||
|
If you're using a clientPackage, change `null` for `clientPackage` to the zip directory in the example.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### What should it look like running from console?
|
#### What should it look like running from console?
|
||||||
|
|
||||||
![gif](https://pierce.is-serious.business/7d91a7.gif)
|
![gif](https://pierce.is-serious.business/7d91a7.gif)
|
||||||
|
|
Loading…
Add table
Reference in a new issue