Skip to content

Remove Invoke env and desktop wrapper#134

Merged
yiguodev merged 4 commits into
mainfrom
dev-26.7-4
Jul 10, 2026
Merged

Remove Invoke env and desktop wrapper#134
yiguodev merged 4 commits into
mainfrom
dev-26.7-4

Conversation

@yiguodev

Copy link
Copy Markdown
Collaborator

Summary

  • remove top-level Invoke env handling and the Windows/Linux desktop wrapper
  • rely on Xray-core root env configuration for runtime settings
  • simplify build artifacts and documentation
  • reject Invoke requests and responses larger than 16 MiB

Validation

  • go test ./... -count=1
  • git diff --check

@yiguodev
yiguodev marked this pull request as ready for review July 10, 2026 09:47
Copilot AI review requested due to automatic review settings July 10, 2026 09:47

Copilot AI 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.

Pull request overview

This PR removes the top-level Invoke.env mechanism and the desktop wrapper binary, shifting runtime environment configuration to Xray-core’s root env config and simplifying build artifacts. It also adds a hard cap to reject oversized Invoke requests/responses.

Changes:

  • Remove Invoke.env from the request model and delete the desktop wrapper build/output paths.
  • Add a 16 MiB size limit for Invoke requests and responses, with tests covering the new behavior.
  • Pin Xray-core (and indirect deps) to a newer pseudo-version tied to the required main commit.

Reviewed changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
readme/README.zh_CN.md Updates Chinese docs to remove wrapper/env guidance and point env config to Xray-core root config.
README.md Updates English docs to remove wrapper/env guidance and point env config to Xray-core root config.
invoke.go Removes top-level env application; enforces 16 MiB request/response JSON size limits.
invoke_test.go Updates tests to reflect removed top-level env behavior; adds coverage for size limits and config-root env behavior.
invoke_model.go Removes Env from LibXrayInvokeRequest.
go.mod Pins Xray-core pseudo-version and bumps indirect dependencies accordingly.
go.sum Updates checksums for the dependency bumps.
desktop_bin/run.go Removes desktop wrapper implementation.
desktop_bin/main.go Removes desktop wrapper entrypoint.
build/app/windows.py Stops producing the wrapper binary in Windows builds.
build/app/linux.py Stops producing the wrapper binary in Linux builds.
build/app/build.py Removes shared helper for building the wrapper; updates default Xray-core pin.
.github/workflows/build.yml Stops packaging the wrapper executable in Linux/Windows artifacts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md Outdated
Comment thread readme/README.zh_CN.md Outdated
Copilot AI review requested due to automatic review settings July 10, 2026 09:59

Copilot AI 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.

Pull request overview

Copilot reviewed 12 out of 13 changed files in this pull request and generated 4 comments.

Comment thread README.md Outdated
Comment thread readme/README.zh_CN.md Outdated
Comment thread invoke.go Outdated
Comment thread invoke.go
Copilot AI review requested due to automatic review settings July 10, 2026 10:07

Copilot AI 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.

Pull request overview

Copilot reviewed 12 out of 13 changed files in this pull request and generated no new comments.

@yiguodev
yiguodev merged commit 3519bfd into main Jul 10, 2026
3 checks passed
@yiguodev
yiguodev deleted the dev-26.7-4 branch July 10, 2026 10:11
wejg pushed a commit to wejg/libXray that referenced this pull request Jul 24, 2026
* 'main' of https://github.com/XTLS/libXray:
  add /proc/net UID fallback for Android < API 30 (XTLS#137)
  Update Xray-core to v26.7.11 (XTLS#136)
  Harden Xray lifecycle and build tooling (XTLS#135)
  Remove Invoke env and desktop wrapper (XTLS#134)
  Restore invoke env and desktop wrapper (XTLS#133)
  Align Invoke response models (XTLS#132)
  Dev 26.7 1 (XTLS#131)
  Merge pull request XTLS#130 from XTLS/dev-26.6-3
  feat: add automated build workflow for all platforms
  Update Xray-core to v26.6.27
  Avoid splitting share input during format checks
  Refine share input format detection
  Remove DNS resolver wrapper

# Conflicts:
#	build/template/main.gotemplate
#	go.mod
#	go.sum
#	xray/ping.go
#	xray/xray.go
#	xray_wrapper.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants