一个跨平台的Trojan图形客户端
- 你可以在 release 页面下载到编译好的二进制程序
- 或使用 Homebrew:
brew cask install trojan-qt5
- 或使用 Scoop:
scoop bucket add v2ray https://github.com/kidonng/scoop-v2ray scoop install trojan-qt5
- Windows, macOS, Linux
- c++ 编译器(cl, clang, gcc)
- Qt 5.13.0 +
- QHttpServer(根据下面的方法来安装)
git clone https://github.com/qt-labs/qthttpserver.git
cd qthttpserver
qmake
make -j$(nproc) // Windows上是nmake
make install // Windows上是nmake install
-
- 初始化环境
C:\"Program Files (x86)"\"Microsoft Visual Studio"\2019\Community\VC\Auxiliary\Build\vcvarsall.bat x86
-
- 克隆需要的库
git clone https://github.com/Trojan-Qt5/Trojan-Qt5-Libraries.git C:\TQLibraries
-
- 手动安装Boost库(在大陆很慢)
curl -Lo boost_1_72_0-msvc-14.2-32.exe https://sourceforge.net/projects/boost/files/boost-binaries/1.72.0/boost_1_72_0-msvc-14.2-32.exe/download
powershell ".\\boost_1_72_0-msvc-14.2-32.exe /SILENT /SP- /SUPPRESSMSGBOXES /DIR='C:\TQLibraries\boost_1_72_0'"
-
- 进行构建
mkdir build && cd build
qmake ..
nmake
-
- 安装HomeBrew包管理器
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
- 安装依赖
brew install zbar qrencode boost [email protected] zlib pcre
-
- 进行构建
mkdir build && cd build
qmake ..
make -j$(nproc)
-
- 下载安装依赖
sudo apt-get install libgl-dev git build-essential g++ python-dev autotools-dev libicu-dev libbz2-dev checkinstall zlib1g-dev -y
-
- 编译依赖
sudo bash scripts/linux_compile.sh
-
- 配置Privoxy
cd src/privoxy
autoheader && autoconf && ./configure
cd ../..
-
- 进行构建
mkdir build && cd build
qmake ..
make -j$(nproc)
- VirusTotal
- 下载后请检查md5和sha1 hash是否一致
- 如果你要去那宽阔的世界看看,请不要使用360全家桶
certutil -hashfile Trojan-Qt5-Windows.zip MD5
md5 -r Trojan-Qt5-macOS.dmg
md5sum Trojan-Qt5-Linux.AppImage
certutil -hashfile Trojan-Qt5-Windows.zip SHA1
shasum Trojan-Qt5-macOS.dmg
sha1sum Trojan-Qt5-Linux.AppImage
这个项目基于以下几个项目:
- libQtShadowsocks LGPL-3.0
- Shadowsocks-qt5 LGPL-3.0
- Shadowsocks(RR)-Windows GPL-3.0
- ShadowsocksR-uvw GPL-3.0
- Qv2ray GPL-3.0
- go-tun2socks MIT
- trojan GPL-3.0
- trojan-qt GPL-3.0
- trojan-go GPL-3.0
- Privoxy GPL-2.0
- sysproxy Apache-2.0
- qbittorrent GPL-2.0
使用这个 链接 即可获得10元红包抵扣。