gbrainy r254 - in trunk/platforms: . win32 win32/installer win32/src
- From: jmas svn gnome org
- To: svn-commits-list gnome org
- Subject: gbrainy r254 - in trunk/platforms: . win32 win32/installer win32/src
- Date: Sat, 1 Mar 2008 19:03:22 +0000 (GMT)
Author: jmas
Date: Sat Mar 1 19:03:22 2008
New Revision: 254
URL: http://svn.gnome.org/viewvc/gbrainy?rev=254&view=rev
Log:
Win32 installer files
Added:
trunk/platforms/ChangeLog
trunk/platforms/win32/
trunk/platforms/win32/README.TXT
trunk/platforms/win32/installer/
trunk/platforms/win32/installer/gbrainy.bat
trunk/platforms/win32/installer/gbrainy.nsi
trunk/platforms/win32/src/
trunk/platforms/win32/src/Defines.cs
trunk/platforms/win32/src/build.bat
Added: trunk/platforms/win32/README.TXT
==============================================================================
--- (empty file)
+++ trunk/platforms/win32/README.TXT Sat Mar 1 19:03:22 2008
@@ -0,0 +1,32 @@
+Here are some notes on how to build gbrainy's installer for Win32
+
+-- Software used
+
+* The Experimental Combined Mono and Gtk# Installer for Win32
+Available at: http://forge.novell.com/modules/xfmod/project/?monowin32
+
+It contains the mono runtime and gtk# bindings
+
+* NSIS 2.31 install system
+
+To build the installer
+
+-- Files need it
+
+Since we do not use ./configure there are a few files that we should
+generate manually and that there are at subdirectory src/
+
+* A built Defines.cs for the win32 build
+* build.bat that builds the application
+
+At /installer you have
+
+* gbrainy.nsi that is the NSI gbrainy installer project
+* gbrainy.bat the batch used to launch gbrainy
+
+-- Installer directory structure
+
+-- Todo (things to do someday)
+
+* Assembly.cs
+* Application icon
Added: trunk/platforms/win32/installer/gbrainy.bat
==============================================================================
--- (empty file)
+++ trunk/platforms/win32/installer/gbrainy.bat Sat Mar 1 19:03:22 2008
@@ -0,0 +1,7 @@
+ echo off
+echo Running gbrainy
+set PATH=C:\mono\MonoX-1.2.1\bin;%PATH%
+set GTK_BASEPATH=C:\mono\MonoX-1.2.1
+set PKG_CONFIG_PATH=C:\mono\MonoX-1.2.1\lib\pkgconfig
+set GNOME_PATH=C:\mono\MonoX-1.2.1
+mono gbrainy.exe
\ No newline at end of file
Added: trunk/platforms/win32/installer/gbrainy.nsi
==============================================================================
--- (empty file)
+++ trunk/platforms/win32/installer/gbrainy.nsi Sat Mar 1 19:03:22 2008
@@ -0,0 +1,151 @@
+; Script generated by the HM NIS Edit Script Wizard.
+
+; HM NIS Edit Wizard helper defines
+!define PRODUCT_NAME "gbrainy"
+!define PRODUCT_VERSION "0.54"
+!define PRODUCT_WEB_SITE "http://live.gnome.org/gbrainy"
+!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\gbrainy.exe"
+!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
+!define PRODUCT_UNINST_ROOT_KEY "HKLM"
+
+; Script generated by the HM NIS Edit Script Wizard.
+!include WordFunc.nsh
+!include LogicLib.nsh
+
+; MUI 1.67 compatible ------
+!include "MUI.nsh"
+
+; MUI Settings
+!define MUI_ABORTWARNING
+!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
+!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
+
+
+; Language Selection Dialog Settings
+!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
+!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
+!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"
+
+; Welcome page
+!insertmacro MUI_PAGE_WELCOME
+; License page
+!insertmacro MUI_PAGE_LICENSE "..\topack\COPYING"
+; Directory page
+!insertmacro MUI_PAGE_DIRECTORY
+; Instfiles page
+!insertmacro MUI_PAGE_INSTFILES
+; Finish page
+!insertmacro MUI_PAGE_FINISH
+
+; Uninstaller pages
+!insertmacro MUI_UNPAGE_INSTFILES
+
+; Language files
+!insertmacro MUI_LANGUAGE "Catalan"
+!insertmacro MUI_LANGUAGE "English"
+!insertmacro MUI_LANGUAGE "French"
+!insertmacro MUI_LANGUAGE "Galician"
+!insertmacro MUI_LANGUAGE "German"
+!insertmacro MUI_LANGUAGE "Italian"
+!insertmacro MUI_LANGUAGE "Spanish"
+
+; MUI end ------
+
+Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
+OutFile "Setup.exe"
+InstallDir "$PROGRAMFILES\gbrainy"
+InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
+ShowInstDetails show
+ShowUnInstDetails show
+
+
+Function .onInit
+ !insertmacro MUI_LANGDLL_DISPLAY
+
+FunctionEnd
+
+
+Section "MainSection" SEC01
+
+ SetOverwrite ifnewer
+
+ SetOutPath "$INSTDIR"
+ File "..\topack\mono-1.2.1-gtksharp-2.8.3-win32-exp-0.0.exe"
+ ExecWait "$INSTDIR\mono-1.2.1-gtksharp-2.8.3-win32-exp-0.0.exe /silent"
+ Delete "$INSTDIR\mono-1.2.1-gtksharp-2.8.3-win32-exp-0.0.exe"
+
+ SetOutPath "$INSTDIR\locale\ca\LC_MESSAGES\"
+ File "/oname=gbrainy.mo" "..\topack\locale\ca.gmo"
+
+ SetOutPath "$INSTDIR\locale\es\LC_MESSAGES\"
+ File "/oname=gbrainy.mo" "..\topack\locale\es.gmo"
+
+ SetOutPath "$INSTDIR\locale\de\LC_MESSAGES\"
+ File "/oname=gbrainy.mo" "..\topack\locale\de.gmo"
+
+ SetOutPath "$INSTDIR\locale\fr\LC_MESSAGES\"
+ File "/oname=gbrainy.mo" "..\topack\locale\fr.gmo"
+
+ SetOutPath "$INSTDIR\locale\nl\LC_MESSAGES\"
+ File "/oname=gbrainy.mo" "..\topack\locale\nl.gmo"
+
+ SetOutPath "$INSTDIR"
+ File "..\topack\gbrainy.exe"
+ File "..\topack\logic-games-80.png"
+ File "..\topack\memory-games-80.png"
+ File "..\topack\math-games-80.png"
+ File "..\topack\gbrainy.bat"
+
+
+ CreateDirectory "$SMPROGRAMS\gbrainy"
+ CreateShortCut "$SMPROGRAMS\gbrainy\gbrainy.lnk" "$INSTDIR\gbrainy.bat"
+ CreateShortCut "$DESKTOP\gbrainy.lnk" "$INSTDIR\gbrainy.bat"
+
+SectionEnd
+
+
+Section -AdditionalIcons
+ WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
+ CreateShortCut "$SMPROGRAMS\gbrainy\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
+ CreateShortCut "$SMPROGRAMS\gbrainy\Uninstall.lnk" "$INSTDIR\uninst.exe"
+SectionEnd
+
+Section -Post
+ WriteUninstaller "$INSTDIR\uninst.exe"
+ WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\gbrainy.exe"
+ WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
+ WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
+ WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\gbrainy.exe"
+ WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
+ WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
+SectionEnd
+
+
+Function un.onUninstSuccess
+ HideWindow
+ MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was successfully removed from your computer."
+FunctionEnd
+
+Function un.onInit
+!insertmacro MUI_UNGETLANGUAGE
+ MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2
+ Abort
+FunctionEnd
+
+Section Uninstall
+ Delete "$INSTDIR\${PRODUCT_NAME}.url"
+ Delete "$INSTDIR\uninst.exe"
+ Delete "$INSTDIR\gbrainy.exe"
+
+ Delete "$SMPROGRAMS\gbrainy\Uninstall.lnk"
+ Delete "$SMPROGRAMS\gbrainy\Website.lnk"
+ Delete "$DESKTOP\gbrainy.lnk"
+ Delete "$SMPROGRAMS\gbrainy\gbrainy.lnk"
+
+ RMDir "$SMPROGRAMS\gbrainy"
+ RMDir "$INSTDIR"
+
+ DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
+ DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
+ SetAutoClose true
+SectionEnd
\ No newline at end of file
Added: trunk/platforms/win32/src/Defines.cs
==============================================================================
--- (empty file)
+++ trunk/platforms/win32/src/Defines.cs Sat Mar 1 19:03:22 2008
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2007 Jordi Mas i HernÃndez <jmas softcatala org>
+ *
+ * This program 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 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 this program; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+using System;
+using System.Reflection;
+
+public class Defines
+{
+ public static string VERSION = "0.54";
+ public const string GNOME_LOCALE_DIR = "locale/";
+ public static string DATA_DIR = "";
+}
+
+
+
Added: trunk/platforms/win32/src/build.bat
==============================================================================
--- (empty file)
+++ trunk/platforms/win32/src/build.bat Sat Mar 1 19:03:22 2008
@@ -0,0 +1,5 @@
+copy ..\data\*80*.png .
+gmcs -target:winexe -out:gbrainy.exe -nowarn:0169 ArrayListIndicesRandom.cs GameManager.cs PuzzleCirclesRectangle.cs Game.cs PuzzleFigures.cs PuzzleMatrixNumbers.cs PuzzleMoveFigure.cs PuzzlePencil.cs PuzzleSquares.cs PuzzleTriangles.cs PuzzleCoverPercentage.cs PuzzleNumericSequence.cs PuzzleAlphabeticSequence.cs PuzzleSquareDots.cs PuzzleNumericRelation.cs PuzzleNextFigure.cs PuzzleSquareSheets.cs CalculationArithmetical.cs MemoryColouredFigures.cs GameSession.cs MemoryNumbers.cs Memory.cs MemoryColouredText.cs PuzzleCube.cs MemoryWords.cs PuzzleFigureLetter.cs CustomGameDialog.cs PuzzleDivideCircle.cs CalculationGreatestDivisor.cs CalculationTwoNumbers.cs CalculationWhichNumber.cs PuzzleMatrixGroups.cs PuzzleBalance.cs PuzzlePairs.cs PuzzleOstracism.cs MemoryCountDots.cs CalculationOperator.cs PuzzleFigurePattern.cs ColorPalette.cs PuzzlePeopleTable.cs GameDrawingArea.cs MemoryFigures.cs PuzzleMissingSlice.cs PuzzleLines.cs PuzzleTetris.cs PreferencesDialog.cs PuzzleMissin
gPiece.cs MemoryIndications.cs PuzzleMostInCommon.cs PuzzleBuildTriangle.cs CairoContextEx.cs PuzzleClocks.cs gbrainy.cs Defines.cs -pkg:gtk-sharp-2.0 -pkg:gnome-sharp-2.0 -pkg:glade-sharp-2.0 -r:Mono.Cairo.dll -r:Mono.Posix -resource:gbrainy.glade -resource:../data/resume-32.png -resource:../data/endgame-32.png -resource:../data/pause-32.png -resource:../data/allgames-32.png -resource:../data/gbrainy.png -resource:../data/logic-games-32.png -resource:../data/math-games-32.png -resource:../data/memory-games-32.png -resource:../data/gbrainy.svg
+
+
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]