287 Commits
Author SHA1 Message Date
Zakk 8b375a8587 ci: name the reusable AUR workflow like the others 2026-09-22 00:57:36 +10:00
Markson Hon 878ff5802e Merge pull request #2040 from Zakkaus/aur-dispatch
ci: the AUR publish is its own workflow, callable from the release and by hand
2026-09-21 22:55:35 +08:00
Zakk 051a1711ca ci: the AUR publish is its own workflow, callable from the release and by hand
The Release_to_AUR job of _release.yml moves to _release_aur.yml (workflow_call,
input tag); the release calls it as before, after GitHub_Release and only with
publish_downstream. release_aur.yml runs it alone from workflow_dispatch, for the
case where the release went through and only the AUR step failed, as with 2.5.5.
2026-09-22 00:50:03 +10:00
Markson Hon b1add58fdc Merge pull request #2039 from Zakkaus/aur-push
ci: stage only tracked files in the AUR checkouts
2026-09-21 22:49:05 +08:00
Zakk b8732beddb ci: stage only tracked files in the AUR checkouts
833af7dc replaced 'git add .SRCINFO .INSTALL && git commit -a' with 'git add -A',
which also staged the installer_archlinux_*.pkg.tar.zst that updpkgsums downloads
into aur/v2raya-bin; the AUR hook rejected the 2.5.5 push (maximum blob size
488.28KiB exceeded). 'git add -u' stages the PKGBUILD and .SRCINFO changes and
the .INSTALL deletion, and nothing new.
2026-09-22 00:44:46 +10:00
Zakk 063354a537 ci: the docker actions on their Node 24 majors 2026-09-22 00:34:14 +10:00
Zakk ba24a94719 fix: names and descriptions after the bundled core
Strings that still named v2ray-core, "v2ray / xray" or a wiki: six locales
(the core is v2raya_core; the invalid-service message, the SS plugin help,
the transparent-proxy hint, the TUN example, the custom inbound tag hint),
the --v2ray-bin, --core-startup-timeout and --plugin-manager descriptions
and their copies in the OpenRC confd files (the plugin manager is called
with --stage=parse|configuration, --link and --v2raya-confdir, not with
life-cycle stages), two comments that forbade or excused the current design,
the package descriptions that listed SSR, the AUR Go minimum (go.mod says
1.26), the systemd Documentation= and the installer's shortcut that pointed
at the wiki and the docs site, and the README sentence on network requests,
which left out the weekly release check and the NTP query on VMess failure.
2026-09-21 12:44:14 +10:00
Zakk 0872d7db62 chore: remove what nothing uses any more
copyfile, the empty ports/ss.go stub, parseDnsAddr and DnsRouting (the DNS
config is generated for the core's module now), the Inter font and the
switch-menu icon of the old GUI, the docs-site dispatch workflow (the site is
retired; the docs are in the app), the unused v2ray_arch in the docker helper,
the root .gitignore rule for a web directory that moved, and the .dockerignore
patterns for binary and test names that no longer exist. The skipped
TestFillEmpty asserts what FillEmpty does instead of what it once did.
2026-09-21 12:44:14 +10:00
Zakk ca089c3391 ci: close issues with no activity for 60 days
A daily job lists open issues not updated for 60 days, except those labeled
notice or enhancement, and closes up to 100 of them as not planned with a
comment; there are 220 such issues today, the oldest from 2024.
2026-09-21 00:08:30 +10:00
Zakk 833af7dc74 refactor: use what the dependencies already provide
A read of the tree for home-grown code that a dependency or the platform
covers. Each item names what replaces it.

- IPv4 CIDR membership was a binary-string trie (infra/dataStructure/trie)
  fed with CIDRs rendered as bit strings; net.IPNet.Contains, which the
  same file already used for IPv6, does it. The trie package is gone.
- The response replay cache was an LRU with its own linked list, indexes
  and timeout strategy (infra/dataStructure/lru), of which one fixed-size
  instance existed; hashicorp/golang-lru/v2, already in go.mod, is that
  cache, typed. go mod tidy also dropped go-nanoid, which nothing imported.
- The HTTP client for subscription updates through the local proxy carried
  a CONNECT dialer of its own (pkg/util/proxyWithHttp); http.Transport's
  Proxy handles socks5:// and http:// URLs, resolves hostnames on the
  SOCKS proxy and uses CONNECT for https. Verified on the VM: a
  subscription update succeeds in both "pac" and "proxy" modes.
- core/dns/qtype.go listed nine type names in two switches before falling
  back to miekg/dns tables that contain the same names; dns.Type.String
  and dns.StringToType are the tables.
- The GUI tracked prefers-color-scheme with its own media query and
  toggled a theme-dark class nothing reads any more; Vuetify's "system"
  theme follows the OS itself. Verified in headless Chrome: auto follows
  the OS in both directions, an explicit choice overrides it.
- The AUR packages carried .INSTALL hooks whose only content was a
  coloured "Completed!" banner, duplicated in the deb/rpm after-install
  scripts; pacman and apt report that themselves. The hooks are gone, the
  release workflow stops copying them, and after_install/after_upgrade
  keep only daemon-reload and the restart.
- The tap release job downloaded eight artifacts in eight steps;
  actions/download-artifact takes a pattern with merge-multiple.
2026-09-20 16:40:34 +10:00
Zakk ae8e5a5047 chore: drop what nothing reaches
Three service packages outside the executable's dependency graph
(common/antiPollution, pkg/util/gopeed, kernel/vmessInfo), a blank
import of miekg/dns the core already imports, the --core-type flag no
code read, the PutAccount handler whose route was commented out, two GUI
API wrappers without a caller, two .SRCINFO files the release regenerates
and an unreferenced runit sample. The workflow path filters watched a
root go.mod that does not exist and the PR build skipped core/.
2026-09-20 09:17:11 +10:00
Zakk 56e734929f build: one local build entry point and one release workflow body
build.sh and build.ps1 each built the GUI, the core and the service
their own way, and nothing in the repository ran them; build.sh passed a
with_gvisor tag no source file declares. build.sh now runs the same
commands as _build_web.yml and _build_binaries.yml, takes the version as
an argument or from git describe, and stops at the first failing step;
build.ps1 is the same sequence for PowerShell.

release_main.yml and beta_release_main.yml duplicated every release job
and had drifted (the beta looked the release up in a hard-coded
repository). Both now call _release.yml with the tag, a prerelease flag
and whether to publish to the downstream package channels.
2026-09-20 09:17:11 +10:00
Zakk 0daa826396 build(gui): Vuetify 4, TypeScript, Pinia, vue-i18n 11 in composition mode, Vitest, a PWA
The toolchain of the rewrite: Vite with vite-plugin-pwa (autoUpdate,
/api/ never cached), vue-tsc, ESLint's flat config, Vitest with
happy-dom and a mount helper, an i18n check and a gzip size gate in CI,
Red Hat Text self-hosted under /static/fonts.
2026-09-19 23:17:05 +10:00
Zakk e05e672fe5 build: drop the tinytun build tag and ship Wintun from its own package
The binaries workflow, the PR workflow and build.ps1 no longer pass
-tags tinytun; there is nothing behind the tag. The Windows installer
takes wintun.dll from the official 0.14.1 package, pinned by hash, one
DLL per architecture, and deletes a tinytun.exe an earlier installer left
in the application's bin directory. The README states what the built-in
TUN does and its known limitation on Windows and macOS.
2026-09-19 10:34:56 +10:00
Markson GuGa Beyond cffe97ca3d core: migrate xray-core from git submodule to go mod and port QUIC outbounds to daeuniverse/outbound
The vendored core/xray submodule is dropped. xray-core is now pinned via a
go mod pseudo-version resolving to v26.7.28 (commit 5ca6f4b7); v26 tags are
not directly resolvable because Xray's module path lacks the /v26 suffix, so
the pin must be made by commit hash. CI workflows and the AUR PKGBUILD no
longer need "submodules: recursive" / "git submodule update".

The juicity and tuic outbounds are ported from softwind to
github.com/daeuniverse/outbound (temporarily replaced with an olicesx fork
pending sticky-ip support):

- Dialer calls use DialContext; the network string is decoded with
  netproxy.ParseMagicNetwork instead of a "udp" prefix check, since it may
  be binary-encoded via netproxy.MagicNetwork.
- A packetConnAdapter wraps xray's UDP dial result: outbound asserts the
  underlay conn to netproxy.PacketConn whose ReadFrom/WriteTo signatures
  (netip.AddrPort / string) differ from net.PacketConn, while xray returns
  *internet.PacketConnWrapper.
2026-09-18 13:15:45 +08:00
Markson Hon 71e5442fc5 ci: update tinytun to v0.0.3-alpha.3 for Windows installers 2026-09-05 07:32:52 +08:00
Markson Pigeonzilla Plus 3138f506b7 fix(ci): rewrite import SSH key 2026-08-22 15:35:42 +08:00
Markson Pigeonzilla Plus 9a16fc9fe2 fix(ci): aur v2raya package not needed update sha256 2026-08-22 15:14:34 +08:00
Markson Pigeonzilla Plus 36d19aa141 fix(ci): add ssh config for AUR release 2026-08-22 15:01:16 +08:00
Markson Pigeonzilla Plus 3c72d6fc33 fix(ci): try to fix add ssh key 2026-08-22 12:43:55 +08:00
Markson Pigeonzilla Plus ef37dcc407 fix(ci): commit should be to all included file 2026-08-22 12:03:16 +08:00
Markson Pigeonzilla Plus 6069f8b687 fix(ci): disable refresh Cloudflare for v2raya.org is down 2026-08-22 11:50:09 +08:00
Markson Pigeonzilla Plus 60017cf264 fix(ci): AUR should use SSH key but not GPG key 2026-08-22 11:32:36 +08:00
Markson Pigeonzilla Plus ef8e85031c fix(ci): fix v2raya-bin's missing data file 2026-08-22 11:25:21 +08:00
Markson Pigeonzilla Plus dcb7596435 ci: run updpkgsums with non-root user in podman container 2026-08-22 09:37:24 +08:00
Markson Pigeonzilla Plus b7da452276 ci: re-init AUR release 2026-08-22 09:02:48 +08:00
Markson Hon e185ac0691 ci: fix pull_request.yml 2026-08-18 22:25:11 +08:00
Markson Hon fbd5cc2c11 ci: pr builds should include core 2026-08-18 21:41:28 +08:00
Markson GuGa Beyond b25cc46c80 ci: update checkout to v7 2026-08-09 15:42:07 +08:00
Markson Pigeonzilla Plus 1edc9c868b ci: disable AUR release 2026-07-22 20:29:37 +08:00
Markson Pigeonzilla Plus cc2a0ca00e fix(ci): use printf instead of here-string to write SSH key without trailing newline
The <<< here-string appends an extra newline to the key file, which can
corrupt OpenSSH private key format and cause 'Bad passphrase' errors.
printf writes the exact content of the variable without modification.
2026-06-30 03:46:02 +08:00
Markson Pigeonzilla Plus 6697d44b18 feat(v2raya-bin): add v2raya_core binary to AUR package
- Add v2raya_core source downloads and checksums for all architectures
  in PKGBUILD and .SRCINFO
- Install v2raya_core to /usr/bin/v2raya_core in package step
- Update deploy_v2raya_bin.sh to compute and substitute v2raya_core hashes
- Fix release workflow: download v2raya_core binaries for hash computation
- Fix release workflow: use heredoc for SSH key to avoid corruption
- Fix release workflow: correct ssh-add_expect script path
2026-06-30 03:15:25 +08:00
Markson Pigeonzilla Plus 05a743ed30 ci: format yaml format 2026-06-25 22:33:26 +08:00
Markson Pigeonzilla Plus a4a6740a5c ci: add GeoIP and GeoSite to Linux packages 2026-06-25 22:32:08 +08:00
Markson Hon cfe5a69049 chore: update xray submodule to v26.6.1 and replace allowInsecure with cert pinning
- Update core/xray submodule from v1.260327.0 (v26.3.27) to v26.6.1
- Remove deprecated AllowInsecure field from all protocol structs
- Add PinnedPeerCertSha256 and VerifyPeerCertByName fields (service layer)
- Update ngui (Nuxt) frontend with text inputs for new fields
- Update gui (Vue 2) frontend with text inputs for new fields
- Keep existing PinnedSHA256 for juicity (no duplicate)
- Backward compatible: old allowInsecure params silently ignored
- Run go mod tidy to update dependencies
2026-06-20 22:51:17 +08:00
Markson Hon 479c96c058 ci(release): add linux arm64 artifacts to release packaging
Download Linux arm64 service/core artifacts in release_main workflow, package them into v2raya-arm64-linux.zip, generate checksums, and upload to homebrew release assets.
2026-05-05 11:40:26 +08:00
Markson Hon 6bc776e31b build: disable cgo for loong64 2026-05-04 19:53:04 +08:00
Markson Hon 8d783e219d build: fix loong64 sqlite build path in CI
- route loong64 to sqlite3(cgo) driver branch

- install loongarch cross compiler and enable cgo for loong64 in binaries workflow

- bump bbolt to v1.4.3 for loong64 compatibility

- keep no-cgo cross builds compile-clean for loong64/mips64
2026-05-04 19:45:26 +08:00
Markson Hon c6e21dc591 build: fix mips-family sqlite driver selection and CI cgo setup
- extend mips driver build tags to cover mips/mips64 variants

- update sqlite validation message to mips-family scope

- enable CGO only for Linux mips-family targets in binaries workflow

- install required mips cross compilers in CI
2026-05-04 19:37:22 +08:00
Markson Hon f50933f887 feat(ci): use TinyTun v0.0.2-alpha.7 2026-05-03 18:49:46 +08:00
Markson Hon bef8f9f2d6 feat(ci): add v2raya_core building 2026-05-03 16:26:51 +08:00
Markson Hon 7aa612592a feat(ci): add v2raya_core building 2026-05-03 16:25:18 +08:00
Markson Hon 4a64ee613a update to tinytun v0.0.2-alpha.5 2026-04-19 21:48:20 +08:00
Markson Hon 4e94e10914 use olicesx's fork to support ss2022 2026-04-19 18:37:51 +08:00
Markson Hon c0d38bfc27 ci: use matrix workflow to build
use TinyTun v0.0.1-beta.8
2026-04-19 18:37:46 +08:00
Markson Hon 090c711544 ci: use setup-node instead of brew script
ci: upgrade download-artifact@v4 to v7

ci: use matrix workflow to build

ci: use matrix workflow to build

ci: use matrix workflow to build

ci: use matrix workflow to build
2026-04-19 18:36:56 +08:00
Markson Hon 0abcc4597d ci: update tinytun to v0.0.1-beta.6 2026-04-14 08:04:44 +08:00
82e65fb7f9 ci(build): refactor reusable workflows for TinyTun builds
Squashed from:
- 916e2f66 Optimize CI: add tinytun build tag for win/mac/linux x64+arm64, abstract web build into reusable workflow
- 471b623f Remove with_gvisor build tag from all scripts and CI workflows
- bb6e2fd6 Split binary build, Linux packages, and Windows installer into reusable workflows
- 19584dcb ci: fix windows inno installer build
- 378934b8 ci: return go 1.24

Co-authored-by: Markson Pigeonzilla <marksonpigeonzilla@bugdows.cn>
Co-authored-by: Markson Hon <marksonhon@nixos.local>
2026-03-21 15:01:51 +08:00
89aca5911c feat(tun): migrate transparent proxy from Sing-Tun to TinyTun
Squashed from:
- bc2e2215 Remove all Sing-Tun related code, frontend and build tags
- 51c11701 Add TinyTun support for TUN-based transparent proxy
- d203a9e9 Add TinyTun auto_route toggle and custom route script dialog
- 4c67a319 Improve UI consistency and add tinytun build tag
- 6e411be6 use TinyTun instead of SIng-Tun

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Markson Hon <50002150+MarksonHon@users.noreply.github.com>
2026-03-21 15:01:17 +08:00
Markson PigeonzillaandMarkson Hon 608b44e2f8 fix(windows): carry forward env, startup, and legacy TUN follow-ups
Squashed from:
- 856a3730 ci: update go to 1.26
- 191be38f tun: fix IPv6 address under win
- 3ca4d5cd windows: v2rayA should read win env like %temp%
- 48a84438 windows: v2rayA should start after modified PATH
- c87bbf62 fix .exe ext-name under windows
- 614bfe1c dns: fix a error about dns format
- 991319ff pre.go: don't create C:\etc
- 9f31b39c translated all comments to English
- aaa269f7 try to fix Tun DNS
- 25c84ad9 面向云代理会话的 VS Code 中的检查点

Co-authored-by: Markson Hon <markson@nixos.local>
2026-03-21 15:00:28 +08:00