def _prepareInstallation(self, localFile, commands): path = getApplicationBundle() if path == None: self._setStatus("Could not find application bundle. Cannot update.", True) else: installer = get_settings().get_resource("bin", "mac_installer.sh") commands.addShellCommand([installer, localFile, path, str(os.getpid())])
def appliesToConfiguration(cls, _logger): return lunchinator_has_gui() and getPlatform() == PLATFORM_MAC and getApplicationBundle() != None