Permalink
Browse files

updating build scripts

  • Loading branch information...
1 parent c1e078f commit b12f4d4b9922743eec59d0a1ae6fe3a3e6572175 Alex Ehlke committed Jul 27, 2010
View
@@ -1,3 +1,6 @@
Alessandro Rei for the application icon (or for compiling the icon set which includes it)
- http://www.kde-look.org/content/show.php/Dark-Glass+reviewed?content=67902
+
+Other application icon author: IconEden http://www.iconeden.com
+
View
@@ -1,5 +1,7 @@
#!/bin/sh
./buildresources.sh
./buildui.sh
-python setup.py py2app
-cp qt.conf dist/manabidict.app/Contents/Resources
+python setup.py py2app -O2
+#python setup.py py2app -O2 --no-strip
+cp qt.conf dist/Manabi\ Dictionary.app/Contents/Resources
+chmod 755 dist/Manabi\ Dictionary.app/Contents/Resources/mecab/bin/mecab
View
@@ -0,0 +1,78 @@
+#!/bin/sh
+
+# Makes the DMG with all the nice things already setup.
+# Most of the Finder window twiddling is done by an applescript, this just does
+# the DMG manipulations.
+
+# This script should be run with the working directory as the top level (where
+# the dist folder appears)
+
+if [ ! -d "dist" ]
+then
+ echo "This must be run in the same directory as 'dist'."
+ exit 1
+fi
+
+if [ -d "/Volumes/ManabiDictionary" ]
+then
+ echo "You already have one ManabiDictionary mounted, unmount it first!"
+ exit 1
+fi
+
+echo --- Configuring 'dist' folder...
+
+if [ ! -e "dist/Applications" ]
+then
+ ln -s /Applications dist/Applications
+fi
+
+#if [ ! -d "dist/.background" ]
+#then
+# mkdir dist/.background
+# cp ankiqt/mac/anki-logo-bg.png dist/.background
+#fi
+
+#if [ ! -f "dist/.DS_Store" ]
+#then
+# cp ankiqt/mac/dmg_ds_store dist/.DS_Store
+#fi
+
+echo --- Creating writable DMG...
+hdiutil create -attach -ov -format UDRW -volname ManabiDictionary -srcfolder dist -o ManabiDictionary-rw.dmg
+
+RESULT=$?
+
+if [ $RESULT != 0 ]
+then
+ echo "Creating RW DMG failed! ($RESULT)"
+ exit 1
+fi
+
+#echo --- Running applescript to configure view settings...
+#osascript "ankiqt/mac/set-dmg-settings.scpt"
+
+echo --- Unmounting and converting to RO DMG...
+hdiutil detach "/Volumes/ManabiDictionary"
+if [ -d "/Volumes/ManabiDictionary" ]
+then
+ echo "+++ Waiting for drive to detach..."
+ sleep 5
+ hdiutil detach "/Volumes/ManabiDictionary"
+fi
+
+if [ -d "/Volumes/ManabiDictionary" ]
+then
+ echo "!!! Warning: Drive didn't detach cleanly forcing it to detach.."
+ sleep 5
+ hdiutil detach -force "/Volumes/ManabiDictionary"
+fi
+
+echo --- Making final compressed DMG...
+
+hdiutil convert "ManabiDictionary-rw.dmg" -ov -format UDZO -imagekey zlib-level=9 -o ManabiDictionary.dmg
+
+RESULT=$?
+
+rm ManabiDictionary-rw.dmg
+
+exit $RESULT
View
@@ -1,3 +1,3 @@
[Paths]
-Plugins = bollocks
+Plugins = Resources/PlugIns
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
+<plist version="0.9">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>Python</string>
+ <key>CFBundleGetInfoString</key>
+ <string>Python Runtime and Library</string>
+ <key>CFBundleIdentifier</key>
+ <string>org.python.python</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>Python</string>
+ <key>CFBundlePackageType</key>
+ <string>FMWK</string>
+ <key>CFBundleShortVersionString</key>
+ <string>2.6.4, (c) 2004-2008 Python Software Foundation.</string>
+ <key>CFBundleLongVersionString</key>
+ <string>2.6.4, (c) 2004-2008 Python Software Foundation.</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>2.6.4</string>
+</dict>
+</plist>
Oops, something went wrong.

0 comments on commit b12f4d4

Please sign in to comment.