Macos fixes
This commit is contained in:
parent
f75456060f
commit
c4235a60c8
2 changed files with 11 additions and 0 deletions
|
|
@ -122,6 +122,7 @@ $QIF_BIN_DIR/binarycreator --offline-only -v -c $BUILD_DIR/installer/config/maco
|
||||||
|
|
||||||
if [ "${MAC_CERT_PW+x}" ]; then
|
if [ "${MAC_CERT_PW+x}" ]; then
|
||||||
echo "Signing installer bundle..."
|
echo "Signing installer bundle..."
|
||||||
|
security unlock-keychain -p $TEMP_PASS $KEYCHAIN
|
||||||
/usr/bin/codesign --deep --force --verbose --timestamp -o runtime --sign "Developer ID Application: Privacy Technologies OU (X7UJ388FXK)" $INSTALLER_BUNDLE_DIR
|
/usr/bin/codesign --deep --force --verbose --timestamp -o runtime --sign "Developer ID Application: Privacy Technologies OU (X7UJ388FXK)" $INSTALLER_BUNDLE_DIR
|
||||||
/usr/bin/codesign --verify -vvvv $INSTALLER_BUNDLE_DIR || true
|
/usr/bin/codesign --verify -vvvv $INSTALLER_BUNDLE_DIR || true
|
||||||
|
|
||||||
|
|
@ -141,6 +142,7 @@ hdiutil create -volname $APP_NAME -srcfolder $BUILD_DIR/installer/$APP_NAME.app
|
||||||
|
|
||||||
if [ "${MAC_CERT_PW+x}" ]; then
|
if [ "${MAC_CERT_PW+x}" ]; then
|
||||||
echo "Signing DMG installer..."
|
echo "Signing DMG installer..."
|
||||||
|
security unlock-keychain -p $TEMP_PASS $KEYCHAIN
|
||||||
/usr/bin/codesign --deep --force --verbose --timestamp -o runtime --sign "Developer ID Application: Privacy Technologies OU (X7UJ388FXK)" $DMG_FILENAME
|
/usr/bin/codesign --deep --force --verbose --timestamp -o runtime --sign "Developer ID Application: Privacy Technologies OU (X7UJ388FXK)" $DMG_FILENAME
|
||||||
/usr/bin/codesign --verify -vvvv $DMG_FILENAME || true
|
/usr/bin/codesign --verify -vvvv $DMG_FILENAME || true
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,11 @@ bool RouterMac::routeAdd(const QString &ipWithSubnet, const QString &gw)
|
||||||
QString ip = Utils::ipAddressFromIpWithSubnet(ipWithSubnet);
|
QString ip = Utils::ipAddressFromIpWithSubnet(ipWithSubnet);
|
||||||
QString mask = Utils::netMaskFromIpWithSubnet(ipWithSubnet);
|
QString mask = Utils::netMaskFromIpWithSubnet(ipWithSubnet);
|
||||||
|
|
||||||
|
if (!Utils::checkIPFormat(ip) || !Utils::checkIPFormat(gw)) {
|
||||||
|
qCritical().noquote() << "Critical, trying to add invalid route: " << ip << gw;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
QString cmd;
|
QString cmd;
|
||||||
if (mask == "255.255.255.255") {
|
if (mask == "255.255.255.255") {
|
||||||
cmd = QString("route add -host %1 %2").arg(ip).arg(gw);
|
cmd = QString("route add -host %1 %2").arg(ip).arg(gw);
|
||||||
|
|
@ -69,6 +74,10 @@ bool RouterMac::routeDelete(const QString &ipWithSubnet, const QString &gw)
|
||||||
QString ip = Utils::ipAddressFromIpWithSubnet(ipWithSubnet);
|
QString ip = Utils::ipAddressFromIpWithSubnet(ipWithSubnet);
|
||||||
QString mask = Utils::netMaskFromIpWithSubnet(ipWithSubnet);
|
QString mask = Utils::netMaskFromIpWithSubnet(ipWithSubnet);
|
||||||
|
|
||||||
|
if (!Utils::checkIPFormat(ip) || !Utils::checkIPFormat(gw)) {
|
||||||
|
qCritical().noquote() << "Critical, trying to remove invalid route: " << ip << gw;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (ip == "0.0.0.0") {
|
if (ip == "0.0.0.0") {
|
||||||
qDebug().noquote() << "Warning, trying to remove default route, skipping: " << ip << gw;
|
qDebug().noquote() << "Warning, trying to remove default route, skipping: " << ip << gw;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue