diff --git a/OMLAppDelegate.m b/OMLAppDelegate.m index 669e6ef..058aa37 100644 --- a/OMLAppDelegate.m +++ b/OMLAppDelegate.m @@ -72,6 +72,7 @@ [window setContentView: webView]; } + - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender { NSString *basePath = [@"~/Library/Application Support/Open Media Library" stringByExpandingTildeInPath]; NSTask *task = [[NSTask alloc] init]; diff --git a/Open Media Library-Info.plist b/Open Media Library-Info.plist index 7bfb5f3..24f2d5a 100644 --- a/Open Media Library-Info.plist +++ b/Open Media Library-Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable ${EXECUTABLE_NAME} CFBundleIdentifier - com.openmedialibrary.oml + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName diff --git a/Open Media Library.xcodeproj/project.pbxproj b/Open Media Library.xcodeproj/project.pbxproj index aef35e8..22b39e1 100644 --- a/Open Media Library.xcodeproj/project.pbxproj +++ b/Open Media Library.xcodeproj/project.pbxproj @@ -166,7 +166,7 @@ 29B97313FDCFA39411CA2CEA /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0640; + LastUpgradeCheck = 0710; }; buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Open Media Library" */; compatibilityVersion = "Xcode 3.2"; @@ -253,6 +253,7 @@ INFOPLIST_FILE = "Open Media Library-Info.plist"; INSTALL_PATH = "$(HOME)/Applications"; MACOSX_DEPLOYMENT_TARGET = 10.6; + PRODUCT_BUNDLE_IDENTIFIER = com.openmedialibrary.oml; PRODUCT_NAME = "Open Media Library"; SDKROOT = macosx; }; @@ -271,6 +272,7 @@ INFOPLIST_FILE = "Open Media Library-Info.plist"; INSTALL_PATH = "$(HOME)/Applications"; MACOSX_DEPLOYMENT_TARGET = 10.6; + PRODUCT_BUNDLE_IDENTIFIER = com.openmedialibrary.oml; PRODUCT_NAME = "Open Media Library"; SDKROOT = macosx; }; @@ -279,6 +281,7 @@ C01FCF4F08A954540054247B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_OPTIMIZATION_LEVEL = 0; GCC_WARN_ABOUT_RETURN_TYPE = YES; diff --git a/build.sh b/build.sh index 5e6334e..c69f944 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,7 @@ tmp="${name}.tmp.dmg" dmg="${name}.dmg" tmpdir=`mktemp -d -t oml` cp -r "${name}.app" "$tmpdir/" -cp -r miredo*.pkg "$tmpdir/" +#cp -r miredo*.pkg "$tmpdir/" ln -s /Applications "$tmpdir/Applications" rm -rf "$dmg" "$tmp" hdiutil create -srcfolder "$tmpdir" -volname "$name" -format UDZO "$tmp"