コード例 #1
0
ファイル: mac_update.py プロジェクト: hannesrauhe/lunchinator
 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())])
コード例 #2
0
ファイル: mac_update.py プロジェクト: hannesrauhe/lunchinator
 def appliesToConfiguration(cls, _logger):
     return lunchinator_has_gui() and getPlatform() == PLATFORM_MAC and getApplicationBundle() != None