From 994fb34dbd74418b1ac4e8358cf47d9b0c71f8c3 Mon Sep 17 00:00:00 2001 From: Asaki Yuki Date: Fri, 20 Feb 2026 23:47:22 +0700 Subject: [PATCH] linux support --- package.json | 2 +- src/compilers/ui/installer.ts | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3ea0715..027c110 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "asajs", - "version": "4.0.5-indev", + "version": "4.0.6-indev", "description": "Create your Minecraft JSON-UI resource packs using JavaScript", "keywords": [ "Minecraft", diff --git a/src/compilers/ui/installer.ts b/src/compilers/ui/installer.ts index 5f50f93..ab2f6c9 100644 --- a/src/compilers/ui/installer.ts +++ b/src/compilers/ui/installer.ts @@ -173,6 +173,17 @@ export function getGamedataPath() { } } + case "linux": { + const gamedata = path.join(process.env.HOME!, "\\.local\\share\\mcpelauncher\\games\\com.mojang") + if (fs.existsSync(gamedata)) return (pathinfo.gamepath = gamedata) + else { + return (pathinfo.gamepath = path.join( + process.env.HOME!, + "\\.var\\app\\io.mrarm.mcpelauncher\\data\\mcpelauncher\\games\\com.mojang", + )) + } + } + default: { console.warn(`Your platform is not supported the install feature yet! \nYour OS version: ${os.version()}`) }