commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r9610 - trunk/gnue-forms/packaging/osx


From: johannes
Subject: [gnue] r9610 - trunk/gnue-forms/packaging/osx
Date: Wed, 23 May 2007 09:17:12 -0500 (CDT)

Author: johannes
Date: 2007-05-23 09:17:12 -0500 (Wed, 23 May 2007)
New Revision: 9610

Added:
   trunk/gnue-forms/packaging/osx/gnue-forms.py
   trunk/gnue-forms/packaging/osx/setup.py
Modified:
   trunk/gnue-forms/packaging/osx/HOWTO-Build
   trunk/gnue-forms/packaging/osx/create-build
   trunk/gnue-forms/packaging/osx/gnue-forms.pmproj
Log:
Started integration of building the Application Bundle for GNUe Forms


Modified: trunk/gnue-forms/packaging/osx/HOWTO-Build
===================================================================
--- trunk/gnue-forms/packaging/osx/HOWTO-Build  2007-05-23 11:45:40 UTC (rev 
9609)
+++ trunk/gnue-forms/packaging/osx/HOWTO-Build  2007-05-23 14:17:12 UTC (rev 
9610)
@@ -5,23 +5,15 @@
 
 # How to build a disk image containing a native OS X installer package
 
-1. Grab the tarball you'd like to create a package for from 
-   http://www.gnuenterprise.org/downloads/
+1. Execute the script "create-build"
 
-   e.g. gnue-forms-0.5.13.99-beta1.tar.gz
+   e.g. ./create-build
 
-2. Unpack the tarball into this directory (packaging/osx)
-   You'll get a subdirectory like 'gnue-forms-0.5.13.99-beta1'
+   This script creates a final build environment for the package as well as the
+   Application Bundle for GNUe Forms.. It will be located in the subdirectory
+   'build'
 
-3. Execute the script "create-build" with the package-directory previously
-   created
-
-   e.g. create-build gnue-forms-0.5.13.99-beta1
-
-   This script creates a final build environment for the package. It will be
-   located in the subdirectory 'build'
-
-4. Start the package manager (from /Developer/Tools) and load the package
+2. Start the package manager (from /Developer/Tools) and load the package
    manager project file: gnue-forms.pmproj
 
    In the 'Contents' tab click on the 'File permissions ...' button. There
@@ -30,15 +22,15 @@
 
    Now you can call "Project | Build" from the menu bar or by Cmd-B.
    Determine the name of the installer package 
-   (e.g.  gnue-forms-0.5.13.99-py23) and press the Save button. You'll be
+   (e.g.  gnue-forms-0.6.pre3-py23) and press the Save button. You'll be
    asked for the administrator password.
 
    After the build is finished and there were no errors you can quit the
    package manager. Another directory has been created - the package directory,
-   e.g. gnue-forms-0.5.13.99-py23.pkg
+   e.g. gnue-forms-0.6-pre3-py23.pkg
 
-5. Execute the script "create-image" with the package directory
-   e.g. create-image gnue-forms-0.5.13.99-py23.pkg
+3. Execute the script "create-image" with the package directory
+   e.g. create-image gnue-forms-0.6-pre3-py23.pkg
 
    This will create the disc image containing the installer package as well as
    the contents of the 'dist' subdirectory.

Modified: trunk/gnue-forms/packaging/osx/create-build
===================================================================
--- trunk/gnue-forms/packaging/osx/create-build 2007-05-23 11:45:40 UTC (rev 
9609)
+++ trunk/gnue-forms/packaging/osx/create-build 2007-05-23 14:17:12 UTC (rev 
9610)
@@ -1,9 +1,9 @@
 #!/bin/bash
 # 
 # Create the build environment for gnue-common
-# Usage: create-build <package-directory>
+# Usage: create-build
 
-packagedir=$1
+packagedir="../.."
 if [ ! -d "$packagedir" ];
 then
   echo "Usage: $0 <package-directory>"
@@ -22,7 +22,7 @@
 curdir=`pwd`
 
 cd "$packagedir"
-python setup.py install --root=../build --no-compile
+python setup.py install --root="$curdir/build" --no-compile
 
 cd "$curdir"
 
@@ -33,3 +33,8 @@
 sed -i "" -e "s/^#\!\/usr\/bin\/python.*/#\!\/usr\/bin\/pythonw/" "$file"
 
 cd "$curdir"
+
+# Build the Application for gnue-forms
+test -d "build-pyapp" && rm -rf "build-pyapp"
+python setup.py py2app
+test -d "build-pyapp" && rm -rf "build-pyapp"

Modified: trunk/gnue-forms/packaging/osx/gnue-forms.pmproj
===================================================================
(Binary files differ)

Added: trunk/gnue-forms/packaging/osx/gnue-forms.py
===================================================================
--- trunk/gnue-forms/packaging/osx/gnue-forms.py        2007-05-23 11:45:40 UTC 
(rev 9609)
+++ trunk/gnue-forms/packaging/osx/gnue-forms.py        2007-05-23 14:17:12 UTC 
(rev 9610)
@@ -0,0 +1,34 @@
+#!/usr/bin/env python
+#
+# GNU Enterprise Forms - Main Script
+#
+# Copyright 2001-2003 Free Software Foundation
+#
+# This file is part of GNU Enterprise.
+#
+# GNU Enterprise is free software; you can redistribute it
+# and/or modify it under the terms of the GNU General Public
+# License as published by the Free Software Foundation; either
+# version 2, or (at your option) any later version.
+#
+# GNU Enterprise is distributed in the hope that it will be
+# useful, but WITHOUT ANY WARRANTY; without even the implied
+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+# PURPOSE. See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with program; see the file COPYING. If not,
+# write to the Free Software Foundation, Inc., 59 Temple Place
+# - Suite 330, Boston, MA 02111-1307, USA.
+#
+# $Id: gnue-forms,v 1.3 2003/10/05 18:04:34 btami Exp $
+
+import os, sys
+if hasattr(sys, 'frozen'):
+  sys.path.append(os.path.abspath(os.path.dirname(sys.argv[0])))
+
+from  gnue.forms import GFClient
+
+if __name__ == '__main__':
+  client = GFClient.GFClient()
+  client.run ()


Property changes on: trunk/gnue-forms/packaging/osx/gnue-forms.py
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/gnue-forms/packaging/osx/setup.py
===================================================================
--- trunk/gnue-forms/packaging/osx/setup.py     2007-05-23 11:45:40 UTC (rev 
9609)
+++ trunk/gnue-forms/packaging/osx/setup.py     2007-05-23 14:17:12 UTC (rev 
9610)
@@ -0,0 +1,31 @@
+# setup script for py2app to build the GNUe Forms Application bundle
+from setuptools import setup
+import py2app
+
+# Build the .app file
+setup(
+  options=dict(
+     py2app=dict(
+        # iconfile='resources/myapp-icon.icns',
+        site_packages=True,
+        argv_emulation=True,
+        excludes=['gnue'],
+        dist_dir='build/Applications',
+        bdist_base='build-pyapp',
+        # resources=['resources/License.txt'],
+        plist=dict(
+          CFBundleName = "GNUe Forms",
+          CFBundleShortVersionString = "0.6.0", # must be in X.X.X format
+          CFBundleGetInfoString = "GNUe Forms 0.6-pre3",
+          CFBundleExecutable = "GNUe Forms",
+          CFBundleIdentifier = "com.gnuenterprise.forms",
+          CFBundleDocumentTypes = [dict(
+              CFBundleTypeExtensions = "gfd",
+              CFBundleTypeName = "public.xml",
+              CFBundleTypeRole = "Viewer",
+              )],
+          ),
+        ),
+      ),
+      app=[ 'gnue-forms.py' ]
+  )





reply via email to

[Prev in Thread] Current Thread [Next in Thread]