Skip to content

Ensure desktop console binaries are produced#15

Merged
VectoDE merged 2 commits into
mainfrom
codex/fix-servercommander-to-launch-terminal
Oct 21, 2025
Merged

Ensure desktop console binaries are produced#15
VectoDE merged 2 commits into
mainfrom
codex/fix-servercommander-to-launch-terminal

Conversation

@VectoDE

@VectoDE VectoDE commented Oct 21, 2025

Copy link
Copy Markdown
Owner

Summary

  • update the shell build script to pass the desktop build tag so the Fyne console is bundled
  • do the same for the Windows batch build script to keep parity across platforms

Testing

  • not run (go build -tags desktop ./... hung in the container environment)

https://chatgpt.com/codex/tasks/task_e_68f7d976dff0832ca138bd4aed8edb4a

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/build.sh Outdated
Comment on lines +33 to +35
print_step "Building ${os}/${arch}..."
GOOS="${os}" GOARCH="${arch}" CGO_ENABLED=0 \
go build -o "${output}" "${MAIN_PKG}"
go build -tags desktop -o "${output}" "${MAIN_PKG}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid forcing desktop build in Unix build script

The build script now always passes -tags desktop when compiling. In this repository the fyne.io/fyne/v2 dependency is replaced with a stub that does not render a usable GUI or accept input. Building with the desktop tag therefore produces binaries that immediately block waiting for a non-existent window (e.g. go run -tags desktop ./src never shows an interface and must be killed). Before this change the default !desktop build exposed a browser-based console that remained usable in headless environments. Unless the script also wires in the real Fyne toolkit, forcing the desktop tag results in non-interactive artifacts for Linux/Darwin builds.

Useful? React with 👍 / 👎.

Comment thread scripts/build.bat Outdated
Comment on lines +63 to +65
set "GOOS=!TARGET_OS!"
set "GOARCH=!TARGET_ARCH!"
go build -o "!TARGET_OUTPUT!" "!MAIN_PKG!"
go build -tags desktop -o "!TARGET_OUTPUT!" "!MAIN_PKG!"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Windows build script now emits unusable desktop binary

The batch build uses the same unconditional go build -tags desktop … as the shell script. Because the repository still replaces fyne.io/fyne/v2 with a no-op stub, the resulting Windows executable hangs at startup with no UI and no HTTP console, which is a regression from the previous !desktop build. Consider only enabling the desktop tag when building with the real Fyne dependency or when a GUI is explicitly requested.

Useful? React with 👍 / 👎.

@VectoDE VectoDE merged commit 4f00859 into main Oct 21, 2025
1 check passed
@VectoDE VectoDE deleted the codex/fix-servercommander-to-launch-terminal branch October 21, 2025 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant