Skip to content

Conversation

@gigamonster256
Copy link
Contributor

simplifies desktop app packaging by using cargo-tauri.hook brings build provess more in line with other platforms fixes #8962 and #8971

should be compatible with darwin as well since the cargo-tauri hook also work

@github-actions
Copy link
Contributor

Hey! Your PR title ci(nix): simplify desktop app packaging doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

simplifies desktop app packaging by using cargo-tauri.hook
brings build provess more in line with other platforms
fixes anomalyco#8962
@gigamonster256 gigamonster256 marked this pull request as draft January 17, 2026 00:54
postInstall = lib.optionalString stdenv.isLinux ''
# Wrap the binary to ensure it finds the libraries
wrapProgram $out/bin/opencode-desktop \
wrapProgram $out/bin/OpenCode \
Copy link
Contributor

@jerome-benoit jerome-benoit Jan 17, 2026

Choose a reason for hiding this comment

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

Do not use case sensitive name that will collide with opencode on any case insensitive file system. Binary name is standardized: no space, etc. Do not change the name of an already shipped binary, already defined name at build, ...

Copy link
Contributor Author

@gigamonster256 gigamonster256 Jan 17, 2026

Choose a reason for hiding this comment

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

the desktop app ships as "OpenCode" on every other platform (ls showing extracted 1.1.25 releases for deb, rpm, and darwin app)

image

And i'm not changing the name of the binary, thats what the tauri bundler outputs

Copy link
Contributor

Choose a reason for hiding this comment

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

If that's true, it's a serious namespace collision between the TUI and the GUI binary that should be addressed and will break on most macOS installation. And bug should be opened.

@gigamonster256
Copy link
Contributor Author

superseded by #9032

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Desktop build on nixos

2 participants