Compare commits
3 commits
91b0e4f6dd
...
5583c7ac88
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5583c7ac88 | ||
|
|
acb0bd89e0 | ||
|
|
aa67045503 |
3 changed files with 5 additions and 5 deletions
1
.tool-versions
Normal file
1
.tool-versions
Normal file
|
|
@ -0,0 +1 @@
|
|||
golang 1.24.1
|
||||
|
|
@ -1,4 +1,6 @@
|
|||
FROM scottyhardy/docker-wine:stable-9.0-20240915
|
||||
FROM alpine:3.21
|
||||
|
||||
RUN apk update && apk add wine xvfb winetricks golang
|
||||
|
||||
ARG SQL_ADDRESS
|
||||
ARG SQL_ACCOUNT
|
||||
|
|
@ -9,9 +11,6 @@ ARG SERVER_NAME
|
|||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Install dependencies
|
||||
RUN apt-get update && apt-get install golang-go xvfb -y
|
||||
|
||||
# Start display for headless wine
|
||||
RUN Xvfb :0 -screen 0 1024x768x16 &
|
||||
# Install wine dependencies
|
||||
|
|
|
|||
2
main.go
2
main.go
|
|
@ -24,7 +24,7 @@ func main() {
|
|||
wg.Add(1)
|
||||
go func(executable string) {
|
||||
fmt.Printf("Starting %v...\n", bin)
|
||||
cmd := exec.Command(cwd + "/deploy/" + executable + ".exe") cmd.Stdout = os.Stdout
|
||||
cmd := exec.Command("xvfb-run wine " + cwd + "/deploy/" + executable + ".exe") cmd.Stdout = os.Stdout
|
||||
if err := cmd.Run(); err != nil {
|
||||
fmt.Println(err.Error())
|
||||
os.Exit(1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue