From 3e3cb7904b0a9dfa911c26700b1532e6701dadfa Mon Sep 17 00:00:00 2001 From: Ronald Oussoren Date: Thu, 18 May 2006 09:04:15 +0000 Subject: Fix some minor issues with the generated application bundles on MacOSX --- Mac/OSX/IDLE/Info.plist | 55 +++++++++++++++++++++ Mac/OSX/IDLE/Makefile.in | 8 ++- Mac/OSX/Makefile.in | 11 +++-- .../PythonLauncher/English.lproj/InfoPlist.strings | Bin 618 -> 0 bytes Mac/OSX/PythonLauncher/Info.plist | 4 +- Mac/OSX/PythonLauncher/Makefile.in | 1 + Mac/OSXResources/app/Resources/PythonApplet.icns | Bin 55208 -> 63136 bytes 7 files changed, 70 insertions(+), 9 deletions(-) create mode 100644 Mac/OSX/IDLE/Info.plist delete mode 100644 Mac/OSX/PythonLauncher/English.lproj/InfoPlist.strings diff --git a/Mac/OSX/IDLE/Info.plist b/Mac/OSX/IDLE/Info.plist new file mode 100644 index 0000000..bbe2ea1 --- /dev/null +++ b/Mac/OSX/IDLE/Info.plist @@ -0,0 +1,55 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleDocumentTypes + + + CFBundleTypeExtensions + + py + pyw + + CFBundleTypeIconFile + PythonSource.icns + CFBundleTypeName + Python Script + CFBundleTypeRole + Editor + + + CFBundleTypeExtensions + + pyc + pyo + + CFBundleTypeIconFile + PythonCompiled.icns + CFBundleTypeName + Python Bytecode Document + CFBundleTypeRole + Editor + + + CFBundleExecutable + IDLE + CFBundleGetInfoString + 2.5, © 001-2006 Python Software Foundation + CFBundleIconFile + IDLE.icns + CFBundleIdentifier + org.python.IDLE + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + IDLE + CFBundlePackageType + APPL + CFBundleShortVersionString + 2.5 + CFBundleVersion + 2.5 + + diff --git a/Mac/OSX/IDLE/Makefile.in b/Mac/OSX/IDLE/Makefile.in index 26ecad4..a429277 100644 --- a/Mac/OSX/IDLE/Makefile.in +++ b/Mac/OSX/IDLE/Makefile.in @@ -1,3 +1,4 @@ +prefix=@prefix@ CC=@CC@ LD=@CC@ BASECFLAGS=@BASECFLAGS@ @@ -27,7 +28,8 @@ all: IDLE.app install: IDLE.app test -d "$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir -p "$(DESTDIR)$(PYTHONAPPSDIR)" -test -d "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app" && rm -r "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app" - cp -r IDLE.app "$(DESTDIR)$(PYTHONAPPSDIR)" + cp -PR IDLE.app "$(DESTDIR)$(PYTHONAPPSDIR)" + touch "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app" clean: rm -rf IDLE.app @@ -40,9 +42,11 @@ IDLE.app: \ $(RUNSHARED) $(BUILDPYTHON) $(BUNDLEBULDER) \ --builddir=. \ --name=IDLE \ + --link-exec \ + --plist=$(srcdir)/Info.plist \ --mainprogram=$(srcdir)/idlemain.py \ --iconfile=$(srcdir)/../Icons/IDLE.icns \ - --bundle-id=org.python.IDLE \ --resource=$(srcdir)/../Icons/PythonSource.icns \ --resource=$(srcdir)/../Icons/PythonCompiled.icns \ + --python=$(prefix)/Resources/Python.app/Contents/MacOS/Python \ build diff --git a/Mac/OSX/Makefile.in b/Mac/OSX/Makefile.in index 80aaa02..14b7f51 100644 --- a/Mac/OSX/Makefile.in +++ b/Mac/OSX/Makefile.in @@ -74,9 +74,10 @@ install_versionedtools: for fn in idle pydoc python-config ;\ do \ mv "$(DESTDIR)$(prefix)/bin/$${fn}" "$(DESTDIR)$(prefix)/bin/$${fn}$(VERSION)" ;\ - ln -sf "$${fn}$(VERSION)" "$${fn}" ;\ + ln -sf "$${fn}$(VERSION)" "$(DESTDIR)$(prefix)/bin/$${fn}" ;\ done - rm -f "$(DESTDIR)$(prefix)/bin/smtpd.py" + mv "$(DESTDIR)$(prefix)/bin/smtpd.py" "$(DESTDIR)$(prefix)/bin/smtpd$(VERSION).py" + ln -sf "smtpd$(VERSION).py" "$(DESTDIR)$(prefix)/bin/smtpd.py" pythonw: $(srcdir)/Tools/pythonw.c @@ -142,7 +143,7 @@ install_BuildApplet: $(BUILDPYTHON) $(srcdir)/../scripts/BuildApplet.py \ --destroot "$(DESTDIR)" \ --python $(INSTALLED_PYTHONAPP) \ - --output "$(DESTDIR)$(PYTHONAPPSDIR)/BuildApplet.app" \ + --output "$(DESTDIR)$(PYTHONAPPSDIR)/Build Applet.app" \ $(srcdir)/../scripts/BuildApplet.py MACLIBDEST=$(LIBDEST)/plat-mac @@ -221,9 +222,9 @@ installextras: checkapplepython: - @if ! $(BUILDPYTHON) $(srcdir)/Mac/OSX/fixapplepython23.py -n; then \ + @if ! $(BUILDPYTHON) $(srcdir)/fixapplepython23.py -n; then \ echo "* WARNING: Apple-installed Python 2.3 will have trouble building extensions from now on."; \ - echo "* WARNING: Run $(srcdir)/Mac/OSX/fixapplepython23.py with \"sudo\" to fix this."; \ + echo "* WARNING: Run $(srcdir)/fixapplepython23.py with \"sudo\" to fix this."; \ fi diff --git a/Mac/OSX/PythonLauncher/English.lproj/InfoPlist.strings b/Mac/OSX/PythonLauncher/English.lproj/InfoPlist.strings deleted file mode 100644 index 40b6185..0000000 Binary files a/Mac/OSX/PythonLauncher/English.lproj/InfoPlist.strings and /dev/null differ diff --git a/Mac/OSX/PythonLauncher/Info.plist b/Mac/OSX/PythonLauncher/Info.plist index 5e9e457..1dd795f 100644 --- a/Mac/OSX/PythonLauncher/Info.plist +++ b/Mac/OSX/PythonLauncher/Info.plist @@ -40,7 +40,7 @@ CFBundleExecutable PythonLauncher CFBundleGetInfoString - 2.5, © 2001-2006 Python Software Foundation + 2.5, © 001-2006 Python Software Foundation CFBundleIconFile PythonLauncher.icns CFBundleIdentifier @@ -48,7 +48,7 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - PythonLauncher + Python Launcher CFBundlePackageType APPL CFBundleShortVersionString diff --git a/Mac/OSX/PythonLauncher/Makefile.in b/Mac/OSX/PythonLauncher/Makefile.in index 41ea9d5..e6dacb3 100644 --- a/Mac/OSX/PythonLauncher/Makefile.in +++ b/Mac/OSX/PythonLauncher/Makefile.in @@ -29,6 +29,7 @@ install: Python\ Launcher.app test -d "$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir -p "$(DESTDIR)$(PYTHONAPPSDIR)" -test -d "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" && rm -r "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" cp -r "Python Launcher.app" "$(DESTDIR)$(PYTHONAPPSDIR)" + touch "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" clean: rm -f *.o "Python Launcher" diff --git a/Mac/OSXResources/app/Resources/PythonApplet.icns b/Mac/OSXResources/app/Resources/PythonApplet.icns index e959c43..c8aad9f 100644 Binary files a/Mac/OSXResources/app/Resources/PythonApplet.icns and b/Mac/OSXResources/app/Resources/PythonApplet.icns differ -- cgit v0.12