Merge branch 'dev' of github.com:amnezia-vpn/desktop-client into feature/v2ray-container
This commit is contained in:
commit
6a903792ab
2 changed files with 40 additions and 10 deletions
36
.github/workflows/deploy.yml
vendored
36
.github/workflows/deploy.yml
vendored
|
|
@ -42,12 +42,18 @@ jobs:
|
||||||
export QIF_BIN_DIR=${{ runner.temp }}/Qt/Tools/QtInstallerFramework/${{ env.QIF_VERSION }}/bin
|
export QIF_BIN_DIR=${{ runner.temp }}/Qt/Tools/QtInstallerFramework/${{ env.QIF_VERSION }}/bin
|
||||||
bash deploy/build_linux.sh
|
bash deploy/build_linux.sh
|
||||||
|
|
||||||
- name: 'Upload artifact'
|
- name: 'Upload installer artifact'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: AmneziaVPN_Linux
|
name: AmneziaVPN_Linux_installer
|
||||||
path: deploy/AmneziaVPN_Linux_Installer
|
path: deploy/AmneziaVPN_Linux_Installer
|
||||||
retention-days: 3
|
retention-days: 7
|
||||||
|
- name: 'Upload unpacked artifact'
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: AmneziaVPN_Linux_unpacked
|
||||||
|
path: deploy/AppDir
|
||||||
|
retention-days: 7
|
||||||
|
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
|
|
||||||
|
|
@ -97,12 +103,18 @@ jobs:
|
||||||
set QIF_BIN_DIR="${{ runner.temp }}\\Qt\\Tools\\QtInstallerFramework\\${{ env.QIF_VERSION }}\\bin"
|
set QIF_BIN_DIR="${{ runner.temp }}\\Qt\\Tools\\QtInstallerFramework\\${{ env.QIF_VERSION }}\\bin"
|
||||||
call deploy\\build_windows.bat
|
call deploy\\build_windows.bat
|
||||||
|
|
||||||
- name: 'Upload artifact'
|
- name: 'Upload installer artifact'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: AmneziaVPN_Windows
|
name: AmneziaVPN_Windows_installer
|
||||||
path: AmneziaVPN_x${{ env.BUILD_ARCH }}.exe
|
path: AmneziaVPN_x${{ env.BUILD_ARCH }}.exe
|
||||||
retention-days: 3
|
retention-days: 7
|
||||||
|
- name: 'Upload unpacked artifact'
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: AmneziaVPN_Windows_unpacked
|
||||||
|
path: deploy\\build_${{ env.BUILD_ARCH }}\\client\\Release
|
||||||
|
retention-days: 7
|
||||||
|
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
|
|
||||||
|
|
@ -225,12 +237,18 @@ jobs:
|
||||||
export QIF_BIN_DIR="${{ runner.temp }}/Qt/Tools/QtInstallerFramework/${{ env.QIF_VERSION }}/bin"
|
export QIF_BIN_DIR="${{ runner.temp }}/Qt/Tools/QtInstallerFramework/${{ env.QIF_VERSION }}/bin"
|
||||||
bash deploy/build_macos.sh
|
bash deploy/build_macos.sh
|
||||||
|
|
||||||
- name: 'Upload artifact'
|
- name: 'Upload installer artifact'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: AmneziaVPN_MacOS
|
name: AmneziaVPN_MacOS_installer
|
||||||
path: AmneziaVPN.dmg
|
path: AmneziaVPN.dmg
|
||||||
retention-days: 3
|
retention-days: 7
|
||||||
|
- name: 'Upload unpacked artifact'
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: AmneziaVPN_MacOS_unpacked
|
||||||
|
path: deploy/build/client/AmneziaVPN.app
|
||||||
|
retention-days: 7
|
||||||
|
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -116,5 +116,17 @@ QString ShadowSocksVpnProtocol::shadowSocksExecPath()
|
||||||
|
|
||||||
void ShadowSocksVpnProtocol::readShadowSocksConfiguration(const QJsonObject &configuration)
|
void ShadowSocksVpnProtocol::readShadowSocksConfiguration(const QJsonObject &configuration)
|
||||||
{
|
{
|
||||||
m_shadowSocksConfig = configuration.value(ProtocolProps::key_proto_config_data(Proto::ShadowSocks)).toObject();
|
QJsonObject shadowSocksConfig = configuration.value(ProtocolProps::key_proto_config_data(Proto::ShadowSocks)).toObject();
|
||||||
|
bool isLocalPortConvertOk = false;
|
||||||
|
bool isServerPortConvertOk = false;
|
||||||
|
int localPort = shadowSocksConfig.value("local_port").toString().toInt(&isLocalPortConvertOk);
|
||||||
|
int serverPort = shadowSocksConfig.value("server_port").toString().toInt(&isServerPortConvertOk);
|
||||||
|
if (!isLocalPortConvertOk) {
|
||||||
|
qDebug() << "Error when converting local_port field in ShadowSocks config";
|
||||||
|
} else if (!isServerPortConvertOk) {
|
||||||
|
qDebug() << "Error when converting server_port field in ShadowSocks config";
|
||||||
|
}
|
||||||
|
shadowSocksConfig["local_port"] = localPort;
|
||||||
|
shadowSocksConfig["server_port"] = serverPort;
|
||||||
|
m_shadowSocksConfig = shadowSocksConfig;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue