Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
mohemohe committed Feb 2, 2024
2 parents 514914c + 373e603 commit 9f68cd7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@

### Windows

// TODO:
- Windows 10 またはそれ以降
- Windows 10 の場合は [WebView2](https://developer.microsoft.com/ja-jp/microsoft-edge/webview2) がインストールされていること
- martinpaljak/GlobalPlatformPro v20.08.12 以降がインストールされていること
- https://github.com/martinpaljak/GlobalPlatformPro/releases/tag/v20.08.12

## LICENSE

Expand Down
8 changes: 2 additions & 6 deletions util/command/darwin.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
//go:build windows
//go:build darwin

package command

import (
"os/exec"
"syscall"
)
import "os/exec"

func HideWindow(cmd *exec.Cmd) {
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
}
8 changes: 6 additions & 2 deletions util/command/windows.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
//go:build darwin
//go:build windows

package command

import "os/exec"
import (
"os/exec"
"syscall"
)

func HideWindow(cmd *exec.Cmd) {
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
}

0 comments on commit 9f68cd7

Please sign in to comment.