fix: launcher should be executed silently, not in a console, on windows

This commit is contained in:
James Houlahan
2021-01-12 17:11:28 +01:00
parent d5277454c6
commit 4013892a47

View File

@ -40,6 +40,9 @@ ifneq "${BUILD_LDFLAGS}" ""
endif endif
GO_LDFLAGS_LAUNCHER:=${GO_LDFLAGS} GO_LDFLAGS_LAUNCHER:=${GO_LDFLAGS}
GO_LDFLAGS_LAUNCHER+=$(addprefix -X main.,ConfigName=${CONFIGNAME} ExeName=proton-${APP}) GO_LDFLAGS_LAUNCHER+=$(addprefix -X main.,ConfigName=${CONFIGNAME} ExeName=proton-${APP})
ifeq "${TARGET_OS}" "windows"
GO_LDFLAGS_LAUNCHER+=-H=windowsgui
endif
BUILD_FLAGS+=-ldflags '${GO_LDFLAGS}' BUILD_FLAGS+=-ldflags '${GO_LDFLAGS}'
BUILD_FLAGS_NOGUI+=-ldflags '${GO_LDFLAGS}' BUILD_FLAGS_NOGUI+=-ldflags '${GO_LDFLAGS}'