-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdebug.ps1
More file actions
31 lines (24 loc) · 775 Bytes
/
debug.ps1
File metadata and controls
31 lines (24 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
dotnet publish Flow.Launcher.Plugin.Snippets -c Release -r win-x64 --no-self-contained
# Compress-Archive -LiteralPath Flow.Launcher.Plugin.Snippets/bin/Release/win-x64/publish -DestinationPath Flow.Launcher.Plugin.Snippets/bin/Snippets.zip -Force
echo "Build Complete"
try {
taskkill /F /IM Flow.Launcher.exe
}
catch {
}
Start-Sleep -Seconds 1
try {
taskkill /F /IM Flow.Launcher.exe
}
catch {
}
echo "Kill Flow Launcher"
try {
Remove-Item $env:APPDATA\FlowLauncher\Plugins\Snippets-1.0.0\* -recurse
}
catch {
}
echo "Start Copy"
Copy-Item -Path Flow.Launcher.Plugin.Snippets\bin\Release\win-x64\publish\* -Destination $env:APPDATA\FlowLauncher\Plugins\Snippets-1.0.0\ -recurse
echo "Restart FlowLauncher"
.$env:LOCALAPPDATA\FlowLauncher\Flow.Launcher.exe