520 "eric7_diff", |
520 "eric7_diff", |
521 "eric7_doc", |
521 "eric7_doc", |
522 "eric7_editor", |
522 "eric7_editor", |
523 "eric7_hexeditor", |
523 "eric7_hexeditor", |
524 "eric7_iconeditor", |
524 "eric7_iconeditor", |
|
525 "eric7_ide", |
525 "eric7_plugininstall", |
526 "eric7_plugininstall", |
526 "eric7_pluginrepository", |
527 "eric7_pluginrepository", |
527 "eric7_pluginuninstall", |
528 "eric7_pluginuninstall", |
528 "eric7_qregularexpression", |
529 "eric7_qregularexpression", |
529 "eric7_re", |
530 "eric7_re", |
754 "eric7_configure", |
755 "eric7_configure", |
755 "eric7_diff", |
756 "eric7_diff", |
756 "eric7_editor", |
757 "eric7_editor", |
757 "eric7_hexeditor", |
758 "eric7_hexeditor", |
758 "eric7_iconeditor", |
759 "eric7_iconeditor", |
|
760 "eric7_ide", |
759 "eric7_plugininstall", |
761 "eric7_plugininstall", |
760 "eric7_pluginrepository", |
762 "eric7_pluginrepository", |
761 "eric7_pluginuninstall", |
763 "eric7_pluginuninstall", |
762 "eric7_qregularexpression", |
764 "eric7_qregularexpression", |
763 "eric7_re", |
765 "eric7_re", |
1176 starter = os.path.join(directories["exe"], "eric") |
1177 starter = os.path.join(directories["exe"], "eric") |
1177 os.symlink(macPythonExe, starter) |
1178 os.symlink(macPythonExe, starter) |
1178 else: |
1179 else: |
1179 starter = "python{0}".format(sys.version_info.major) |
1180 starter = "python{0}".format(sys.version_info.major) |
1180 |
1181 |
1181 wname = os.path.join(directories["exe"], "eric7") |
1182 wname = os.path.join(directories["exe"], "eric7_ide") |
1182 |
1183 |
1183 # determine entry for DYLD_FRAMEWORK_PATH |
1184 # determine entry for DYLD_FRAMEWORK_PATH |
1184 dyldLine = "" |
1185 dyldLine = "" |
1185 try: |
1186 try: |
1186 from PyQt6.QtCore import QLibraryInfo |
1187 from PyQt6.QtCore import QLibraryInfo |
1207 wrapper = ( |
1208 wrapper = ( |
1208 """#!/bin/sh\n""" |
1209 """#!/bin/sh\n""" |
1209 """\n""" |
1210 """\n""" |
1210 """{0}""" |
1211 """{0}""" |
1211 """{1}""" |
1212 """{1}""" |
1212 """exec "{2}" "{3}/{4}.py" "$@"\n""".format( |
1213 """exec "{2}" "-m" "eric7" "$@"\n""".format( |
1213 pathLine, dyldLine, starter, pydir, "eric7" |
1214 pathLine, dyldLine, starter |
|
1215 ## """exec "{2}" "{3}/{4}.py" "$@"\n""".format( |
|
1216 ## pathLine, dyldLine, starter, pydir, "eric7" |
1214 ) |
1217 ) |
1215 ) |
1218 ) |
1216 copyToFile(wname, wrapper) |
1219 copyToFile(wname, wrapper) |
1217 os.chmod(wname, 0o755) # secok |
1220 os.chmod(wname, 0o755) # secok |
1218 |
1221 |
1237 """<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"\n""" |
1240 """<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"\n""" |
1238 """ "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n""" |
1241 """ "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n""" |
1239 """<plist version="1.0">\n""" |
1242 """<plist version="1.0">\n""" |
1240 """<dict>\n""" |
1243 """<dict>\n""" |
1241 """ <key>CFBundleExecutable</key>\n""" |
1244 """ <key>CFBundleExecutable</key>\n""" |
1242 """ <string>eric7</string>\n""" |
1245 """ <string>eric7_ide</string>\n""" |
1243 """ <key>CFBundleIconFile</key>\n""" |
1246 """ <key>CFBundleIconFile</key>\n""" |
1244 """ <string>eric.icns</string>\n""" |
1247 """ <string>eric.icns</string>\n""" |
1245 """ <key>CFBundleInfoDictionaryVersion</key>\n""" |
1248 """ <key>CFBundleInfoDictionaryVersion</key>\n""" |
1246 """ <string>{1}</string>\n""" |
1249 """ <string>{1}</string>\n""" |
1247 """ <key>CFBundleName</key>\n""" |
1250 """ <key>CFBundleName</key>\n""" |
2031 global cfg |
2034 global cfg |
2032 |
2035 |
2033 majorVersion, minorVersion = sys.version_info[:2] |
2036 majorVersion, minorVersion = sys.version_info[:2] |
2034 entriesTemplates = [ |
2037 entriesTemplates = [ |
2035 ( |
2038 ( |
2036 "eric7 (Python {0}.{1}).lnk", |
2039 "eric7 IDE (Python {0}.{1}).lnk", |
2037 os.path.join(cfg["bindir"], "eric7.cmd"), |
2040 os.path.join(cfg["bindir"], "eric7_ide.cmd"), |
2038 os.path.join(cfg["ericPixDir"], "eric7.ico"), |
2041 os.path.join(cfg["ericPixDir"], "eric7.ico"), |
2039 ), |
2042 ), |
2040 ( |
2043 ( |
2041 "eric7 Browser (Python {0}.{1}).lnk", |
2044 "eric7 Browser (Python {0}.{1}).lnk", |
2042 os.path.join(cfg["bindir"], "eric7_browser.cmd"), |
2045 os.path.join(cfg["bindir"], "eric7_browser.cmd"), |
2055 |
2058 |
2056 @return name of the Start Menu top entry |
2059 @return name of the Start Menu top entry |
2057 @rtype str |
2060 @rtype str |
2058 """ |
2061 """ |
2059 majorVersion, minorVersion = sys.version_info[:2] |
2062 majorVersion, minorVersion = sys.version_info[:2] |
2060 return "eric7 (Python {0}.{1})".format(majorVersion, minorVersion) |
2063 return "eric7 IDE (Python {0}.{1})".format(majorVersion, minorVersion) |
2061 |
2064 |
2062 |
2065 |
2063 def main(argv): |
2066 def main(argv): |
2064 """ |
2067 """ |
2065 The main function of the script. |
2068 The main function of the script. |