oml works on 10.9, add makefile to build without ui

This commit is contained in:
j 2016-02-06 18:31:42 +05:30
parent d4f26df196
commit 7ac08f45ad
5 changed files with 18 additions and 19 deletions

10
Makefile Normal file
View file

@ -0,0 +1,10 @@
NAME=Open Media Library
Open Media Library.dmg:
rm -rf "${NAME}.dmg" dist
xcodebuild -project "Open Media Library.xcodeproj" -scheme "Open Media Library" DSTROOT="./dist" archive
ln -s /Applications "dist/Applications/Applications"
hdiutil create -srcfolder "dist/Applications" -volname "${NAME}" -format UDZO "dist/${NAME}.dmg"
hdiutil convert -format UDZO -imagekey zlib-level=9 -o "${NAME}.dmg" "dist/${NAME}.dmg"
rm -rf dist

View file

@ -206,7 +206,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.11;
MACOSX_DEPLOYMENT_TARGET = 10.9;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
@ -244,7 +244,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.11;
MACOSX_DEPLOYMENT_TARGET = 10.9;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
};

View file

@ -19,7 +19,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.6</string>
<string>0.7</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
@ -37,13 +37,13 @@
<key>DTSDKBuild</key>
<string>15C43</string>
<key>DTSDKName</key>
<string>macosx10.11</string>
<string>macosx10.9</string>
<key>DTXcode</key>
<string>0720</string>
<key>DTXcodeBuild</key>
<string>7C68</string>
<key>LSMinimumSystemVersion</key>
<string>10.11</string>
<string>10.9</string>
<key>LSUIElement</key>
<true/>
<key>NSHumanReadableCopyright</key>

5
README
View file

@ -1,4 +1,5 @@
Open Media Library OS X Launcher and Installer
- Build in XCode and export "Open Media Library.app" into this folder
- Create .dmg file running ./build.sh
To build current version run:
make "Open Media Library.dmg"

View file

@ -1,12 +0,0 @@
#!/bin/sh
name="Open Media Library"
tmp="${name}.tmp.dmg"
dmg="${name}.dmg"
tmpdir=`mktemp -d -t oml`
cp -r "${name}.app" "$tmpdir/"
#cp -r miredo*.pkg "$tmpdir/"
ln -s /Applications "$tmpdir/Applications"
rm -rf "$dmg" "$tmp"
hdiutil create -srcfolder "$tmpdir" -volname "$name" -format UDZO "$tmp"
hdiutil convert -format UDZO -imagekey zlib-level=9 -o "$dmg" "$tmp"
rm -rf $tmpdir "$tmp"