mirror of
https://github.com/AltarikMC/Launcher
synced 2025-12-13 11:41:45 +00:00
Fix another issue at startup
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import ChildProcess from 'child_process'
|
||||
import path from 'path'
|
||||
|
||||
export default function handleSquirrelEvent (app) {
|
||||
if (process.argv.length === 1) {
|
||||
return false
|
||||
}
|
||||
|
||||
const ChildProcess = require('child_process')
|
||||
const path = require('path')
|
||||
|
||||
const appFolder = path.resolve(process.execPath, '..')
|
||||
const rootAtomFolder = path.resolve(appFolder, '..')
|
||||
const updateDotExe = path.resolve(path.join(rootAtomFolder, 'Update.exe'))
|
||||
|
||||
Reference in New Issue
Block a user