From 9f18011db6be3c0b26e17892b0e071a5e776192c Mon Sep 17 00:00:00 2001 From: Andrew Molchanov Date: Mon, 13 Nov 2023 16:50:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BD=D1=83=20=D1=82=D0=B0=D0=BA=20=D0=B0?= =?UTF-8?q?=D0=BF=D0=B4=D0=B5=D0=B9=D1=82=D0=B5=D1=80=20=D1=84=D0=B0=D0=B9?= =?UTF-8?q?=D0=BB=D1=8B=20=D0=B8=D0=B3=D1=80=D1=8B=20=D0=BD=D0=B5=20=D0=B7?= =?UTF-8?q?=D0=B0=D1=82=D1=80=D1=91=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/main/helpers/StorageHelper.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2ca18e5..1e9d04d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurora-launcher-app", - "version": "0.0.4-beta.9", + "version": "0.0.4-beta.10", "description": "Launcher for Minecraft", "main": "build/main/index.js", "private": true, diff --git a/src/main/helpers/StorageHelper.ts b/src/main/helpers/StorageHelper.ts index 0b01f7b..93a4128 100644 --- a/src/main/helpers/StorageHelper.ts +++ b/src/main/helpers/StorageHelper.ts @@ -1,8 +1,9 @@ import { existsSync, mkdirSync } from 'fs'; +import { homedir } from 'os'; import { resolve } from 'path'; export class StorageHelper { - static storageDir: string = resolve(__dirname, '../game'); + static storageDir: string = resolve(homedir(), '.aurora-launcher'); static assetsDir: string = resolve(StorageHelper.storageDir, 'assets'); static clientsDir: string = resolve(StorageHelper.storageDir, 'clients'); static librariesDir: string = resolve(