dabo Commit
Revision 4765
Date: 2008-12-03 15:14:49 -0800 (Wed, 03 Dec 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4765

Changed:
U   trunk/ide/wizards/AppWizard/AppWizard.py
U   trunk/ide/wizards/AppWizard/spec-App.py.txt
A   trunk/ide/wizards/AppWizard/spec-buildmac
U   trunk/ide/wizards/AppWizard/spec-setup.py.txt

Log:
Fixes to make apps build on Mac, as promised in the last commit.


Diff:
Modified: trunk/ide/wizards/AppWizard/AppWizard.py
===================================================================
--- trunk/ide/wizards/AppWizard/AppWizard.py    2008-12-03 22:44:22 UTC (rev 
4764)
+++ trunk/ide/wizards/AppWizard/AppWizard.py    2008-12-03 23:14:49 UTC (rev 
4765)
@@ -661,7 +661,10 @@
 
                        ## setup.py:
                        open("./setup.py", "w").write(self.getSetup(appName))
-                       open("./buildwin.bat", "w").write(self.getBuildwin())
+                       open("./buildwin.bat", 
"w").write(self.getBuildwin(appName))
+                       open("./buildmac", "w").write(self.getBuildMac(appName))
+                       if not sys.platform.startswith("win"):
+                               os.system("chmod 755 ./buildmac")
 
                        # Db module:
                        os.chdir("./db")
@@ -1003,10 +1006,13 @@
                                "spec-setup.py.txt")).read() % locals()
 
 
-       def getBuildwin(self):
+       def getBuildwin(self, appName):
                return open(os.path.join(self.wizDir, 
                                "spec-buildwin.bat")).read() % locals()
 
+       def getBuildMac(self, appName):
+               return open(os.path.join(self.wizDir, 
+                               "spec-buildmac")).read() % locals()
 
        def getModuleInit_db(self):
                return open(os.path.join(self.wizDir, 

Modified: trunk/ide/wizards/AppWizard/spec-App.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-App.py.txt 2008-12-03 22:44:22 UTC (rev 
4764)
+++ trunk/ide/wizards/AppWizard/spec-App.py.txt 2008-12-03 23:14:49 UTC (rev 
4765)
@@ -12,6 +12,7 @@
                ## The following information can be used in various places in 
your app:
                self.setAppInfo("appShortName", "%(appName)s")
                self.setAppInfo("appName", "%(appName)s")
+               self.setAppInfo("copyright", "(c) 2008")
                self.setAppInfo("companyName", "Your company name")
                self.setAppInfo("companyAddress1", "Your company address")
                self.setAppInfo("companyAddress2", "Your company CSZ")
@@ -19,12 +20,12 @@
                self.setAppInfo("companyEmail", "Your company email")
                self.setAppInfo("companyUrl", "Your company url")
 
-               self.setAppInfo("appDescription", "")
+               self.setAppInfo("appDescription", "Describe your app.")
 
                ## Information about the developer of the software:
-               self.setAppInfo("authorName", "")
-               self.setAppInfo("authorEmail", "")
-               self.setAppInfo("authorURL", "")
+               self.setAppInfo("authorName", "Your name")
+               self.setAppInfo("authorEmail", "Your email")
+               self.setAppInfo("authorURL", "Your URL")
 
                ## Set appVersion and appRevision from __version__.py:
                self.setAppInfo("appVersion", version["version"])

Added: trunk/ide/wizards/AppWizard/spec-buildmac
===================================================================
--- trunk/ide/wizards/AppWizard/spec-buildmac                           (rev 0)
+++ trunk/ide/wizards/AppWizard/spec-buildmac   2008-12-03 23:14:49 UTC (rev 
4765)
@@ -0,0 +1,9 @@
+sudo rm -rf build dist
+python -OO setup.py py2app
+
+# Recent py2app doesn't set executable bit:
+chmod 755 dist/%(appName)s.app/Contents/MacOS/%(appName)s
+
+sudo chown -R root:admin dist
+sudo chmod 755 dist/%(appName)s.app
+


Property changes on: trunk/ide/wizards/AppWizard/spec-buildmac
___________________________________________________________________
Name: svn:executable
   + *

Modified: trunk/ide/wizards/AppWizard/spec-setup.py.txt
===================================================================
--- trunk/ide/wizards/AppWizard/spec-setup.py.txt       2008-12-03 22:44:22 UTC 
(rev 4764)
+++ trunk/ide/wizards/AppWizard/spec-setup.py.txt       2008-12-03 23:14:49 UTC 
(rev 4765)
@@ -133,7 +133,7 @@
 
 elif sys.platform.startswith("darwin"):
        options = {"py2app":
-                       {"includes": ["App", "__version__", "constants", 
"db.updates", "ui", "biz", "encodings",
+                       {"includes": ["App", "__version__", "ui", "biz", 
"encodings",
                                "wx", "wx.lib.calendar", "wx.gizmos"],
                        "optimize": 2,
                        "excludes": ["matplotlib", 
"Tkconstants","Tkinter","tcl",




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to