Browse Source

Fix server.exe not starting.

master
Josh Mudge 5 years ago
parent
commit
3c24b78d24
  1. 2
      All/Sign Using OV Cert.md
  2. 3
      All/setup.go

2
All/Sign Using OV Cert.md

@ -98,7 +98,7 @@ Rename `server.go` to `server.go_`
## Put the Server File In the Setup File
We need to install `fileb0x` to be able to store our server file (`server.exe`) in our setup file (`setup.exe`).
We need to install `fileb0x` to be able to store our server file `server.exe` in our setup file `setup.exe`.
```
# Install fileb0x

3
All/setup.go

@ -1,5 +1,4 @@
//go:generate goversioninfo -manifest=setup.exe.manifest
//go:generate fileb0x b0x.json
//Add new firewall rule in Go.
package main
@ -50,7 +49,7 @@ func main() {
cmdinstance.SysProcAttr = &syscall.SysProcAttr{HideWindow: true} // Make it silent.
cmdinstance2 := exec.Command("cmd", "/C", "start", "http://localhost:8100")
cmdinstance2.SysProcAttr = &syscall.SysProcAttr{HideWindow: true} // Make it silent.
cmdinstance3 := exec.Command("cmd", "start", "server.exe")
cmdinstance3 := exec.Command("cmd", "/K", "start", "server.exe")
cmdinstance3.SysProcAttr = &syscall.SysProcAttr{HideWindow: true} // Make it silent.
cmdoutput, cmderr := cmdinstance.Output()

Loading…
Cancel
Save