mirror of
https://github.com/chenx-dust/EZ4Connect.git
synced 2026-09-20 10:23:33 +08:00
chore: more modify for hitsz
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
project(ZJUConnectForWindows)
|
||||
project(HITszConnectForWindows)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
@@ -18,7 +18,7 @@ find_package(Qt6 COMPONENTS
|
||||
|
||||
enable_language("RC")
|
||||
|
||||
add_executable(ZJUConnectForWindows WIN32
|
||||
add_executable(${PROJECT_NAME} WIN32
|
||||
main.cpp
|
||||
mainwindow.cpp
|
||||
zjuconnectmode.cpp
|
||||
@@ -37,7 +37,7 @@ set(QAPPLICATION_CLASS QApplication CACHE STRING "Inheritance class for SingleAp
|
||||
|
||||
add_subdirectory(singleapplication)
|
||||
|
||||
target_link_libraries(ZJUConnectForWindows
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
Qt::Core
|
||||
Qt::Gui
|
||||
Qt::Widgets
|
||||
|
||||
33
README.md
33
README.md
@@ -1,33 +1,12 @@
|
||||
# ZJU Connect for Windows
|
||||
# HITsz Connect for Windows
|
||||
|
||||
基于 Qt 编写的 ZJU 网络客户端
|
||||
针对哈工大深圳的修改版 ZJU-Connect-for-Windows
|
||||
|
||||
**QQ 交流群:946190505**
|
||||

|
||||
|
||||

|
||||
|
||||
## 功能
|
||||
|
||||
- [x] 有线网 L2TP 登录
|
||||
- [x] 创建 L2TP VPN 并解决注册表问题
|
||||
- [x] 一键设置/删除静态路由
|
||||
- [x] 检测网络并自动重连
|
||||
- [x] 基于 [zju-web-login](https://github.com/Mythologyli/zju-web-login) 的 有线/无线网页认证登录
|
||||
- [x] 登录/登出
|
||||
- [x] 选择网络接口
|
||||
- [x] 基于 [zju-connect](https://github.com/Mythologyli/zju-connect) 的 RVPN
|
||||
- [x] SOCKS5/HTTP 代理
|
||||
- [x] 端口转发
|
||||
- [x] 自动保活/自动重连
|
||||
- [x] 开机启动并连接
|
||||
- [x] 网络诊断
|
||||
|
||||
## 使用说明
|
||||
|
||||
[https://www.cc98.org/topic/5704061](https://www.cc98.org/topic/5704061)
|
||||
欢迎加入 HITSZ 开源技术协会 [@hitszosa](https://github.com/hitszosa)
|
||||
|
||||
## 致谢
|
||||
|
||||
+ [EasierConnect](https://github.com/lyc8503/EasierConnect) 原作者 [lyc8503](https://github.com/lyc8503)
|
||||
+ [zju-connect](https://github.com/Mythologyli/zju-connect) 的各位贡献者
|
||||
+ [zju-web-login](https://github.com/Mythologyli/zju-web-login) 原作者 [Azuk 443](https://azuk.top/)
|
||||
+ [Mythologyli/ZJU-Connect-for-Windows](https://github.com/Mythologyli/ZJU-Connect-for-Windows)
|
||||
+ [Mythologyli/zju-connect](https://github.com/Mythologyli/zju-connect)
|
||||
|
||||
BIN
docs/main.png
BIN
docs/main.png
Binary file not shown.
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 140 KiB |
@@ -1,66 +0,0 @@
|
||||
; Script generated by the Inno Setup Script Wizard.
|
||||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||||
|
||||
#define MyAppName "ZJU Connect for Windows"
|
||||
#define MyAppVersion "1.1.2"
|
||||
#define MyAppPublisher "Myth"
|
||||
#define MyAppURL "https://github.com/Mythologyli/ZJU-Connect-for-Windows"
|
||||
#define MyAppExeName "ZJUConnectForWindows.exe"
|
||||
|
||||
[Setup]
|
||||
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
|
||||
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
||||
AppId={{F344C07B-881E-40CB-A6FC-486912F551CF}
|
||||
AppName={#MyAppName}
|
||||
AppVersion={#MyAppVersion}
|
||||
AppVerName={#MyAppName} {#MyAppVersion}
|
||||
AppPublisher={#MyAppPublisher}
|
||||
AppPublisherURL={#MyAppURL}
|
||||
AppSupportURL={#MyAppURL}
|
||||
AppUpdatesURL={#MyAppURL}
|
||||
DefaultDirName={autopf}\{#MyAppName}
|
||||
DisableProgramGroupPage=yes
|
||||
LicenseFile=LICENSE
|
||||
; Uncomment the following line to run in non administrative install mode (install for current user only.)
|
||||
;PrivilegesRequired=lowest
|
||||
PrivilegesRequiredOverridesAllowed=dialog
|
||||
OutputBaseFilename=ZJUConnectForWindowsInstaller
|
||||
SetupIconFile=resource\icon.ico
|
||||
UninstallDisplayIcon={app}\{#MyAppExeName}
|
||||
Compression=lzma
|
||||
SolidCompression=yes
|
||||
WizardStyle=modern
|
||||
ArchitecturesAllowed=x64
|
||||
ArchitecturesInstallIn64BitMode=x64
|
||||
MinVersion=10.0.17763
|
||||
|
||||
[Languages]
|
||||
Name: "chinesesimplified"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"
|
||||
|
||||
[Tasks]
|
||||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||
|
||||
[Files]
|
||||
Source: "LICENSE"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "ZJU Connect for Windows\ZJUConnectForWindows.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "ZJU Connect for Windows\zju-connect.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "ZJU Connect for Windows\weblogin.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "ZJU Connect for Windows\*.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "ZJU Connect for Windows\generic\*"; DestDir: "{app}\generic"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
Source: "ZJU Connect for Windows\iconengines\*"; DestDir: "{app}\iconengines"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
Source: "ZJU Connect for Windows\imageformats\*"; DestDir: "{app}\imageformats"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
Source: "ZJU Connect for Windows\networkinformation\*"; DestDir: "{app}\networkinformation"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
Source: "ZJU Connect for Windows\platforms\*"; DestDir: "{app}\platforms"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
Source: "ZJU Connect for Windows\styles\*"; DestDir: "{app}\styles"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
Source: "ZJU Connect for Windows\tls\*"; DestDir: "{app}\tls"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
Source: "ZJU Connect for Windows\vc_redist.x64.exe"; DestDir: {tmp}; Flags: deleteafterinstall
|
||||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||||
|
||||
[Icons]
|
||||
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
||||
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
||||
|
||||
|
||||
[Run]
|
||||
Filename: {tmp}\vc_redist.x64.exe; Parameters: "/install /passive /norestart"; StatusMsg: "Installing Microsoft Visual C++ Redistributable..."
|
||||
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||||
2
main.cpp
2
main.cpp
@@ -8,7 +8,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
SingleApplication app(argc, argv);
|
||||
QApplication::setApplicationName("HITsz Connect for Windows");
|
||||
QApplication::setApplicationVersion("1.1.2");
|
||||
QApplication::setApplicationVersion("1.1.3");
|
||||
|
||||
MainWindow mainWindow;
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>619</width>
|
||||
<height>288</height>
|
||||
<width>731</width>
|
||||
<height>265</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@@ -150,7 +150,7 @@ Windows Version: Arch Linux
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>619</width>
|
||||
<width>731</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
|
||||
@@ -71,10 +71,10 @@ void Utils::showAboutMessageBox(QWidget *parent)
|
||||
messageBox.setTextFormat(Qt::RichText);
|
||||
QString aboutText = QApplication::applicationName() + " v" + QApplication::applicationVersion() +
|
||||
"<br>针对哈工大深圳的修改版 ZJU-Connect-for-Windows" +
|
||||
"<br>作者: <a href='https://github.com/chenx-dust'>尘息</a>" +
|
||||
"<br>作者: <a href='https://github.com/chenx-dust'>Chenx Dust</a>" +
|
||||
"<br>项目主页: <a href='https://github.com/Mythologyli/HITsz-Connect-for-Windows'>https://github.com/chenx-dust/HITsz-Connect-for-Windows</a>" +
|
||||
"<br>基于 Qt 编写的 ZJUConnect 图形界面" +
|
||||
"<br><br>ZJU-Connect-for-Windows" +
|
||||
"<br>基于 Qt 编写的 ZJUConnect 图形界面" +
|
||||
"<br>作者: <a href='https://myth.cx'>Myth</a>" +
|
||||
"<br>项目主页: <a href='https://github.com/Mythologyli/ZJU-Connect-for-Windows'>https://github.com/Mythologyli/ZJU-Connect-for-Windows</a>" +
|
||||
"<br><br>zju-connect" +
|
||||
|
||||
Reference in New Issue
Block a user