mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-20 10:50:23 +08:00
[fix] Fixed something wrong on Windows platform
Former-commit-id: 07c24d0706
This commit is contained in:
parent
b8917aee68
commit
b96a73317b
9
.github/workflows/build-push.yml
vendored
9
.github/workflows/build-push.yml
vendored
@ -29,14 +29,11 @@ jobs:
|
|||||||
- name: Make release package
|
- name: Make release package
|
||||||
run: |
|
run: |
|
||||||
cd build
|
cd build
|
||||||
mkdir package
|
cd release
|
||||||
cd package
|
del *.cpp *.h *.o *.qrc *.qm
|
||||||
copy ..\release\Qv2ray.exe .\
|
|
||||||
copy ..\..\libs\libcrypto-1_1.dll .\
|
|
||||||
copy ..\..\libs\libssl-1_1.dll .\
|
|
||||||
windeployqt ./Qv2ray.exe --compiler-runtime
|
windeployqt ./Qv2ray.exe --compiler-runtime
|
||||||
cd ..
|
cd ..
|
||||||
..\tools\7z.exe a Qv2ray.zip .\package
|
..\tools\7z.exe a Qv2ray.zip .\release
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@master
|
uses: actions/upload-artifact@master
|
||||||
with:
|
with:
|
||||||
|
@ -1 +1 @@
|
|||||||
0
|
15
|
||||||
|
@ -50,6 +50,10 @@
|
|||||||
|
|
||||||
#define NEWLINE "\r\n"
|
#define NEWLINE "\r\n"
|
||||||
|
|
||||||
|
#ifndef MAX
|
||||||
|
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace Qv2ray
|
namespace Qv2ray
|
||||||
{
|
{
|
||||||
namespace QvConfigModels
|
namespace QvConfigModels
|
||||||
|
@ -74,13 +74,9 @@ namespace Qv2ray
|
|||||||
|
|
||||||
case 7: {
|
case 7: {
|
||||||
QString path;
|
QString path;
|
||||||
#ifdef _WIN32
|
|
||||||
path = QV2RAY_DEFAULT_VCORE_PATH + ".exe";
|
|
||||||
#else
|
|
||||||
path = QV2RAY_DEFAULT_VCORE_PATH;
|
path = QV2RAY_DEFAULT_VCORE_PATH;
|
||||||
#endif
|
|
||||||
root["v2CorePath"] = path;
|
root["v2CorePath"] = path;
|
||||||
UPDATELOG("Added ")
|
UPDATELOG("Added v2CorePath to the config file.")
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -62,11 +62,13 @@ namespace Qv2ray
|
|||||||
|
|
||||||
QString StringFromFile(QFile *source)
|
QString StringFromFile(QFile *source)
|
||||||
{
|
{
|
||||||
source->open(QIODevice::OpenModeFlag::ReadOnly);
|
source->open(QFile::ReadOnly);
|
||||||
auto str = source->readAll();
|
QTextStream stream(source);
|
||||||
|
QString str = stream.readAll();
|
||||||
source->close();
|
source->close();
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool StringToFile(const QString *text, QFile *targetFile)
|
bool StringToFile(const QString *text, QFile *targetFile)
|
||||||
{
|
{
|
||||||
bool override = targetFile->exists();
|
bool override = targetFile->exists();
|
||||||
|
@ -39,7 +39,7 @@ namespace Qv2ray
|
|||||||
BOOL fConnected = FALSE;
|
BOOL fConnected = FALSE;
|
||||||
DWORD dwThreadId = 0;
|
DWORD dwThreadId = 0;
|
||||||
HANDLE hPipe = INVALID_HANDLE_VALUE;
|
HANDLE hPipe = INVALID_HANDLE_VALUE;
|
||||||
auto lpszPipename = QString().toStdWString();
|
auto lpszPipename = QString(QV2RAY_NETSPEED_PLUGIN_PIPE_NAME_WIN).toStdWString();
|
||||||
|
|
||||||
while (!isExiting) {
|
while (!isExiting) {
|
||||||
//printf("Pipe Server: Main thread awaiting client connection on %s\n", lpszPipename.c_str());
|
//printf("Pipe Server: Main thread awaiting client connection on %s\n", lpszPipename.c_str());
|
||||||
|
@ -417,6 +417,11 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QTextBrowser" name="logText">
|
<widget class="QTextBrowser" name="logText">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<pointsize>9</pointsize>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
<property name="verticalScrollBarPolicy">
|
<property name="verticalScrollBarPolicy">
|
||||||
<enum>Qt::ScrollBarAlwaysOn</enum>
|
<enum>Qt::ScrollBarAlwaysOn</enum>
|
||||||
</property>
|
</property>
|
||||||
|
Loading…
Reference in New Issue
Block a user