Permalink
Browse files

ohhhhhh did somebody say mac app store? We'll see.

  • Loading branch information...
1 parent d980bcc commit 5fa3ad674d7de509450b8602f71bb7877bef9c40 @ccgus committed Jan 22, 2011
View
@@ -6,10 +6,19 @@ startDate=`/bin/date`
revision=""
upload=1
ql=1
+appStoreFlags=""
+archFlags=""
+appStore=0
while [ "$#" -gt 0 ]
do
case "$1" in
+ --store|-s)
+ appStore=1
+ upload=0
+ appStoreFlags="-DMAC_APP_STORE"
+ break
+
--revision|-r)
revision="-r $2"
upload=0
@@ -77,7 +86,7 @@ function buildTarget {
echo Building "$1"
- $xcodebuild -target "$1" -configuration Release OBJROOT=/tmp/jstalk/build SYMROOT=/tmp/jstalk/build OTHER_CFLAGS=""
+ $xcodebuild -target "$1" -configuration Release OBJROOT=/tmp/jstalk/build SYMROOT=/tmp/jstalk/build OTHER_CFLAGS="$appStoreFlags"
if [ $? != 0 ]; then
echo "****** Bad build for $1 ********"
@@ -153,17 +162,41 @@ cp -R /tmp/jstalk/example_scripts JSTalkFoo/examples
cp -R /tmp/jstalk/plugins/sqlite-fmdb-jstplugin/fmdb.jstalk JSTalkFoo/examples/.
mkdir JSTalkFoo/plugins
+mkdir -p JSTalkFoo/JSTalk\ Editor.app/Contents/PlugIns
+
cp -r JSTalk.acplugin JSTalkFoo/plugins/.
cp -r JSTalk.vpplugin JSTalkFoo/plugins/.
-cp -r FMDB.jstplugin JSTalkFoo/plugins/.
-cp -r ImageTools.jstplugin JSTalkFoo/plugins/.
+cp -r FMDB.jstplugin JSTalkFoo/JSTalk\ Editor.app/Contents/PlugIns/.
+cp -r ImageTools.jstplugin JSTalkFoo/JSTalk\ Editor.app/Contents/PlugIns/.
+
+
mv /tmp/jstalk/plugins/proxitask/JSTalkProxiTask.bundle JSTalkFoo/plugins/.
cp /tmp/jstalk/plugins/README.txt JSTalkFoo/plugins/.
mv JSTalkFoo JSTalk
+
+if [ $appStore = 1 ]; then
+
+ productbuild --product /tmp/jstalk/resources/jstalk_product_definition.plist --component JSTalk.app /Applications --sign '3rd Party Mac Developer Installer: Flying Meat Inc.' JSTalk.pkg
+
+ cp JSTalk.pkg $v-JSTalk.pkg
+
+ open .
+
+ exit
+fi
+
+
+
+
+
+
+
+
+
ditto -c -k --sequesterRsrc --keepParent JSTalk JSTalk.zip
rm -rf JSTalk
View
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+SRC_DIR=`cd ${0%/*}/..; pwd`
+
+if [ ! -d ~/Library/Application\ Support/JSTalk/Plug-ins/ ]; then
+ mkdir -p ~/Library/Application\ Support/JSTalk/Plug-ins/
+fi
+
+cd ~/Library/Application\ Support/JSTalk/Plug-ins/
+
+for i in /builds/Debug/*.jstplugin; do
+ ln -s $i
+done
View
@@ -1,11 +1,3 @@
-INSTALLING THE SQLITE / FMDB PLUGIN
-----------------------------------
-
-The FMDB.jstplugin needs to be installed in this folder:
-~/Library/Application Support/JSTalk/Plug-ins/
-
-
-
INSTALLING THE ACORN PLUGIN
--------------------------
View
@@ -68,7 +68,7 @@
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>LSMinimumSystemVersion</key>
- <string>10.5</string>
+ <string>10.6</string>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
@@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
- <string>com.flyingmeat.${PRODUCT_NAME:identifier}</string>
+ <string>org.jstalk.${PRODUCT_NAME:identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
@@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
- <string>com.flyingmeat.jstalkrunner.${PRODUCT_NAME:identifier}</string>
+ <string>org.jstalk.jstalkrunner.${PRODUCT_NAME:identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
@@ -21,6 +21,6 @@
<key>LSUIElement</key>
<true/>
<key>LSMinimumSystemVersion</key>
- <string>10.5</string>
+ <string>10.5</string>
</dict>
</plist>
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>arch</key>
+ <array>
+ <string>i386</string>
+ <string>x86_64</string>
+ </array>
+ <key>home</key>
+ <true/>
+ <key>os</key>
+ <array>
+ <string>10.6.6</string>
+ </array>
+</dict>
+</plist>

0 comments on commit 5fa3ad6

Please sign in to comment.