Skip to content

Commit c31c37a

Browse files
committed
feat: eac, riot, lunar, harden ea & steam quits
1 parent 7f2e02e commit c31c37a

1 file changed

Lines changed: 25 additions & 4 deletions

File tree

main.go

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,36 @@ func main() {
124124
setupPath := filepath.Join(dir, "Spotify.exe")
125125
drive := strings.ToUpper(string(exePath[0])) + ":"
126126

127-
killProcesses(2*time.Second, "steam.exe", "EADesktop.exe")
127+
killProcesses(
128+
2*time.Second,
129+
// steam
130+
"steam.exe",
131+
"steamwebhelper.exe",
132+
// ea
133+
"EADesktop.exe",
134+
"EABackgroundService.exe",
135+
"EALocalHostSvc.exe",
136+
// riot/vanguard
137+
"Riot Client.exe",
138+
"RiotClientCrashHandler.exe",
139+
"RiotClientServices.exe",
140+
"vgc.exe",
141+
// they bought badlion so just to make this future-proof
142+
"Lunar Client.exe",
143+
// epic games
144+
"EpicGamesLauncher.exe",
145+
"EpicWebHelper.exe",
146+
// eac
147+
"EACefSubProcess.exe",
148+
)
128149

129150
clearTempDir()
130151

131-
log.Info("launching setup.exe...")
152+
log.Info("launching " + setupPath + " ...")
132153
if err = runSetupDetached(setupPath); err != nil {
133-
log.Error("error starting setup.exe: " + err.Error())
154+
log.Error("error starting " + setupPath + ": " + err.Error())
134155
} else {
135-
log.Info("setup.exe started successfully.")
156+
log.Info(setupPath + " started successfully.")
136157
}
137158

138159
log.Info("waiting before usb eject...")

0 commit comments

Comments
 (0)