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

Fix another issue at startup

This commit is contained in:
Quentin Legot 2024-01-23 13:32:55 +01:00
parent 8d68851275
commit 491be96867

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'))