4
0
mirror of https://github.com/AltarikMC/Launcher synced 2024-11-24 06:39:50 +01:00

Merge pull request #368 from AltarikMC/dev

Fix another issue on startup
This commit is contained in:
Quentin Legot 2024-01-23 13:35:07 +01:00 committed by GitHub
commit d55e9c9197
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "altarik-launcher", "name": "altarik-launcher",
"author": "Altarik", "author": "Altarik",
"version": "2.1.3", "version": "2.1.4",
"description": "Altarik Launcher", "description": "Altarik Launcher",
"main": "src/server/main.js", "main": "src/server/main.js",
"type": "module", "type": "module",

View File

@ -1,11 +1,11 @@
import ChildProcess from 'child_process'
import path from 'path'
export default function handleSquirrelEvent (app) { export default function handleSquirrelEvent (app) {
if (process.argv.length === 1) { if (process.argv.length === 1) {
return false return false
} }
const ChildProcess = require('child_process')
const path = require('path')
const appFolder = path.resolve(process.execPath, '..') const appFolder = path.resolve(process.execPath, '..')
const rootAtomFolder = path.resolve(appFolder, '..') const rootAtomFolder = path.resolve(appFolder, '..')
const updateDotExe = path.resolve(path.join(rootAtomFolder, 'Update.exe')) const updateDotExe = path.resolve(path.join(rootAtomFolder, 'Update.exe'))