-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug.ps1
More file actions
21 lines (16 loc) · 868 Bytes
/
debug.ps1
File metadata and controls
21 lines (16 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
dotnet publish Flow.Launcher.Plugin.svgl -c Debug -r win-x64 --no-self-contained
$AppDataFolder = [Environment]::GetFolderPath("ApplicationData")
$flowLauncherExe = "$env:LOCALAPPDATA\FlowLauncher\Flow.Launcher.exe"
if (Test-Path $flowLauncherExe) {
Stop-Process -Name "Flow.Launcher" -Force -ErrorAction SilentlyContinue
Start-Sleep -Seconds 2
if (Test-Path "$AppDataFolder\FlowLauncher\Plugins\svgl") {
Remove-Item -Recurse -Force "$AppDataFolder\FlowLauncher\Plugins\svgl"
}
Copy-Item "Flow.Launcher.Plugin.svgl\bin\Debug\win-x64\publish" "$AppDataFolder\FlowLauncher\Plugins\" -Recurse -Force
Rename-Item -Path "$AppDataFolder\FlowLauncher\Plugins\publish" -NewName "svgl"
Start-Sleep -Seconds 2
Start-Process $flowLauncherExe
} else {
Write-Host "Flow.Launcher.exe not found. Please install Flow Launcher first"
}