Compare commits

...

3 commits

Author SHA1 Message Date
Benjamin Palko
5583c7ac88 run with xvfb
Some checks failed
Deployment / Install (push) Failing after 1m15s
2025-03-21 23:48:02 -04:00
Benjamin Palko
acb0bd89e0 try alpine 2025-03-21 23:47:52 -04:00
Benjamin Palko
aa67045503 add tool versions 2025-03-21 20:36:20 -04:00
3 changed files with 5 additions and 5 deletions

1
.tool-versions Normal file
View file

@ -0,0 +1 @@
golang 1.24.1

View file

@ -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

View file

@ -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)