gotify / server

A simple server for sending and receiving messages in real-time per WebSocket. (Includes a sleek web-ui)
https://gotify.net
Other
11.54k stars 641 forks source link

build problem #601

Closed Mohsen6558 closed 1 year ago

Mohsen6558 commented 1 year ago

Hi I'm windows user and noob on Go we changed in source code but on windows CMD how we can build EXE file?

I use this code: go build -ldflags="-w -s -X main.Version=$(git describe --tags | cut -c 2-) -X main.BuildDate=$(date "+%F-%T") -X main.Commit=$(git rev-parse --verify HEAD) -X main.Mode=prod" -o gotify-server

but see this error: ui\serve.go:15:12: pattern build/*: no matching files found

go version go1.21.3 windows/amd64

thanks

jmattheis commented 1 year ago

You need to build the UI before building the Go binary. https://gotify.net/docs/build

Mohsen6558 commented 1 year ago

thanks for answer on try build ui we see this error: 6331a8cf-f87e-4231-9962-55b8fb578747

and after that how build for windows? please check this image

06a5d591-3291-4d8c-b420-38ccb65c4acb

jmattheis commented 1 year ago

Have a look at existing tickets. https://github.com/gotify/server/issues/574

and after that how build for windows? please check this image

what's the problem? Describe what you expect and what you want.

Mohsen6558 commented 1 year ago

we have error on yarn build and we don't know how set flags for build Windows 64x

jmattheis commented 1 year ago

https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/set_1

Building gotify is for experienced users. You can download the built binary for windows here https://github.com/gotify/server/releases/latest