950 elif sys.platform.startswith(("win", "cygwin")): |
950 elif sys.platform.startswith(("win", "cygwin")): |
951 createWindowsLinks() |
951 createWindowsLinks() |
952 |
952 |
953 # Create a Mac application bundle |
953 # Create a Mac application bundle |
954 elif sys.platform == "darwin": |
954 elif sys.platform == "darwin": |
955 createMacAppBundle(cfg["ericDir"]) |
955 createMacAppBundle() |
956 |
956 |
957 return 0 |
957 return 0 |
958 |
958 |
959 |
959 |
960 def createLinuxSpecifics(): |
960 def createLinuxSpecifics(): |
1155 for linkName, targetPath, iconPath in windowsDesktopEntries(): |
1155 for linkName, targetPath, iconPath in windowsDesktopEntries(): |
1156 linkPath = os.path.join(eric7EntryPath, linkName) |
1156 linkPath = os.path.join(eric7EntryPath, linkName) |
1157 createWindowsShortcut(linkPath, targetPath, iconPath) |
1157 createWindowsShortcut(linkPath, targetPath, iconPath) |
1158 |
1158 |
1159 |
1159 |
1160 def createMacAppBundle(pydir): |
1160 def createMacAppBundle(): |
1161 """ |
1161 """ |
1162 Create a Mac application bundle. |
1162 Create a Mac application bundle. |
1163 |
|
1164 @param pydir the name of the directory where the Python script will |
|
1165 eventually be installed |
|
1166 @type str |
|
1167 """ |
1163 """ |
1168 global cfg, macAppBundleName, macPythonExe, macAppBundlePath |
1164 global cfg, macAppBundleName, macPythonExe, macAppBundlePath |
1169 |
1165 |
1170 directories = { |
1166 directories = { |
1171 "contents": "{0}/{1}/Contents/".format(macAppBundlePath, macAppBundleName), |
1167 "contents": "{0}/{1}/Contents/".format(macAppBundlePath, macAppBundleName), |