diff --git a/neutralino.config.json b/neutralino.config.json index b428152..07c8d88 100644 --- a/neutralino.config.json +++ b/neutralino.config.json @@ -1,6 +1,6 @@ { "applicationId": "com.krypt0nn.an-anime-game-launcher", - "version": "2.0.0-beta-3", + "version": "2.0.0-beta-4", "defaultMode": "window", "port": 0, "documentRoot": "/bundle/", diff --git a/package.json b/package.json index c5403b4..15db858 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "an-anime-game-launcher", - "version": "2.0.0-beta-3", + "version": "2.0.0-beta-4", "license": "GPL-3.0", "type": "module", "scripts": { diff --git a/scripts/bundle-appimage.cjs b/scripts/bundle-appimage.cjs index 0b4c80c..862bcce 100644 --- a/scripts/bundle-appimage.cjs +++ b/scripts/bundle-appimage.cjs @@ -39,7 +39,7 @@ const bundler = new Bundler({ output: path.join(__dirname, '../dist/An Anime Game Launcher.AppImage'), // Application version - version: '2.0.0-beta-3' + version: '2.0.0-beta-4' }); // Bundle project diff --git a/src/ts/core/Domain.ts b/src/ts/core/Domain.ts index 35ff86f..be04fc3 100644 --- a/src/ts/core/Domain.ts +++ b/src/ts/core/Domain.ts @@ -10,7 +10,7 @@ export default class Domain const debugThread = new DebugThread('Domain.getInfo', `Getting info about uri: ${uri}`); return new Promise(async (resolve) => { - const process = await Process.run(`ping -n 1 -w 1 -B ${uri}`); + const process = await Process.run(`ping -n 1 -w 1 -B "${Process.addSlashes(uri)}"`); // If something will be wrong - at least we'll have // to wait 1.5 seconds instread of 2 diff --git a/src/ts/launcher/states/Launch.ts b/src/ts/launcher/states/Launch.ts index 2b8b110..57b96d3 100644 --- a/src/ts/launcher/states/Launch.ts +++ b/src/ts/launcher/states/Launch.ts @@ -43,22 +43,8 @@ export default (): Promise => { const runner = await Runners.current(); if (runner !== null) - { wineExeutable = `${await constants.paths.runnersDir}/${runner.name}/${runner.files.wine}`; - try - { - Neutralino.filesystem.getStats(wineExeutable); - } - - catch - { - wineExeutable = 'wine'; - - await Configs.set('runner', null); - } - } - debugThread.log(`Wine executable path: ${wineExeutable}`); // Some special variables @@ -122,12 +108,6 @@ export default (): Promise => { if (await Configs.get('gamemode')) command = `gamemoderun ${command}`; - console.log({ - WINEPREFIX: await constants.paths.prefix.current, - ...env, - ...((await Configs.get('env') as object|null) ?? {}) - }); - /** * Starting the game */ diff --git a/src/ts/neutralino/Process.ts b/src/ts/neutralino/Process.ts index 8f83ed1..84e2e95 100644 --- a/src/ts/neutralino/Process.ts +++ b/src/ts/neutralino/Process.ts @@ -191,7 +191,7 @@ class Process } // Set output redirection to the temp file - command = `${command} > "${this.addSlashes(tmpFile)}" 2>&1 "${this.addSlashes(tmpFile)}" 2>&1