1235 os.chmod(wname, 0o755) |
1235 os.chmod(wname, 0o755) |
1236 |
1236 |
1237 shutilCopy(os.path.join(sourceDir, "pixmaps", "eric_2.icns"), |
1237 shutilCopy(os.path.join(sourceDir, "pixmaps", "eric_2.icns"), |
1238 os.path.join(dirs["icns"], "eric.icns")) |
1238 os.path.join(dirs["icns"], "eric.icns")) |
1239 |
1239 |
|
1240 if os.path.exists(os.path.join("eric", "UI", "Info.py")): |
|
1241 # Installing from archive |
|
1242 from eric.UI.Info import Version, CopyrightShort |
|
1243 elif os.path.exists(os.path.join("UI", "Info.py")): |
|
1244 # Installing from source tree |
|
1245 from UI.Info import Version, CopyrightShort |
|
1246 else: |
|
1247 Version = "Unknown" |
|
1248 CopyrightShort = "(c) 2002 - 2019 Detlev Offenbach" |
|
1249 |
1240 copyToFile( |
1250 copyToFile( |
1241 os.path.join(dirs["contents"], "Info.plist"), |
1251 os.path.join(dirs["contents"], "Info.plist"), |
1242 '''<?xml version="1.0" encoding="UTF-8"?>\n''' |
1252 '''<?xml version="1.0" encoding="UTF-8"?>\n''' |
1243 '''<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"\n''' |
1253 '''<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"\n''' |
1244 ''' "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n''' |
1254 ''' "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n''' |
1247 ''' <key>CFBundleExecutable</key>\n''' |
1257 ''' <key>CFBundleExecutable</key>\n''' |
1248 ''' <string>eric6</string>\n''' |
1258 ''' <string>eric6</string>\n''' |
1249 ''' <key>CFBundleIconFile</key>\n''' |
1259 ''' <key>CFBundleIconFile</key>\n''' |
1250 ''' <string>eric.icns</string>\n''' |
1260 ''' <string>eric.icns</string>\n''' |
1251 ''' <key>CFBundleInfoDictionaryVersion</key>\n''' |
1261 ''' <key>CFBundleInfoDictionaryVersion</key>\n''' |
1252 ''' <string>1.0</string>\n''' |
1262 ''' <string>{1}</string>\n''' |
1253 ''' <key>CFBundleName</key>\n''' |
1263 ''' <key>CFBundleName</key>\n''' |
1254 ''' <string>{0}</string>\n''' |
1264 ''' <string>{0}</string>\n''' |
1255 ''' <key>CFBundleDisplayName</key>\n''' |
1265 ''' <key>CFBundleDisplayName</key>\n''' |
1256 ''' <string>{0}</string>\n''' |
1266 ''' <string>{0}</string>\n''' |
1257 ''' <key>CFBundlePackageType</key>\n''' |
1267 ''' <key>CFBundlePackageType</key>\n''' |
1258 ''' <string>APPL</string>\n''' |
1268 ''' <string>APPL</string>\n''' |
1259 ''' <key>CFBundleSignature</key>\n''' |
1269 ''' <key>CFBundleSignature</key>\n''' |
1260 ''' <string>????</string>\n''' |
1270 ''' <string>ERIC-IDE</string>\n''' |
1261 ''' <key>CFBundleVersion</key>\n''' |
1271 ''' <key>CFBundleVersion</key>\n''' |
1262 ''' <string>1.0</string>\n''' |
1272 ''' <string>{1}</string>\n''' |
|
1273 ''' <key>CFBundleGetInfoString</key>\n''' |
|
1274 ''' <string>{1}, {2}</string>\n''' |
1263 ''' <key>CFBundleIdentifier</key>\n''' |
1275 ''' <key>CFBundleIdentifier</key>\n''' |
1264 ''' <string>org.python-projects.eric-ide</string>\n''' |
1276 ''' <string>org.python-projects.eric-ide</string>\n''' |
1265 '''</dict>\n''' |
1277 '''</dict>\n''' |
1266 '''</plist>\n'''.format(macAppBundleName.replace(".app", ""))) |
1278 '''</plist>\n'''.format( |
|
1279 macAppBundleName.replace(".app", ""), |
|
1280 Version.split(None, 1)[0], |
|
1281 CopyrightShort)) |
1267 |
1282 |
1268 |
1283 |
1269 def createInstallConfig(): |
1284 def createInstallConfig(): |
1270 """ |
1285 """ |
1271 Create the installation config dictionary. |
1286 Create the installation config dictionary. |