From 564ee89c842a658503c280f4e21bbd7e6d72ad2a Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Tue, 17 Aug 2021 11:21:38 -0700 Subject: [PATCH] ci(scoop): stop proc if running before updates For future upgrades of komorebi via Scoop, the proc will most likely be running on the user's system. This commit adds a pre_install hook to run 'komorebi stop' if komorebi is running at the time of the upgrade. resolve #11 --- .goreleaser.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index fef2597f..cb231096 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -52,6 +52,8 @@ scoop: homepage: https://github.com/LGUG2Z/komorebi description: A tiling window manager for Windows license: MIT + pre_install: + - if (Get-Process -Name komorebi -ErrorAction SilentlyContinue) { komorebic stop } post_install: - Write-Host "Run 'cp $original_dir\komorebi.sample.ahk $Env:UserProfile\komorebi.ahk' to get started with the sample configuration" - Write-Host "Once you have a configuration file in place, you can run 'komorebic start' to start the window manager"