mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2025-03-11 20:34:40 +03:00
better way to auth, prepping for client use
github scares me ;-;
This commit is contained in:
parent
9362fe25df
commit
d4a3f9b90b
2 changed files with 15 additions and 23 deletions
|
@ -1,6 +1,5 @@
|
|||
const child = require('child_process');
|
||||
const path = require('path');
|
||||
const ygg = require('./authenticator');
|
||||
const handler = require('./handler');
|
||||
const fs = require('fs');
|
||||
const shelljs = require('shelljs');
|
||||
|
@ -9,8 +8,6 @@ const shelljs = require('shelljs');
|
|||
module.exports = async function (options) {
|
||||
if (!fs.existsSync(options.root)) fs.mkdirSync(options.root);
|
||||
|
||||
options.authorization = await ygg(options.login.offline, options.login.username, options.login.password);
|
||||
|
||||
const versionFile = await handler.getVersion(options.version.number);
|
||||
const directory = path.join(options.root, 'versions', options.version.number);
|
||||
options.directory = directory;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue