commit-gnue
[Top][All Lists]
Advanced

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

[gnue] r9679 - in trunk/gnue-forms/packaging: osx win32


From: johannes
Subject: [gnue] r9679 - in trunk/gnue-forms/packaging: osx win32
Date: Wed, 6 Jun 2007 06:48:16 -0500 (CDT)

Author: johannes
Date: 2007-06-06 06:48:15 -0500 (Wed, 06 Jun 2007)
New Revision: 9679

Added:
   trunk/gnue-forms/packaging/osx/Info.plist.dist_template
   trunk/gnue-forms/packaging/osx/create-build.dist_template
   trunk/gnue-forms/packaging/win32/gnue-forms.iss.dist_template
   trunk/gnue-forms/packaging/win32/setup.cmd
   trunk/gnue-forms/packaging/win32/setup.py
Removed:
   trunk/gnue-forms/packaging/osx/Info.plist
   trunk/gnue-forms/packaging/osx/Info.plist.in
   trunk/gnue-forms/packaging/osx/create-build
   trunk/gnue-forms/packaging/win32/gnue-forms.iss
Log:
More work on packaging


Deleted: trunk/gnue-forms/packaging/osx/Info.plist
===================================================================
--- trunk/gnue-forms/packaging/osx/Info.plist   2007-06-06 11:42:55 UTC (rev 
9678)
+++ trunk/gnue-forms/packaging/osx/Info.plist   2007-06-06 11:48:15 UTC (rev 
9679)
@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
-<plist version="1.0">
-<dict>
-       <key>CFBundleGetInfoString</key>
-        <string>0.6-pre4, GNUe (c) 2001-2007 Free Software Foundation</string>
-       <key>CFBundleIdentifier</key>
-       <string>org.gnuenterprise.forms</string>
-       <key>CFBundleShortVersionString</key>
-       <string>0.6.0</string>
-       <key>IFMajorVersion</key>
-       <integer>0</integer>
-       <key>IFMinorVersion</key>
-       <integer>6</integer>
-       <key>IFPkgFlagAllowBackRev</key>
-       <false/>
-       <key>IFPkgFlagAuthorizationAction</key>
-       <string>AdminAuthorization</string>
-       <key>IFPkgFlagBackgroundAlignment</key>
-       <string>topleft</string>
-       <key>IFPkgFlagBackgroundScaling</key>
-       <string>none</string>
-       <key>IFPkgFlagDefaultLocation</key>
-       <string>/</string>
-       <key>IFPkgFlagFollowLinks</key>
-       <true/>
-       <key>IFPkgFlagInstallFat</key>
-       <false/>
-       <key>IFPkgFlagInstalledSize</key>
-       <integer>2896</integer>
-       <key>IFPkgFlagIsRequired</key>
-       <false/>
-       <key>IFPkgFlagOverwritePermissions</key>
-       <false/>
-       <key>IFPkgFlagRelocatable</key>
-       <false/>
-       <key>IFPkgFlagRestartAction</key>
-       <string>NoRestart</string>
-       <key>IFPkgFlagRootVolumeOnly</key>
-       <false/>
-       <key>IFPkgFlagUpdateInstalledLanguages</key>
-       <false/>
-       <key>IFPkgFormatVersion</key>
-       <real>0.10000000149011612</real>
-</dict>
-</plist>

Copied: trunk/gnue-forms/packaging/osx/Info.plist.dist_template (from rev 9677, 
trunk/gnue-forms/packaging/osx/Info.plist.in)
===================================================================
--- trunk/gnue-forms/packaging/osx/Info.plist.in        2007-06-06 11:24:51 UTC 
(rev 9677)
+++ trunk/gnue-forms/packaging/osx/Info.plist.dist_template     2007-06-06 
11:48:15 UTC (rev 9679)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
+<plist version="1.0">
+<dict>
+       <key>CFBundleGetInfoString</key>
+       <string>:VERSION:, GNUe (c) 2001-2007 Free Software Foundation</string>
+       <key>CFBundleIdentifier</key>
+       <string>org.gnuenterprise.forms</string>
+       <key>CFBundleShortVersionString</key>
+       <string>:MAJOR:.:MINOR:.:FINAL:</string>
+       <key>IFMajorVersion</key>
+       <integer>0</integer>
+       <key>IFMinorVersion</key>
+       <integer>6</integer>
+       <key>IFPkgFlagAllowBackRev</key>
+       <false/>
+       <key>IFPkgFlagAuthorizationAction</key>
+       <string>AdminAuthorization</string>
+       <key>IFPkgFlagBackgroundAlignment</key>
+       <string>topleft</string>
+       <key>IFPkgFlagBackgroundScaling</key>
+       <string>none</string>
+       <key>IFPkgFlagDefaultLocation</key>
+       <string>/</string>
+       <key>IFPkgFlagFollowLinks</key>
+       <true/>
+       <key>IFPkgFlagInstallFat</key>
+       <false/>
+       <key>IFPkgFlagInstalledSize</key>
+       <integer>2896</integer>
+       <key>IFPkgFlagIsRequired</key>
+       <false/>
+       <key>IFPkgFlagOverwritePermissions</key>
+       <false/>
+       <key>IFPkgFlagRelocatable</key>
+       <false/>
+       <key>IFPkgFlagRestartAction</key>
+       <string>NoRestart</string>
+       <key>IFPkgFlagRootVolumeOnly</key>
+       <false/>
+       <key>IFPkgFlagUpdateInstalledLanguages</key>
+       <false/>
+       <key>IFPkgFormatVersion</key>
+       <real>0.10000000149011612</real>
+</dict>
+</plist>

Deleted: trunk/gnue-forms/packaging/osx/Info.plist.in
===================================================================
--- trunk/gnue-forms/packaging/osx/Info.plist.in        2007-06-06 11:42:55 UTC 
(rev 9678)
+++ trunk/gnue-forms/packaging/osx/Info.plist.in        2007-06-06 11:48:15 UTC 
(rev 9679)
@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" 
"http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
-<plist version="1.0">
-<dict>
-       <key>CFBundleGetInfoString</key>
-       <string>::GNUe-Version::, GNUe (c) 2001-2007 Free Software 
Foundation</string>
-       <key>CFBundleIdentifier</key>
-       <string>org.gnuenterprise.forms</string>
-       <key>CFBundleShortVersionString</key>
-       <string>::GNUe-ShortVersion::</string>
-       <key>IFMajorVersion</key>
-       <integer>0</integer>
-       <key>IFMinorVersion</key>
-       <integer>6</integer>
-       <key>IFPkgFlagAllowBackRev</key>
-       <false/>
-       <key>IFPkgFlagAuthorizationAction</key>
-       <string>AdminAuthorization</string>
-       <key>IFPkgFlagBackgroundAlignment</key>
-       <string>topleft</string>
-       <key>IFPkgFlagBackgroundScaling</key>
-       <string>none</string>
-       <key>IFPkgFlagDefaultLocation</key>
-       <string>/</string>
-       <key>IFPkgFlagFollowLinks</key>
-       <true/>
-       <key>IFPkgFlagInstallFat</key>
-       <false/>
-       <key>IFPkgFlagInstalledSize</key>
-       <integer>2896</integer>
-       <key>IFPkgFlagIsRequired</key>
-       <false/>
-       <key>IFPkgFlagOverwritePermissions</key>
-       <false/>
-       <key>IFPkgFlagRelocatable</key>
-       <false/>
-       <key>IFPkgFlagRestartAction</key>
-       <string>NoRestart</string>
-       <key>IFPkgFlagRootVolumeOnly</key>
-       <false/>
-       <key>IFPkgFlagUpdateInstalledLanguages</key>
-       <false/>
-       <key>IFPkgFormatVersion</key>
-       <real>0.10000000149011612</real>
-</dict>
-</plist>

Deleted: trunk/gnue-forms/packaging/osx/create-build
===================================================================
--- trunk/gnue-forms/packaging/osx/create-build 2007-06-06 11:42:55 UTC (rev 
9678)
+++ trunk/gnue-forms/packaging/osx/create-build 2007-06-06 11:48:15 UTC (rev 
9679)
@@ -1,146 +0,0 @@
-#!/bin/bash
-# 
-# Create a disk image containing an installer package of gnue-common
-#
-# Usage: create-build
-
-if [ $UID -ne 0 ];
-then
-  echo "Please run this script as admin (or sudo)"
-  exit 1
-fi
-
-packagedir="../.."
-if [ ! -d "$packagedir" ];
-then
-  echo "Usage: $0"
-  exit 1
-fi
-
-
-if [ ! -f "$packagedir/setup.py" ];
-then
-  echo "$packagedir does not contain a setup.py file"
-  exit 1
-fi
-
-# ---------------------------------------------------------------------------
-# Get the package-name and version from the PKG-INFO file
-# ---------------------------------------------------------------------------
-
-pkgvers=`grep "^Version" ../../PKG-INFO | cut -d" " -f2`
-pkgname=`grep "^Name" ../../PKG-INFO | cut -d" " -f2`
-volname="$pkgname-$pkgvers-py23"
-package="$pkgname-$pkgvers-py23.pkg"
-
-if [ "$package" = "--py23.pkg" ];
-then
-  echo "Cannot determine package and version"
-  exit 1
-fi
-
-# ---------------------------------------------------------------------------
-# Populate the package environment
-# ---------------------------------------------------------------------------
-
-curdir=`pwd`
-destdir="$curdir/build-env/pkg-root"
-resdir="$curdir/build-env/Resources"
-pkgres="$curdir/build-env/pkg-resources"
-
-test -d "$destdir" || mkdir "$destdir"
-
-cd "$packagedir"
-python setup.py install --root=$destdir --no-compile
-
-
-# ---------------------------------------------------------------------------
-# Build the Application bundle for GNUe Forms
-# ---------------------------------------------------------------------------
-
-cd $curdir
-test -d "build-pyapp" && rm -rf "build-pyapp"
-python setup.py py2app
-test -d "build-pyapp" && rm -rf "build-pyapp"
-
-
-# ---------------------------------------------------------------------------
-# Apply the proper permissions to all files of the package
-# ---------------------------------------------------------------------------
-cd "$destdir"
-
-echo "Applying permissions ..."
-
-find . -print | while read filename
-do
-  real="/$filename"
-  if [ -e "$real" ];
-  then
-    data=`stat -f "%u %g %p" "$real"`
-
-    uid=`echo $data | cut -f1 -d" "`
-    gid=`echo $data | cut -f2 -d" "`
-    mod=`echo $data | cut -f3 -d" "`
-
-    chmod $mod "$filename"
-    chgrp $gid "$filename"
-    chown $uid "$filename"
-  else
-    chown root "$filename"
-    chgrp admin "$filename"
-
-    if [ -d "$filename" ];
-    then
-      chmod 775 "$filename"
-    else
-      if [ -x "$filename" ]; then
-        chmod 775 "$filename"
-      else
-        chmod 664 "$filename"
-      fi
-    fi
-  fi
-done
-
-
-
-# ---------------------------------------------------------------------------
-# Build the package
-# ---------------------------------------------------------------------------
-cd $curdir
-
-echo "Building the package ..."
-/Developer/Tools/packagemaker -build -p $package -f $destdir -ds -r $resdir -i 
Info.plist -d Description.plist
-
-
-# ---------------------------------------------------------------------------
-# Get rid of the obsolte directories
-# ---------------------------------------------------------------------------
-
-rm -rf "$destdir"
-
-
-# ---------------------------------------------------------------------------
-# Create a disk image
-# ---------------------------------------------------------------------------
-
-cd $curdir
-echo "Creating disk image ..."
-rm -f temp.dmg "$volname.dmg"
-
-# Prepare the directory tree for the disk image.  This contains the previously
-# created installer-package as well as everything from build-env/pkg-resources
-rm -rf "build-dmg"
-mkdir "build-dmg"
-cp -R "$pkgres/" "build-dmg"
-mv $package "build-dmg"
-
-hdiutil create -srcfolder "build-dmg" -volname $volname temp.dmg
-
-# Convert the image
-echo "Converting disk image ..."
-hdiutil convert temp.dmg -format UDZO -o $volname.dmg
-
-# Clean up the working directory
-rm -f temp.dmg
-rm -rf "build-dmg"

Copied: trunk/gnue-forms/packaging/osx/create-build.dist_template (from rev 
9677, trunk/gnue-forms/packaging/osx/create-build)
===================================================================
--- trunk/gnue-forms/packaging/osx/create-build 2007-06-06 11:24:51 UTC (rev 
9677)
+++ trunk/gnue-forms/packaging/osx/create-build.dist_template   2007-06-06 
11:48:15 UTC (rev 9679)
@@ -0,0 +1,141 @@
+#!/bin/bash
+# 
+# Create a disk image containing an installer package of gnue-common
+#
+# Usage: create-build
+
+if [ $UID -ne 0 ];
+then
+  echo "Please run this script as admin (or sudo)"
+  exit 1
+fi
+
+packagedir="../.."
+if [ ! -d "$packagedir" ];
+then
+  echo "Usage: $0"
+  exit 1
+fi
+
+
+if [ ! -f "$packagedir/setup.py" ];
+then
+  echo "$packagedir does not contain a setup.py file"
+  exit 1
+fi
+
+# ---------------------------------------------------------------------------
+# Get the package-name and version from the PKG-INFO file
+# ---------------------------------------------------------------------------
+
+pkgvers=`grep "^Version" ../../PKG-INFO | cut -d" " -f2`
+pkgname=`grep "^Name" ../../PKG-INFO | cut -d" " -f2`
+volname=":PACKAGE:-:VERSION:-py23"
+package="$volname.pkg"
+
+
+# ---------------------------------------------------------------------------
+# Populate the package environment
+# ---------------------------------------------------------------------------
+
+curdir=`pwd`
+destdir="$curdir/build-env/pkg-root"
+resdir="$curdir/build-env/Resources"
+pkgres="$curdir/build-env/pkg-resources"
+
+test -d "$destdir" || mkdir "$destdir"
+
+cd "$packagedir"
+python setup.py install --root=$destdir --no-compile
+
+
+# ---------------------------------------------------------------------------
+# Build the Application bundle for GNUe Forms
+# ---------------------------------------------------------------------------
+
+cd $curdir
+test -d "build-pyapp" && rm -rf "build-pyapp"
+python setup.py py2app
+test -d "build-pyapp" && rm -rf "build-pyapp"
+
+
+# ---------------------------------------------------------------------------
+# Apply the proper permissions to all files of the package
+# ---------------------------------------------------------------------------
+cd "$destdir"
+
+echo "Applying permissions ..."
+
+find . -print | while read filename
+do
+  real="/$filename"
+  if [ -e "$real" ];
+  then
+    data=`stat -f "%u %g %p" "$real"`
+
+    uid=`echo $data | cut -f1 -d" "`
+    gid=`echo $data | cut -f2 -d" "`
+    mod=`echo $data | cut -f3 -d" "`
+
+    chmod $mod "$filename"
+    chgrp $gid "$filename"
+    chown $uid "$filename"
+  else
+    chown root "$filename"
+    chgrp admin "$filename"
+
+    if [ -d "$filename" ];
+    then
+      chmod 775 "$filename"
+    else
+      if [ -x "$filename" ]; then
+        chmod 775 "$filename"
+      else
+        chmod 664 "$filename"
+      fi
+    fi
+  fi
+done
+
+
+
+# ---------------------------------------------------------------------------
+# Build the package
+# ---------------------------------------------------------------------------
+cd $curdir
+
+echo "Building the package ..."
+/Developer/Tools/packagemaker -build -p $package -f $destdir -ds -r $resdir -i 
Info.plist -d Description.plist
+
+
+# ---------------------------------------------------------------------------
+# Get rid of the obsolte directories
+# ---------------------------------------------------------------------------
+
+rm -rf "$destdir"
+
+
+# ---------------------------------------------------------------------------
+# Create a disk image
+# ---------------------------------------------------------------------------
+
+cd $curdir
+echo "Creating disk image ..."
+rm -f temp.dmg "$volname.dmg"
+
+# Prepare the directory tree for the disk image.  This contains the previously
+# created installer-package as well as everything from build-env/pkg-resources
+rm -rf "build-dmg"
+mkdir "build-dmg"
+cp -R "$pkgres/" "build-dmg"
+mv $package "build-dmg"
+
+hdiutil create -srcfolder "build-dmg" -volname $volname temp.dmg
+
+# Convert the image
+echo "Converting disk image ..."
+hdiutil convert temp.dmg -format UDZO -o $volname.dmg
+
+# Clean up the working directory
+rm -f temp.dmg
+rm -rf "build-dmg"

Deleted: trunk/gnue-forms/packaging/win32/gnue-forms.iss
===================================================================
--- trunk/gnue-forms/packaging/win32/gnue-forms.iss     2007-06-06 11:42:55 UTC 
(rev 9678)
+++ trunk/gnue-forms/packaging/win32/gnue-forms.iss     2007-06-06 11:48:15 UTC 
(rev 9679)
@@ -1,96 +0,0 @@
-; Script generated by the Inno Setup Script Wizard.
-; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
-
-[Setup]
-AppId=GNUe-Forms
-AppName=GNUe Forms
-AppVerName=GNUe Forms 0.6-pre3
-AppPublisher=GNU Enterprise
-AppPublisherURL=http://www.gnuenterprise.org
-AppSupportURL=http://www.gnuenterprise.org
-AppUpdatesURL=http://www.gnuenterprise.org
-DefaultDirName={pf}\GNUe\
-DefaultGroupName=GNUe
-AllowNoIcons=true
-LicenseFile=c:\gnue\LICENSE.txt
-ChangesAssociations=true
-CreateAppDir=true
-ShowLanguageDialog=yes
-OutputBaseFilename=gnue-forms-0.6-pre3
-DisableDirPage=true
-AppendDefaultDirName=false
-
-[Tasks]
-Name: desktopicon; Description: Create a &desktop icon; GroupDescription: 
Additional icons:; MinVersion: 4,4
-
-[Components]
-Name: main; Description: Shared Program Files; Types: full compact custom; 
Flags: fixed
-Name: doc; Description: Documentation; Types: full
-Name: translations; Description: Translations; Types: full
-
-[Files]
-Source: c:\gnue\bin\gnue-forms.exe; DestDir: {app}\bin; Components: main; 
Flags: ignoreversion
-Source: c:\gnue\bin\gnue\forms\*.*; DestDir: {app}\bin\gnue\forms; Flags: 
recursesubdirs ignoreversion; Components: main
-Source: c:\gnue\share\locale\de\LC_MESSAGES\gnue-forms.mo; DestDir: 
{app}\share\locale\de\LC_MESSAGES\; Flags: recursesubdirs; Components: 
translations
-Source: c:\gnue\share\locale\es_MX\LC_MESSAGES\gnue-forms.mo; DestDir: 
{app}\share\locale\es_MX\LC_MESSAGES\; Flags: recursesubdirs; Components: 
translations
-Source: c:\gnue\share\locale\es_ES\LC_MESSAGES\gnue-forms.mo; DestDir: 
{app}\share\locale\es_ES\LC_MESSAGES\; Flags: recursesubdirs; Components: 
translations
-Source: c:\gnue\share\locale\fr\LC_MESSAGES\gnue-forms.mo; DestDir: 
{app}\share\locale\fr\LC_MESSAGES\; Flags: recursesubdirs; Components: 
translations
-Source: c:\gnue\share\locale\hu\LC_MESSAGES\gnue-forms.mo; DestDir: 
{app}\share\locale\hu\LC_MESSAGES\; Flags: recursesubdirs; Components: 
translations
-Source: c:\gnue\share\locale\lt\LC_MESSAGES\gnue-forms.mo; DestDir: 
{app}\share\locale\lt\LC_MESSAGES\; Flags: recursesubdirs; Components: 
translations
-Source: c:\gnue\share\locale\ro\LC_MESSAGES\gnue-forms.mo; DestDir: 
{app}\share\locale\ro\LC_MESSAGES\; Flags: recursesubdirs; Components: 
translations
-Source: c:\gnue\share\locale\ru\LC_MESSAGES\gnue-forms.mo; DestDir: 
{app}\share\locale\ru\LC_MESSAGES\; Flags: recursesubdirs; Components: 
translations
-Source: c:\gnue\share\doc\gnue-forms\*.*; DestDir: {app}\share\doc\gnue-forms; 
Flags: recursesubdirs; Components: doc
-Source: c:\gnue\share\gnue\images\forms\default\*.*; DestDir: 
{app}\share\gnue\images\forms\default; Components: main
-Source: c:\gnue\share\gnue\images\forms\gnome\*.*; DestDir: 
{app}\share\gnue\images\forms\gnome; Components: main
-Source: c:\gnue\share\gnue\images\forms\kde3\*.*; DestDir: 
{app}\share\gnue\images\forms\kde3; Components: main
-Source: c:\gnue\share\gnue\forms\*.*; DestDir: {app}\share\gnue\forms; Flags: 
recursesubdirs; Tasks: 
-
-[Icons]
-Name: {group}\Documentation\Forms Developers Guide (PDF Format); Filename: 
{app}\share\doc\gnue-forms\Developers-Guide.pdf; Components: doc
-Name: {group}\GNUe Forms Client; Filename: 
{app}\share\doc\gnue-forms\examples\intro\intro.gfd
-Name: {group}\GNUe Connections; Filename: 
{app}\share\doc\gnue-forms\examples\connections\connection.gfd
-Name: {userdesktop}\GNUe Forms Client; Filename: 
{app}\share\doc\gnue-forms\examples\intro\intro.gfd; WorkingDir: {app}; 
MinVersion: 4,4; Tasks: desktopicon
-
-[Registry]
-; These four associations associate GFD files with GNUe Forms
-Root: HKCR; Subkey: .gfd; ValueType: string; ValueName: ; ValueData: 
GNUeFormsClient; Flags: uninsdeletekey deletekey
-Root: HKCR; Subkey: GNUeFormsClient; ValueType: string; ValueName: ; 
ValueData: GNUe Form Definition; Flags: uninsdeletekey deletekey
-;when we get a nifty icon, that's set here :)
-Root: HKCR; Subkey: GNUeFormsClient\DefaultIcon; ValueType: string; ValueName: 
; ValueData: {app}\bin\GNUE-FORMS.EXE,0
-Root: HKCR; Subkey: GNUeFormsClient\shell\open\command; ValueType: string; 
ValueName: ; ValueData: """{app}\bin\GNUE-FORMS.EXE"" ""%1"""; Flags: deletekey
-
-[UninstallDelete]
-Name: {app}\bin\gnue\forms\*.*; Type: filesandordirs
-
-[Code]
-function GetPathInstalled(AppID: String): String;
-var
-   sPrevPath: String;
-begin
-  sPrevPath := '';
-  if not RegQueryStringValue( HKLM,
-    'Software\Microsoft\Windows\CurrentVersion\Uninstall\'+AppID+'_is1',
-    'Inno Setup: App Path', sPrevpath) then
-    RegQueryStringValue( HKCU, 
'Software\Microsoft\Windows\CurrentVersion\Uninstall\'+AppID+'_is1' ,
-      'Inno Setup: App Path', sPrevpath);
-
-  Result := sPrevPath;
-end;
-
-
-function InitializeSetup(): Boolean;
-var
-       sPrevPath: String;
-       sPrevID: String;
-begin
-  sPrevID := 'GNUe-Tools';
-  sPrevPath := GetPathInstalled( sprevID );
-
-  if ( Length(sPrevPath) > 0 ) then
-    Result := true
-  else
-    begin
-      MsgBox( 'GNUe-Runtime-Environment is not installed!', mbInformation, 
MB_OK );
-      Result := false;
-    end;
-end;

Copied: trunk/gnue-forms/packaging/win32/gnue-forms.iss.dist_template (from rev 
9673, trunk/gnue-forms/packaging/win32/gnue-forms.iss)
===================================================================
--- trunk/gnue-forms/packaging/win32/gnue-forms.iss     2007-06-06 08:46:11 UTC 
(rev 9673)
+++ trunk/gnue-forms/packaging/win32/gnue-forms.iss.dist_template       
2007-06-06 11:48:15 UTC (rev 9679)
@@ -0,0 +1,97 @@
+; Script generated by the Inno Setup Script Wizard.
+; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
+
+[Setup]
+AppId=GNUe-Forms
+AppName=:TITLE:
+AppVerName=:TITLE: :VERSION:
+AppPublisher=GNU Enterprise
+AppPublisherURL=http://www.gnuenterprise.org
+AppSupportURL=http://www.gnuenterprise.org
+AppUpdatesURL=http://www.gnuenterprise.org
+DefaultDirName={pf}\GNUe\
+DefaultGroupName=GNUe
+AllowNoIcons=true
+LicenseFile=c:\gnue\LICENSE.txt
+ChangesAssociations=true
+CreateAppDir=true
+ShowLanguageDialog=yes
+OutputDir=C:\GNUE\dist
+OutputBaseFilename=:PACKAGE:-:VERSION:
+DisableDirPage=true
+AppendDefaultDirName=false
+
+[Tasks]
+Name: desktopicon; Description: Create a &desktop icon; GroupDescription: 
Additional icons:; MinVersion: 4,4
+
+[Components]
+Name: main; Description: Shared Program Files; Types: full compact custom; 
Flags: fixed
+Name: doc; Description: Documentation; Types: full
+Name: translations; Description: Translations; Types: full
+
+[Files]
+Source: c:\gnue\bin\gnue-forms.exe; DestDir: {app}\bin; Components: main; 
Flags: ignoreversion
+Source: c:\gnue\bin\gnue\forms\*.*; DestDir: {app}\bin\gnue\forms; Flags: 
recursesubdirs ignoreversion; Components: main
+Source: c:\gnue\share\locale\de\LC_MESSAGES\gnue-forms.mo; DestDir: 
{app}\share\locale\de\LC_MESSAGES\; Flags: recursesubdirs; Components: 
translations
+Source: c:\gnue\share\locale\es_MX\LC_MESSAGES\gnue-forms.mo; DestDir: 
{app}\share\locale\es_MX\LC_MESSAGES\; Flags: recursesubdirs; Components: 
translations
+Source: c:\gnue\share\locale\es_ES\LC_MESSAGES\gnue-forms.mo; DestDir: 
{app}\share\locale\es_ES\LC_MESSAGES\; Flags: recursesubdirs; Components: 
translations
+Source: c:\gnue\share\locale\fr\LC_MESSAGES\gnue-forms.mo; DestDir: 
{app}\share\locale\fr\LC_MESSAGES\; Flags: recursesubdirs; Components: 
translations
+Source: c:\gnue\share\locale\hu\LC_MESSAGES\gnue-forms.mo; DestDir: 
{app}\share\locale\hu\LC_MESSAGES\; Flags: recursesubdirs; Components: 
translations
+Source: c:\gnue\share\locale\lt\LC_MESSAGES\gnue-forms.mo; DestDir: 
{app}\share\locale\lt\LC_MESSAGES\; Flags: recursesubdirs; Components: 
translations
+Source: c:\gnue\share\locale\ro\LC_MESSAGES\gnue-forms.mo; DestDir: 
{app}\share\locale\ro\LC_MESSAGES\; Flags: recursesubdirs; Components: 
translations
+Source: c:\gnue\share\locale\ru\LC_MESSAGES\gnue-forms.mo; DestDir: 
{app}\share\locale\ru\LC_MESSAGES\; Flags: recursesubdirs; Components: 
translations
+Source: c:\gnue\share\doc\gnue-forms\*.*; DestDir: {app}\share\doc\gnue-forms; 
Flags: recursesubdirs; Components: doc
+Source: c:\gnue\share\gnue\images\forms\default\*.*; DestDir: 
{app}\share\gnue\images\forms\default; Components: main
+Source: c:\gnue\share\gnue\images\forms\gnome\*.*; DestDir: 
{app}\share\gnue\images\forms\gnome; Components: main
+Source: c:\gnue\share\gnue\images\forms\kde3\*.*; DestDir: 
{app}\share\gnue\images\forms\kde3; Components: main
+Source: c:\gnue\share\gnue\forms\*.*; DestDir: {app}\share\gnue\forms; Flags: 
recursesubdirs; Tasks: 
+
+[Icons]
+Name: {group}\Documentation\Forms Developers Guide (PDF Format); Filename: 
{app}\share\doc\gnue-forms\Developers-Guide.pdf; Components: doc
+Name: {group}\GNUe Forms Client; Filename: 
{app}\share\doc\gnue-forms\examples\intro\intro.gfd
+Name: {group}\GNUe Connections; Filename: 
{app}\share\doc\gnue-forms\examples\connections\connection.gfd
+Name: {userdesktop}\GNUe Forms Client; Filename: 
{app}\share\doc\gnue-forms\examples\intro\intro.gfd; WorkingDir: {app}; 
MinVersion: 4,4; Tasks: desktopicon
+
+[Registry]
+; These four associations associate GFD files with GNUe Forms
+Root: HKCR; Subkey: .gfd; ValueType: string; ValueName: ; ValueData: 
GNUeFormsClient; Flags: uninsdeletekey deletekey
+Root: HKCR; Subkey: GNUeFormsClient; ValueType: string; ValueName: ; 
ValueData: GNUe Form Definition; Flags: uninsdeletekey deletekey
+;when we get a nifty icon, that's set here :)
+Root: HKCR; Subkey: GNUeFormsClient\DefaultIcon; ValueType: string; ValueName: 
; ValueData: {app}\bin\GNUE-FORMS.EXE,0
+Root: HKCR; Subkey: GNUeFormsClient\shell\open\command; ValueType: string; 
ValueName: ; ValueData: """{app}\bin\GNUE-FORMS.EXE"" ""%1"""; Flags: deletekey
+
+[UninstallDelete]
+Name: {app}\bin\gnue\forms\*.*; Type: filesandordirs
+
+[Code]
+function GetPathInstalled(AppID: String): String;
+var
+   sPrevPath: String;
+begin
+  sPrevPath := '';
+  if not RegQueryStringValue( HKLM,
+    'Software\Microsoft\Windows\CurrentVersion\Uninstall\'+AppID+'_is1',
+    'Inno Setup: App Path', sPrevpath) then
+    RegQueryStringValue( HKCU, 
'Software\Microsoft\Windows\CurrentVersion\Uninstall\'+AppID+'_is1' ,
+      'Inno Setup: App Path', sPrevpath);
+
+  Result := sPrevPath;
+end;
+
+
+function InitializeSetup(): Boolean;
+var
+       sPrevPath: String;
+       sPrevID: String;
+begin
+  sPrevID := 'GNUe-Tools';
+  sPrevPath := GetPathInstalled( sprevID );
+
+  if ( Length(sPrevPath) > 0 ) then
+    Result := true
+  else
+    begin
+      MsgBox( 'GNUe-Runtime-Environment is not installed!', mbInformation, 
MB_OK );
+      Result := false;
+    end;
+end;

Added: trunk/gnue-forms/packaging/win32/setup.cmd
===================================================================
--- trunk/gnue-forms/packaging/win32/setup.cmd  2007-06-06 11:42:55 UTC (rev 
9678)
+++ trunk/gnue-forms/packaging/win32/setup.cmd  2007-06-06 11:48:15 UTC (rev 
9679)
@@ -0,0 +1,53 @@
address@hidden OFF
+REM ---------------------------------------------------------------------------
+REM Create an Installer Package for GNUe Forms
+REM 
+REM $Id$
+REM ---------------------------------------------------------------------------
+
+REM ---------------------------------------------------------------------------
+REM Prepare the build environment
+REM ---------------------------------------------------------------------------
+
address@hidden "Setting up the build environment ..."
+SET GNUE_PATH="C:\GNUE"
+
+IF EXIST %GNUE_PATH% (
+   RMDIR /S /Q %GNUE_PATH%
+)
+MKDIR %GNUE_PATH%
+MKDIR %GNUE_PATH%\Scripts
+
+COPY gnue.url %GNUE_PATH%
+COPY LICENSE.txt %GNUE_PATH%
+COPY setup.py %GNUE_PATH%\Scripts
+COPY gnue-forms.iss %GNUE_PATH%\Scripts
+
+REM ---------------------------------------------------------------------------
+REM Install the package into python's site-packages
+REM ---------------------------------------------------------------------------
+
+CD ..\..
address@hidden "Installing the package into local site-packages ..."
+python setup.py install --prefix=%GNUE_PATH% --install-lib=%GNUE_PATH%\bin
+
+
+REM ---------------------------------------------------------------------------
+REM Compile everything into an exe
+REM ---------------------------------------------------------------------------
+
+CD packaging\win32
+
address@hidden "Building EXE-File ..." 
+PUSHD %GNUE_PATH%\Scripts
+
+python setup.py py2exe -c -d %GNUE_PATH%\bin
+
+POPD
+
+REM Catch the built EXE and clean up the build environment
+COPY %GNUE_PATH%\dist\*.exe .
+
+RMDIR /S /Q %GNUE_PATH%
+
+:EXIT


Property changes on: trunk/gnue-forms/packaging/win32/setup.cmd
___________________________________________________________________
Name: svn:keywords
   + Id

Added: trunk/gnue-forms/packaging/win32/setup.py
===================================================================
--- trunk/gnue-forms/packaging/win32/setup.py   2007-06-06 11:42:55 UTC (rev 
9678)
+++ trunk/gnue-forms/packaging/win32/setup.py   2007-06-06 11:48:15 UTC (rev 
9679)
@@ -0,0 +1,205 @@
+# GNU Enterprise Common - Setup Script for py2exe
+#
+# Copyright 2001-2007 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$
+
+import os
+import sys
+import py2exe
+import win32api
+import win32con
+
+from distutils.core import setup
+
+# -----------------------------------------------------------------------------
+# Constants used by this setup
+# -----------------------------------------------------------------------------
+
+# The path where we are creating the build environment for the setup compiler
+GNUE_PATH='C:\\GNUE'            
+# The config files to rewrite (wrt line-ending)
+CFG_FILES = []
+# The InnoSetup configuration file
+ISS_FILE = 'gnue-forms.iss'
+
+# The manifest will be inserted as resource into .exe files.  This
+# gives the controls the Windows XP appearance (if run on XP).
+manifest = '''
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+<assemblyIdentity
+    version="5.0.0.0"
+    processorArchitecture="x86"
+    name="Controls"
+    type="win32"
+/>
+<description>GNU Enterprise</description>
+<dependency>
+    <dependentAssembly>
+        <assemblyIdentity
+            type="win32"
+            name="Microsoft.Windows.Common-Controls"
+            version="6.0.0.0"
+            processorArchitecture="X86"
+            publicKeyToken="6595b64144ccf1df"
+            language="*"
+        />
+    </dependentAssembly>
+</dependency>
+</assembly>
+'''
+
+RT_MANIFEST = 24
+
+
+# -----------------------------------------------------------------------------
+# Create a list of all modules in the standard library
+# -----------------------------------------------------------------------------
+
+def getimports(libdir):
+    """
+    Returns a list of all modules in the standard python library.
+    """
+    importlist = []
+    for entry in os.listdir(libdir):
+        if entry.startswith('_') or '-' in entry or \
+           entry.count('.')>1 or ' ' in entry:
+            continue
+    
+        if not os.path.splitext(entry)[1] == '.py':
+            continue
+
+        importlist.append(entry[:entry.find('.')])
+
+    return importlist
+
+
+# -----------------------------------------------------------------------------
+# Run the setup to create all the exe files in the gnue-common package
+# -----------------------------------------------------------------------------
+def create_exe_files():
+    """
+    Create gnue-schema.exe (which is currently the only exe supplied by
+    gnue-common.
+    """
+
+    setup( \
+        windows = [{"script": "gnue-forms",
+                   "other_resources": [(RT_MANIFEST, 1, manifest)]}],
+        options = {"py2exe":
+            {"typelibs": [('{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}',0,1,1)],
+             "packages": ["encodings",
+                          "mx",
+                          "wx",
+                          "PIL",
+                          "_xmlplus"],
+             "includes": getimports(os.path.join(sys.prefix, 'Lib')) +
+                         ["libxml2",
+                          "libxslt"
+                          "win32gui",
+                          "win32ui",
+                          "win32api",
+                          "win32con",
+                          "afxres",
+                          "commctrl",
+                          "win32clipboard",
+                          "win32print",
+                          "win32com.client",
+                          "pywin.mfc.activex",
+                          "pywin.mfc.window",
+                          "ImageWin",
+                          "BmpImagePlugin",
+                          "GifImagePlugin",
+                          "JpegImagePlugin",
+                          "PpmImagePlugin",
+                          "PngImagePlugin",
+                          "TiffImagePlugin"],
+             "dll_excludes": ["msvcp60.dll",
+                              "tcl84.dll",
+                              "tk84.dll",
+                              "oci.dll"],
+             "excludes": ["gnue"]
+            }
+        }
+    )
+
+
+# -----------------------------------------------------------------------------
+# Finalize the build environment
+# -----------------------------------------------------------------------------
+
+def finalize_build_env():
+    """
+    Finalize the build environment ready to be processed by the setup compiler
+    """
+
+    for name in CFG_FILES:
+        fhd = open(os.path.join(GNUE_PATH, 'etc', 'sample.%s' % name))
+        data = [line.strip() for line in fhd.readlines()]
+        out = open(os.path.join(GNUE_PATH, 'etc', name), 'wb')
+        for line in data:
+            out.write('%s%s' % (line, os.linesep))
+        out.close()
+        fhd.close()
+
+
+# -----------------------------------------------------------------------------
+# Examine the registry to find out where the InnoSetup compiler is located
+# -----------------------------------------------------------------------------
+
+def get_istool():
+    root = win32con.HKEY_CLASSES_ROOT
+    item = "InnoSetupScriptFile\\shell\\OpenWithISTool"
+    try:
+        path = None
+        key = win32api.RegOpenKeyEx(root, item, 0, win32con.KEY_READ)
+        value = win32api.RegQueryValue(key, "command")
+        if isinstance(value, basestring):
+            path = value.split(' ', 1)[0]
+    except:
+        pass
+
+    return path
+
+# -----------------------------------------------------------------------------
+# Compile the setup
+# -----------------------------------------------------------------------------
+
+def compile_setup():
+    
+    istool = get_istool()
+    if not istool:
+        print "Cannot find ISTool.exe"
+        sys.exit(1)
+
+    cmd = '%s -compile %s' % (istool, ISS_FILE)
+    os.system(cmd)
+
+
+# =============================================================================
+# Main program
+# =============================================================================
+
+create_exe_files()
+
+finalize_build_env()
+
+compile_setup()


Property changes on: trunk/gnue-forms/packaging/win32/setup.py
___________________________________________________________________
Name: svn:keywords
   + Id





reply via email to

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