-
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) · 878 Bytes
/
debug.ps1
File metadata and controls
21 lines (16 loc) · 878 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.TimeIn -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\TimeIn") {
Remove-Item -Recurse -Force "$AppDataFolder\FlowLauncher\Plugins\TimeIn"
}
Copy-Item "Flow.Launcher.Plugin.TimeIn\bin\Debug\win-x64\publish" "$AppDataFolder\FlowLauncher\Plugins\" -Recurse -Force
Rename-Item -Path "$AppDataFolder\FlowLauncher\Plugins\publish" -NewName "TimeIn"
Start-Sleep -Seconds 2
Start-Process $flowLauncherExe
} else {
Write-Host "Flow.Launcher.exe not found. Please install Flow Launcher first"
}