Fix server.exe not starting.
This commit is contained in:
parent
c01b6fe8e9
commit
3c24b78d24
|
@ -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
|
||||
|
|
|
@ -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…
Reference in New Issue