Skip to content

Commit

Permalink
chore: tun/notun swap
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyxdd committed Jan 5, 2022
1 parent 233c434 commit 3390141
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 21 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
uses: gerred/actions/current-time@master
id: current-time

- name: Build
- name: Build (tun)
uses: crazy-max/[email protected]
env:
TIME: "${{ steps.current-time.outputs.time }}"
with:
xgo_version: latest
go_version: 1.17
dest: dist
prefix: hysteria
prefix: hysteria-tun
targets: linux/amd64,linux/386,linux/arm-5,linux/arm-7,linux/arm64,linux/mipsle,darwin-10.12/amd64,darwin-10.12/arm64,windows-6.0/amd64,windows-6.0/386
ldflags: -w -s -X main.appVersion=${{ env.GIT_TAG_NAME }} -X main.appCommit=${{ github.sha }} -X main.appDate=${{ env.TIME }}
pkg: cmd
Expand All @@ -45,30 +45,30 @@ jobs:
TIME: "${{ steps.current-time.outputs.time }}"
CGO_ENABLED: "0"
with:
name: hysteria-notun
dest: ./dist/
name: hysteria
dest: dist
ldflags: -w -s -X main.appVersion=${{ env.GIT_TAG_NAME }} -X main.appCommit=${{ github.sha }} -X main.appDate=${{ env.TIME }}
platforms: 'linux/amd64, linux/386, linux/arm, linux/arm64, linux/mipsle'
package: ./cmd
package: cmd
compress: false

- name: Upload
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./dist/hysteria-tun-linux-amd64
./dist/hysteria-tun-linux-386
./dist/hysteria-tun-linux-arm-5
./dist/hysteria-tun-linux-arm-7
./dist/hysteria-tun-linux-arm64
./dist/hysteria-tun-linux-mipsle
./dist/hysteria-tun-darwin-10.12-amd64
./dist/hysteria-tun-darwin-10.12-arm64
./dist/hysteria-tun-windows-6.0-amd64.exe
./dist/hysteria-tun-windows-6.0-386.exe
./dist/hysteria-linux-amd64
./dist/hysteria-linux-386
./dist/hysteria-linux-arm-5
./dist/hysteria-linux-arm-7
./dist/hysteria-linux-arm
./dist/hysteria-linux-arm64
./dist/hysteria-linux-mipsle
./dist/hysteria-darwin-10.12-amd64
./dist/hysteria-darwin-10.12-arm64
./dist/hysteria-windows-6.0-amd64.exe
./dist/hysteria-windows-6.0-386.exe
./dist/hysteria-notun-linux-amd64
./dist/hysteria-notun-linux-386
./dist/hysteria-notun-linux-arm
./dist/hysteria-notun-linux-arm64
./dist/hysteria-notun-linux-mipsle
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ currently has the following features: (still growing!)
### Windows, Linux, macOS CLI

- Download pre-built binaries from https://github.com/tobyxdd/hysteria/releases
- Linux builds are available as `hysteria` (with tun support) and `hysteria-notun` (without tun support). Builds
without tun support are statically linked and do not depend on glibc. **If you use a non-standard distribution that
can't run `hysteria` properly, try `hysteria-notun` instead.**
- Linux builds are available as `hysteria-tun` (with tun support) and `hysteria` (without tun support). Builds
without tun support are statically linked and do not depend on glibc. **If you use a Linux distribution that
can't run `hysteria-tun` properly, try `hysteria-notun` instead.**
- Other platforms do not have glibc compatibility issues. The builds are all with tun support.
- Use Docker or Docker Compose: https://github.com/HyNetwork/hysteria/blob/master/Docker.md
- Use our Arch Linux AUR: https://aur.archlinux.org/packages/hysteria/
- Build from source with `go build ./cmd`
Expand Down
5 changes: 3 additions & 2 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ Hysteria 是一个功能丰富的,专为恶劣网络环境进行优化的网
### Windows, Linux, macOS CLI

-https://github.com/tobyxdd/hysteria/releases 下载编译好的版本
- Linux 分为 `hysteria` (带有 tun 支持) 和 `hysteria-notun` (无 tun 支持) 两个版本。无 tun 支持的版本是静态链接,不依赖系统
glibc 的。**如果你使用了非标准 Linux 发行版,无法正常执行 `hysteria`,可尝试 `hysteria-notun`**
- Linux 分为 `hysteria-tun` (带有 tun 支持) 和 `hysteria` (无 tun 支持) 两个版本。无 tun 支持的版本是静态链接,不依赖系统
glibc 的。**如果你使用的 Linux 发行版无法正常执行 `hysteria-tun`,请尝试 `hysteria`**
- 其余平台无 glibc 兼容性问题,提供的都是带有 tun 支持的版本
- 使用 Docker 或 Docker Compose: https://github.com/HyNetwork/hysteria/blob/master/Docker.zh.md
- 使用 Arch Linux AUR: https://aur.archlinux.org/packages/hysteria/
- 自己用 `go build ./cmd` 从源码编译
Expand Down

0 comments on commit 3390141

Please sign in to comment.