mirror of
https://github.com/outbackdingo/amnezia-client.git
synced 2026-01-27 02:18:09 +00:00
implemented the function check for updates and online installer for the platform linux
This commit is contained in:
@@ -167,7 +167,7 @@ void PageController::closeApplication()
|
||||
|
||||
bool PageController::checkForUpdates()
|
||||
{
|
||||
#ifdef Q_OS_IOS
|
||||
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
|
||||
return false;
|
||||
#else
|
||||
QString path = qApp->applicationDirPath();
|
||||
@@ -183,6 +183,15 @@ bool PageController::checkForUpdates()
|
||||
checked = true;
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
if(path.contains("/client/bin")) {
|
||||
path = path.remove("/client/bin");
|
||||
}
|
||||
path = path + "/maintenancetool";
|
||||
|
||||
checked = true;
|
||||
#endif
|
||||
|
||||
if (!checked) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -42,6 +42,9 @@ if [ -z "${QT_VERSION+x}" ]; then
|
||||
elif [ -f $HOME/Qt/$QT_VERSION/gcc_64/bin/qmake ]; then
|
||||
QT_BIN_DIR=$HOME/Qt/$QT_VERSION/gcc_64/bin
|
||||
fi
|
||||
|
||||
QIF_VERSION=4.6
|
||||
QIF_BIN_DIR=$QT_BIN_DIR/../../../Tools/QtInstallerFramework/$QIF_VERSION/bin
|
||||
fi
|
||||
|
||||
echo "Using Qt in $QT_BIN_DIR"
|
||||
@@ -85,4 +88,10 @@ cp -r $PROJECT_DIR/deploy/installer $BUILD_DIR
|
||||
|
||||
$CQTDEPLOYER_DIR/binarycreator.sh --offline-only -v -c $BUILD_DIR/installer/config/linux.xml -p $BUILD_DIR/installer/packages -f $PROJECT_DIR/deploy/AmneziaVPN_Linux_Installer
|
||||
|
||||
# echo "Generating repository..."
|
||||
$QIF_BIN_DIR/repogen -p $BUILD_DIR/installer/packages $BUILD_DIR/installer/amneziavpn-linux-repository
|
||||
|
||||
# echo "Building online installer..."
|
||||
$CQTDEPLOYER_DIR/binarycreator.sh --online-only -c $BUILD_DIR/installer/config/linux.xml -p $BUILD_DIR/installer/packages $PROJECT_DIR/deploy/AmneziaVPN_Linux_Online_Installer
|
||||
|
||||
|
||||
|
||||
@@ -13,14 +13,14 @@
|
||||
<AllowSpaceInPath>true</AllowSpaceInPath>
|
||||
<AllowNonAsciiCharacters>false</AllowNonAsciiCharacters>
|
||||
<ControlScript>controlscript.js</ControlScript>
|
||||
<RepositorySettingsPageVisible>false</RepositorySettingsPageVisible>
|
||||
<RepositorySettingsPageVisible>true</RepositorySettingsPageVisible>
|
||||
<DependsOnLocalInstallerBinary>true</DependsOnLocalInstallerBinary>
|
||||
<SupportsModify>false</SupportsModify>
|
||||
<SupportsModify>true</SupportsModify>
|
||||
<DisableAuthorizationFallback>true</DisableAuthorizationFallback>
|
||||
<RemoteRepositories>
|
||||
<Repository>
|
||||
<Url>https://amneziavpn.org/updates/linux</Url>
|
||||
<Enabled>true</Enabled>
|
||||
<Url>https://updates.amzsvc.com/beta/linux</Url>
|
||||
<Enabled>1</Enabled>
|
||||
<DisplayName>AmneziaVPN - repository for Linux</DisplayName>
|
||||
</Repository>
|
||||
</RemoteRepositories>
|
||||
|
||||
Reference in New Issue
Block a user