mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2025-03-11 20:34:40 +03:00
Revert "better way to auth, prepping for client use"
This reverts commit a1d4bd8d3b
.
This commit is contained in:
parent
a1d4bd8d3b
commit
9362fe25df
3 changed files with 22 additions and 192 deletions
|
@ -9,6 +9,8 @@ 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