Cleans-up the installer.
This commit is contained in:
parent
9091aebb3f
commit
e857029c44
|
@ -91,10 +91,12 @@ class InstallerAppDelegate(NSObject):
|
||||||
try:
|
try:
|
||||||
call([os.path.join(McBopomofoPath, "Contents/MacOS/McBopomofo"), "install"])
|
call([os.path.join(McBopomofoPath, "Contents/MacOS/McBopomofo"), "install"])
|
||||||
except:
|
except:
|
||||||
NSRunAlertPanel(NSLocalizedString("Failed to install McBopomofo!", ""), "", NSLocalizedString("OK", ""), None, None)
|
NSRunAlertPanel(NSLocalizedString("Failed to install McBopomofo!", ""),
|
||||||
|
NSLocalizedString("Failed to activate McBopomofo", ""),
|
||||||
|
NSLocalizedString("OK", ""), None, None)
|
||||||
NSApp.terminate_(self)
|
NSApp.terminate_(self)
|
||||||
NSRunAlertPanel(NSLocalizedString("Done!", ""),
|
NSRunAlertPanel(NSLocalizedString("Done!", ""),
|
||||||
NSLocalizedString("OpenVanilla McBopomofo has been installed on your Mac.", ""),
|
NSLocalizedString("McBopomofo has been installed on your Mac.", ""),
|
||||||
NSLocalizedString("OK", ""), None, None)
|
NSLocalizedString("OK", ""), None, None)
|
||||||
NSApp.terminate_(self)
|
NSApp.terminate_(self)
|
||||||
|
|
||||||
|
@ -103,9 +105,7 @@ class InstallerAppDelegate(NSObject):
|
||||||
NSApp.terminate_(self)
|
NSApp.terminate_(self)
|
||||||
|
|
||||||
def applicationDidFinishLaunching_(self, sender):
|
def applicationDidFinishLaunching_(self, sender):
|
||||||
|
NSApp.activateIgnoringOtherApps_(True)
|
||||||
self.checkOSVerion()
|
self.checkOSVerion()
|
||||||
self.showLicenseWindow()
|
self.showLicenseWindow()
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,5 @@ import AppKit
|
||||||
|
|
||||||
from PyObjCTools import AppHelper
|
from PyObjCTools import AppHelper
|
||||||
|
|
||||||
# import modules containing classes required to start application and load MainMenu.nib
|
|
||||||
import InstallerAppDelegate
|
import InstallerAppDelegate
|
||||||
|
|
||||||
# pass control to AppKit
|
|
||||||
AppHelper.runEventLoop()
|
AppHelper.runEventLoop()
|
||||||
|
|
Loading…
Reference in New Issue