Skip to content

Commit

Permalink
[Sort Overwrite] New Sort latency method
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWanderingCoel committed Mar 19, 2020
1 parent 107c927 commit eb49c5c
Show file tree
Hide file tree
Showing 25 changed files with 52,742 additions and 140 deletions.
119 changes: 10 additions & 109 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,123 +14,24 @@ A cross-platform Trojan GUI client
![GitHub All Releases](https://img.shields.io/github/downloads/TheWanderingCoel/Trojan-Qt5/total?label=downloads-total&logo=github&style=flat-square)
[![License](https://img.shields.io/badge/license-GPL%20V3-blue.svg?longCache=true)](https://www.gnu.org/licenses/gpl-3.0.en.html)

## Feature
- Full PAC Control
- Cross-platform
- User Rule Support
- Http Privoxy Support(privoxy)
- Subscription Support
- Import Servers from many methods
- Mutiple servers Support
- ....and more

## Install

You can download from [release](https://github.com/TheWanderingCoel/Trojan-Qt5/releases) page

## Compiling

### 0.Requirement
- Windows, macOS, Linux
- c++ compiler(cl, clang, gcc)
- Qt 5.13.0 +
- QHttpServer(follow the instruction below to install)
```
git clone https://github.com/qt-labs/qthttpserver.git
cd qthttpserver
qmake
make -j$(nproc) // nmake on Windows
make install // nmake install on Windows
```

### 1.Windows
- 1. Initialize the Environment
```
C:\"Program Files (x86)"\"Microsoft Visual Studio"\2019\Community\VC\Auxiliary\Build\vcvarsall.bat x86
```
- 2. Clone Libraries
```
git clone https://github.com/TheWanderingCoel/Trojan-Qt5-Libraries.git C:\TQLibraries
```
- 3. Install Boost Library Manually
```
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'"
```
- 4. Run Build
```
mkdir build && cd build
qmake ..
nmake
```

### 2.macOS
- 1. Install HomeBrew
```
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
```
- 2. Install Dependencies
```
brew install zbar qrencode boost openssl@1.1 zlib pcre
```
- 3. Run Build
```
mkdir build && cd build
qmake ..
make -j$(nproc)
```

### 3.Linux

- 1. Install Dependencies
```
sudo apt-get install libgl-dev git build-essential g++ python-dev autotools-dev libicu-dev libbz2-dev checkinstall zlib1g-dev -y
```
- 2. Compile Dependencies
```
sudo bash scripts/linux_compile.sh
```
- 3. Configure Privoxy
```
cd src/privoxy
autoheader && autoconf && ./configure
cd ../..
```
- 4. Run Build
```
mkdir build && cd build
qmake ..
make -j$(nproc)
```

## Frequent Ask Question (FAQ)

### 1. What is the relation of values in profile editor to trojan config?
![Profile Editor](https://i.imgur.com/xA58JNG.png)

### 2. Junkware detected, 360 detected as a virus?
- v0.0.1 [VirusTotal](https://www.virustotal.com/gui/file/247faa5d67592af7583a7ebd53654383d25e258de329ee145f7d8abbf2ba7034/detection)
- v0.0.2 [VirusTotal](https://www.virustotal.com/gui/file/4f73d88689b13d46f087bccb6ed7da3935917e1980e80e8c92de64e081b6a537/detection)
- Also do not forget to the the md5 checksum and sha1 checksum
- If you want to see aboard, do not use any 360 software!

### 3. How to check md5 checksum?
#### 1. Windows
```
certutil -hashfile Trojan-Qt5-Windows.zip MD5
```
#### 2. macOS
```
md5 -r Trojan-Qt5-macOS.dmg
```
#### 3. Linux
```
md5sum Trojan-Qt5-Linux.AppImage
```

### 4. How to check SHA1 checksum?
#### 1. Windows
```
certutil -hashfile Trojan-Qt5-Windows.zip SHA1
```
#### 2. macOS
```
shasum Trojan-Qt5-macOS.dmg
```
#### 3. Linux
```
sha1sum Trojan-Qt5-Linux.AppImage
```

## Warning
Note: Trojan-Qt5 can ONLY be used for learning related technologies such as Qt/C++/Linux/CI/automation and use within the scope permitted by law. Any individual or group MAY NOT use Trojan-Qt5 for any violation of relevant laws and regulations.
Expand Down
24 changes: 0 additions & 24 deletions resources/Appcast_macOS.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,4 @@
<enclosure url="http://you.com/app/Your%20Great%20App%202.0.zip" sparkle:version="2.0" length="1623481" type="application/octet-stream" sparkle:dsaSignature="BAFJW4B6B1K1JyW30nbkBwainOzrN6EQuAh" />
<sparkle:minimumSystemVersion>10.7</sparkle:minimumSystemVersion>
</item>

<item>
<title>Version 1.5 (8 bugs fixed; 2 new features)</title>
<sparkle:releaseNotesLink>
http://you.com/app/1.5.html
</sparkle:releaseNotesLink>
<pubDate>Wed, 01 Jan 2006 12:20:11 +0000</pubDate>
<!-- Sparkle 1.21+ uses sparkle::edSignature="ed25519" instead of sparkle::dsaSignature="deprecated DSA" -->
<enclosure url="http://you.com/app/Your%20Great%20App%201.5.zip" sparkle:version="1.5" length="1472893" type="application/octet-stream" sparkle:dsaSignature="234818feCa1JyW30nbkBwainOzrN6EQuAh" />
<sparkle:minimumSystemVersion>10.7</sparkle:minimumSystemVersion>
</item>

<!-- Now here's an example of a version with a weird internal version number (like an SVN revision) but a human-readable external one. -->
<item>
<title>Version 1.4 (5 bugs fixed; 2 new features)</title>
<sparkle:releaseNotesLink>
http://you.com/app/1.4.html
</sparkle:releaseNotesLink>
<pubDate>Wed, 25 Dec 2005 12:20:11 +0000</pubDate>
<!-- Sparkle 1.21+ uses sparkle::edSignature="ed25519" instead of sparkle::dsaSignature="deprecated DSA" -->
<enclosure url="http://you.com/app/Your%20Great%20App%201.4.zip" sparkle:version="241" sparkle:shortVersionString="1.4" sparkle:dsaSignature="MC0CFBfeCa1JyW30nbkBwainOzrN6EQuAh=" length="1472349" type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.7</sparkle:minimumSystemVersion>
</item>
</channel>
</rss>
Loading

0 comments on commit eb49c5c

Please sign in to comment.