Removed old Microsoft Visual Studio C++ files (in 'visualc').
Created a new "win32" folder with (most of the) things from 'visualc'
that are still being used ('resource.h', 'resources.rc' and 'tuxpaint.iss').
This commit is contained in:
parent
c7652d3b89
commit
5ee55b039c
10 changed files with 7 additions and 609 deletions
|
|
@ -1,124 +0,0 @@
|
|||
Building Tux Paint using MSVC++6.0
|
||||
==================================
|
||||
|
||||
Compiling Tux Paint
|
||||
-------------------
|
||||
You will need the tuxpaint-devel-win32.zip archive which contains the Release
|
||||
and Debug .DLL and .LIB files and all headers required to build Tux Paint on
|
||||
Windows.
|
||||
|
||||
The source-code and binaries are available here:
|
||||
[somewhere on the Tux Paint web site]
|
||||
|
||||
Then set up an area of your disk something like this:
|
||||
|
||||
C:\dev\tuxpaint\ # cvs files here
|
||||
C:\dev\tuxpaint-config\ # cvs files here
|
||||
C:\dev\lib\ # release dll, lib
|
||||
C:\dev\libd\ # debug dll, lib
|
||||
C:\dev\include\ # header files
|
||||
|
||||
You need Python 2.3.3 or later installed (might work with earlier versions).
|
||||
Copy 'iconv.dll', 'libintl.dll' and 'msgfmt.exe' into the visualc directory.
|
||||
Using a DOS box or Command-Prompt cd into visualc dir and run
|
||||
'python prebuild.py'. This will format the text documentation, build the
|
||||
.mo I18N files, and build a filelist used by the NSIS installer.
|
||||
|
||||
Copy the following DLLs from lib/libd into Release/Debug output
|
||||
directories respectively:
|
||||
|
||||
iconv.dll
|
||||
jpeg.dll
|
||||
libintl.dll
|
||||
libpng1.dll
|
||||
SDL.dll
|
||||
sdl_image.dll
|
||||
SDL_mixer.dll
|
||||
SDL_ttf.dll
|
||||
smpeg.dll
|
||||
zlib.dll
|
||||
|
||||
Double click on the 'TuxPaint.dsw' workspace file which will start-up
|
||||
Visual Studio.
|
||||
|
||||
Select 'Batch Build...' from the 'Build' menu and click on "Rebuild All".
|
||||
|
||||
If you want to run Tux Paint from inside Visual Studio (usefull!) then you
|
||||
need to edit tuxpaint.c at around line 139:
|
||||
|
||||
/* Set this to 0 during developement and testing in Visual-Studio
|
||||
Set this to 1 to make the final executable */
|
||||
|
||||
#if 1
|
||||
|
||||
#define DOC_PREFIX "docs/"
|
||||
#define DATA_PREFIX "data/"
|
||||
#define LOCALEDIR "locale"
|
||||
|
||||
#else
|
||||
|
||||
#define DOC_PREFIX "../../docs/"
|
||||
#define DATA_PREFIX "../../data/"
|
||||
#define LOCALEDIR "../../locale"
|
||||
|
||||
#endif /* 1/0 */
|
||||
|
||||
Before you use the NSIS installer make sure that this is changed back to a 1
|
||||
and that you have rebuilt the project.
|
||||
|
||||
In addition, you need to set the working directory for the project: Select
|
||||
Project|Settings from the menu and select the Debug tab (even if you want
|
||||
to run the Release version). If you have already built the executables, you
|
||||
will be able to cut-n-paste the path from the "Executable for debug session:"
|
||||
box into the "" box.
|
||||
|
||||
Note: you can also supply command-line arguments to Tux Paint here - useful
|
||||
for testing the different languages quickly.
|
||||
|
||||
Unfortunately, due to the layout of files in CVS, the stamps, starter
|
||||
images, custom local fonts and locales, aren't in the right place to allow Tux
|
||||
Paint to find them. This will probably be fixed at some point, but for now just
|
||||
move the folders about. DONT try and update cvs, and DONT try and build an
|
||||
installer if you have moved the folders. The technique I'm using at the moment
|
||||
is to have a 'cvs' and a 'build' copy of the whole thing - ugly and error prone,
|
||||
but it does allow testing and debugging to take place easily.
|
||||
|
||||
|
||||
Compiling Tux Paint Config
|
||||
--------------------------
|
||||
This is the simpler of the two projects, and depends on the FLTK library,
|
||||
which is statically linked, and 'libintl.dll' which depends on 'iconv.dll'.
|
||||
In normal use, these DLLs are shared with Tux Paint itself.
|
||||
|
||||
Copy the following DLLs from lib/libd into Release/Debug output
|
||||
directories respectively:
|
||||
|
||||
iconv.dll
|
||||
libintl.dll
|
||||
|
||||
As before, use a DOS box to run the command 'python prebuild.py', then click
|
||||
on the 'tuxpaintconfig.dsw' project workspace file.
|
||||
|
||||
Select 'Batch Build...' from the 'Build' menu and click on "Rebuild All".
|
||||
|
||||
|
||||
NSIS
|
||||
----
|
||||
You need to have downloaded and installed NSIS-2 from here:
|
||||
http://nsis.sourceforge.net/
|
||||
|
||||
The NSIS script, 'tuxpaint.nsi', requires that both tuxpaint and
|
||||
tuxpaint-config have already been compiled - I haven't put together any kind
|
||||
of 'Make' system here.
|
||||
|
||||
The easiest way of running the script is to right-click on it in the Windows
|
||||
Explorer and choose "Compile NSIS Script". The compression defaults to
|
||||
LZMA, which consistantly gaves the best results (smallest installer).
|
||||
|
||||
The first few lines in 'tuxpaint.nsi' currently need manual editing to make
|
||||
sure that the installer has the right name (this keeps bill happy:-)
|
||||
|
||||
John Popplewell.
|
||||
john@johnnypops.demon.co.uk
|
||||
http://www.johnnypops.demon.co.uk/
|
||||
$Id$
|
||||
|
|
@ -1,396 +0,0 @@
|
|||
# Microsoft Developer Studio Project File - Name="TuxPaint" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Console Application" 0x0103
|
||||
|
||||
CFG=TuxPaint - Win32 Debug
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "TuxPaint.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "TuxPaint.mak" CFG="TuxPaint - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "TuxPaint - Win32 Release" (based on "Win32 (x86) Console Application")
|
||||
!MESSAGE "TuxPaint - Win32 Debug" (based on "Win32 (x86) Console Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "TuxPaint - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release"
|
||||
# PROP Intermediate_Dir "Release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /MD /W4 /O1 /I "..\..\include" /I "..\visualc" /I "..\src\mouse" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /FD /c
|
||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
||||
# ADD RSC /l 0x809 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
|
||||
# ADD LINK32 iconv.lib libpng1.lib libintl.lib sdl.lib sdlmain.lib sdl_mixer.lib sdl_image.lib sdl_ttf.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386 /libpath:"..\..\lib"
|
||||
# SUBTRACT LINK32 /pdb:none
|
||||
|
||||
!ELSEIF "$(CFG)" == "TuxPaint - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /MDd /W4 /Zi /Od /Op /I "..\..\include" /I "..\visualc" /I "..\src\mouse" /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /FD /GZ /c
|
||||
# ADD BASE RSC /l 0x809 /d "_DEBUG"
|
||||
# ADD RSC /l 0x809 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 iconv.lib libpng1.lib libintl.lib sdl.lib sdlmain.lib sdl_mixer.lib sdl_image.lib sdl_ttf.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept /libpath:"..\..\libd"
|
||||
# SUBTRACT LINK32 /pdb:none
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "TuxPaint - Win32 Release"
|
||||
# Name "TuxPaint - Win32 Debug"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\hq4x.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\hqxx.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\tuxpaint.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\win32_dirent.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\win32_print.c
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\src\mouse\arrow-mask.xbm"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\mouse\arrow.xbm
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=D:\Dx8sdk\include\basetsd.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\begin_code.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\src\mouse\brush-mask.xbm"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\mouse\brush.xbm
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\close_code.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\colors.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\src\mouse\crosshair-mask.xbm"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\mouse\crosshair.xbm
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\src\mouse\down-mask.xbm"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\mouse\down.xbm
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\great.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\src\mouse\hand-mask.xbm"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\mouse\hand.xbm
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\hq3x.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\hq4x.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\hqxx.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\src\mouse\insertion-mask.xbm"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\mouse\insertion.xbm
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\libintl.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\magic.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\png.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\pngconf.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\src\mouse\rotate-mask.xbm"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\mouse\rotate.xbm
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_active.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_audio.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_byteorder.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_cdrom.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_error.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_events.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_getenv.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_image.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_joystick.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_keyboard.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_keysym.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_main.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_mixer.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_mouse.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_mutex.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_quit.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_rwops.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_syswm.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_timer.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_ttf.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_types.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_version.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\SDL_video.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\shapes.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\sounds.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\src\mouse\tiny-mask.xbm"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\mouse\tiny.xbm
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\tip_tux.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\titles.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\tools.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\src\mouse\up-mask.xbm"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\mouse\up.xbm
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\src\mouse\wand-mask.xbm"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\mouse\wand.xbm
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\src\mouse\watch-mask.xbm"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\mouse\watch.xbm
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\win32_dirent.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\src\win32_print.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\zconf.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\zlib.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Resource Files"
|
||||
|
||||
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE="..\data\images\icon-win32.ico"
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\resources.rc
|
||||
# End Source File
|
||||
# End Group
|
||||
# End Target
|
||||
# End Project
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "TuxPaint"=".\TuxPaint.dsp" - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
|
|
@ -1,59 +0,0 @@
|
|||
[Settings]
|
||||
NumFields=6
|
||||
|
||||
[Field 1]
|
||||
Type=LABEL
|
||||
Text=" Start Tux Paint with these options: "
|
||||
Left=0
|
||||
Right=-1
|
||||
Top=0
|
||||
Bottom=35
|
||||
|
||||
[Field 2]
|
||||
Type=GroupBox
|
||||
Left=50
|
||||
Right=-50
|
||||
Top=36
|
||||
Bottom=78
|
||||
Text=" Display: "
|
||||
|
||||
[Field 3]
|
||||
Type=LABEL
|
||||
Text=Mode:
|
||||
Left=58
|
||||
Right=100
|
||||
Top=46
|
||||
Bottom=55
|
||||
State=1
|
||||
Flags=NOTABSTOP
|
||||
|
||||
[Field 4]
|
||||
Type=DROPLIST
|
||||
ListItems=Windowed|Full-Screen
|
||||
State=Full-Screen
|
||||
Left=115
|
||||
Right=-55
|
||||
Top=44
|
||||
Bottom=80
|
||||
Flags=NOTABSTOP
|
||||
|
||||
[Field 5]
|
||||
Type=LABEL
|
||||
Text=Resolution:
|
||||
Left=58
|
||||
Right=100
|
||||
Top=62
|
||||
Bottom=71
|
||||
State=1
|
||||
Flags=NOTABSTOP
|
||||
|
||||
[Field 6]
|
||||
Type=DROPLIST
|
||||
ListItems=640x480|800x600
|
||||
State=800x600
|
||||
Left=115
|
||||
Right=-55
|
||||
Top=60
|
||||
Bottom=96
|
||||
Flags=NOTABSTOP
|
||||
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Developer Studio generated include file.
|
||||
// Used by resources.rc
|
||||
//
|
||||
#define IDI_ICON1 101
|
||||
#define IDD_ABORTDLG 104
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 102
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
||||
|
|
@ -1,67 +0,0 @@
|
|||
//Microsoft Developer Studio generated resource script.
|
||||
//
|
||||
#include <winver.h>
|
||||
#include "resource.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.K.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG)
|
||||
#ifdef _WIN32
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Icon
|
||||
//
|
||||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
IDI_ICON1 ICON DISCARDABLE "data/images/icon-win32.ico"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 0,9,18,0
|
||||
PRODUCTVERSION 0,9,18,0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x21L
|
||||
#else
|
||||
FILEFLAGS 0x20L
|
||||
#endif
|
||||
FILEOS 0x40004L
|
||||
FILETYPE 0x1L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "Comments", "\0"
|
||||
VALUE "CompanyName", "New Breed Software\0"
|
||||
VALUE "FileDescription", "Tux Paint - Interactive Paint Program.\0"
|
||||
VALUE "FileVersion", "0.9.18\0"
|
||||
VALUE "InternalName", "Tux Paint\0"
|
||||
VALUE "LegalCopyright", "Copyright (C) 2007 by Bill Kendrick\0"
|
||||
VALUE "LegalTrademarks", "\0"
|
||||
VALUE "OriginalFilename", "TuxPaint.exe\0"
|
||||
VALUE "PrivateBuild", "\0"
|
||||
VALUE "ProductName", "Tux Paint\0"
|
||||
VALUE "ProductVersion", "0.9.18\0"
|
||||
VALUE "SpecialBuild", "win32 build by John Popplewell\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
|
||||
#endif // English (U.K.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
@ -1,397 +0,0 @@
|
|||
;
|
||||
; This script needs the InnoSetup PreProcessor (ISPP) to compile correctly.
|
||||
; I downloaded a combined 'QuickStart Pack' from here:
|
||||
; http://www.jrsoftware.org/isdl.php#qsp
|
||||
;
|
||||
; The version string is extracted from the executable.
|
||||
;
|
||||
|
||||
#define PublisherName "New Breed Software"
|
||||
#define PublisherURL "{code:MyPublisherURL}"
|
||||
|
||||
#define AppName "Tux Paint"
|
||||
#define AppDirName "TuxPaint"
|
||||
#define AppPrefix "tuxpaint"
|
||||
#define AppRegKey AppDirName
|
||||
#define AppRegValue "Install_Dir"
|
||||
#define AppRegVersion "Version"
|
||||
|
||||
#define AppGroupName AppName
|
||||
#define AppExe AppPrefix+".exe"
|
||||
#define AppConfigName AppName+" Config"
|
||||
#define AppConfigExe AppPrefix+"-config.exe"
|
||||
#define AppReadme "{code:MyReadme}"
|
||||
#define AppLicence "{code:MyLicence}"
|
||||
|
||||
#define BdistDir ".\bdist"
|
||||
#define AppVersion GetStringFileInfo(BdistDir+"\"+AppExe, "FileVersion")
|
||||
|
||||
[Setup]
|
||||
AppName={#AppName}
|
||||
AppVerName={#AppName} {#AppVersion}
|
||||
AppPublisher={#PublisherName}
|
||||
AppPublisherURL={#PublisherURL}
|
||||
AppSupportURL={#PublisherURL}
|
||||
AppUpdatesURL={#PublisherURL}
|
||||
DefaultDirName={pf}\{#AppDirName}
|
||||
DefaultGroupName={#AppGroupName}
|
||||
LicenseFile={#BdistDir}\docs\COPYING.txt
|
||||
OutputDir=.\
|
||||
OutputBaseFilename={#AppPrefix}-{#AppVersion}-win32-installer
|
||||
SetupIconFile={#BdistDir}\data\images\tuxpaint-installer.ico
|
||||
Compression=lzma
|
||||
SolidCompression=yes
|
||||
|
||||
[Languages]
|
||||
Name: "eng"; MessagesFile: "compiler:Default.isl"
|
||||
Name: "bra"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl"; LicenseFile: {#BdistDir}\docs\pt_br\COPYING_pt_BR.txt;
|
||||
Name: "cat"; MessagesFile: "compiler:Languages\Catalan.isl"; LicenseFile: {#BdistDir}\docs\ca\COPYING.txt;
|
||||
Name: "cze"; MessagesFile: "compiler:Languages\Czech.isl"; LicenseFile: {#BdistDir}\docs\cs\COPYING.txt;
|
||||
Name: "dan"; MessagesFile: "compiler:Languages\Danish.isl"; LicenseFile: {#BdistDir}\docs\da\COPYING.txt;
|
||||
Name: "dut"; MessagesFile: "compiler:Languages\Dutch.isl"; LicenseFile: {#BdistDir}\docs\nl\COPYING_nl.txt;
|
||||
Name: "fre"; MessagesFile: "compiler:Languages\French.isl"; LicenseFile: {#BdistDir}\docs\fr\COPIER.txt;
|
||||
Name: "ger"; MessagesFile: "compiler:Languages\German.isl"; LicenseFile: {#BdistDir}\docs\de\KOPIE.txt;
|
||||
Name: "hun"; MessagesFile: "compiler:Languages\Hungarian.isl"
|
||||
Name: "ita"; MessagesFile: "compiler:Languages\Italian.isl"; LicenseFile: {#BdistDir}\docs\it\COPIATURA.txt;
|
||||
Name: "nor"; MessagesFile: "compiler:Languages\Norwegian.isl"
|
||||
Name: "pol"; MessagesFile: "compiler:Languages\Polish.isl"; LicenseFile: {#BdistDir}\docs\pl\LICENCJA-GNU.txt;
|
||||
Name: "por"; MessagesFile: "compiler:Languages\Portuguese.isl"
|
||||
Name: "rus"; MessagesFile: "compiler:Languages\Russian.isl"
|
||||
Name: "slo"; MessagesFile: "compiler:Languages\Slovenian.isl"
|
||||
Name: "esp"; MessagesFile: "compiler:Languages\Spanish.isl"; LicenseFile: {#BdistDir}\docs\es\COPIADO.txt;
|
||||
|
||||
; Additional, Candidate official translations
|
||||
Name: "chs"; MessagesFile: "compiler:Languages\ChineseSimp-11-5.1.0.isl"
|
||||
|
||||
; Additional, Unofficial translations
|
||||
Name: "gal"; MessagesFile: "compiler:Languages\Galician-2-5.1.11.isl"
|
||||
Name: "cht"; MessagesFile: "compiler:Languages\ChineseTrad-2-5.1.11.isl"
|
||||
|
||||
[Tasks]
|
||||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||
|
||||
[Files]
|
||||
Source: "{#BdistDir}\jpeg.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#BdistDir}\libcairo-2.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#BdistDir}\libfreetype-6.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#BdistDir}\libiconv-2.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#BdistDir}\libintl-8.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#BdistDir}\libogg-0.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#BdistDir}\libpng12.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#BdistDir}\libvorbis-0.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#BdistDir}\libvorbisfile-3.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#BdistDir}\libxml2-2.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#BdistDir}\SDL.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#BdistDir}\SDL_image.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#BdistDir}\SDL_mixer.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#BdistDir}\SDL_ttf.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#BdistDir}\svg.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#BdistDir}\svg-cairo.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#BdistDir}\tuxpaint.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#BdistDir}\tuxpaint-config.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#BdistDir}\zlib1.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "{#BdistDir}\data\*"; DestDir: "{app}\data"; Excludes: "CVS"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
Source: "{#BdistDir}\docs\*"; DestDir: "{app}\docs"; Excludes: "CVS,Makefile,*~"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
Source: "{#BdistDir}\im\*"; DestDir: "{app}\im"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
Source: "{#BdistDir}\locale\*"; DestDir: "{app}\locale"; Excludes: "CVS"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
Source: "{#BdistDir}\..\libdocs\*"; DestDir: "{app}\docs\libdocs"; Excludes: "CVS,Makefile,*~"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||||
|
||||
[INI]
|
||||
Filename: "{app}\{#AppName}.url"; Section: "InternetShortcut"; Key: "URL"; String: "{#PublisherURL}"
|
||||
|
||||
[Icons]
|
||||
Name: "{code:MyGroupDir}\{#AppGroupName}\Configure {#AppName}"; Filename: "{app}\{#AppConfigExe}"; Comment: "{#AppConfigName}"
|
||||
Name: "{code:MyGroupDir}\{#AppGroupName}\{#AppName} (Full Screen)"; Filename: "{app}\{#AppExe}"; Parameters: "--fullscreen"; Comment: "Start {#AppName} in Fullscreen mode"
|
||||
Name: "{code:MyGroupDir}\{#AppGroupName}\{#AppName} (Windowed)"; Filename: "{app}\{#AppExe}"; Parameters: "--windowed"; Comment: "Start {#AppName} in a Window"
|
||||
Name: "{code:MyGroupDir}\{#AppGroupName}\Readme"; Filename: "{app}\{#AppReadme}"; Comment: "View ReadMe"
|
||||
Name: "{code:MyGroupDir}\{#AppGroupName}\Licence"; Filename: "{app}\{#AppLicence}"; Comment: "View License"
|
||||
Name: "{code:MyGroupDir}\{#AppGroupName}\{cm:ProgramOnTheWeb,{#AppName}}"; Filename: "{app}\{#AppName}.url"; Comment: "{cm:ProgramOnTheWeb,{#AppName}}"
|
||||
Name: "{code:MyGroupDir}\{#AppGroupName}\{cm:UninstallProgram,{#AppName}}"; Filename: "{uninstallexe}"; IconFilename: "{app}\data\images\tuxpaint-installer.ico"; Comment: "Remove {#AppName}"
|
||||
Name: "{code:MyDesktopDir}\{#AppName}"; Filename: "{app}\{#AppExe}"; Tasks: desktopicon
|
||||
|
||||
[Registry]
|
||||
Root: HKLM; Subkey: "SOFTWARE\{#AppRegKey}"; Flags: uninsdeletekey; ValueName: "{#AppRegValue}"; ValueType: string; ValueData: "{app}"; Check: AllUsers;
|
||||
Root: HKCU; Subkey: "SOFTWARE\{#AppRegKey}"; Flags: uninsdeletekey; ValueName: "{#AppRegValue}"; ValueType: string; ValueData: "{app}"; Check: ThisUserOnly;
|
||||
Root: HKLM; Subkey: "SOFTWARE\{#AppRegKey}"; Flags: uninsdeletekey; ValueName: "{#AppRegVersion}"; ValueType: string; ValueData: "{#AppVersion}"; Check: AllUsers;
|
||||
Root: HKCU; Subkey: "SOFTWARE\{#AppRegKey}"; Flags: uninsdeletekey; ValueName: "{#AppRegVersion}"; ValueType: string; ValueData: "{#AppVersion}"; Check: ThisUserOnly;
|
||||
|
||||
[Run]
|
||||
Filename: "{app}\{#AppReadme}"; Description: "View the README file"; Flags: postinstall shellexec
|
||||
Filename: "{app}\{#AppConfigExe}"; Description: "{cm:LaunchProgram,{#AppConfigName}}"; Flags: nowait postinstall skipifsilent
|
||||
|
||||
[UninstallDelete]
|
||||
Type: files; Name: "{app}\{#AppName}.url"
|
||||
|
||||
[code]
|
||||
const
|
||||
CSIDL_PROFILE = $0028;
|
||||
CSIDL_COMMON_PROGRAMS = $0017;
|
||||
CSIDL_COMMON_DESKTOPDIRECTORY = $0019;
|
||||
var
|
||||
InstallTypePageID: Integer;
|
||||
CheckListBox2: TNewCheckListBox;
|
||||
|
||||
function Restricted(): Boolean;
|
||||
begin
|
||||
Result := not (IsAdminLoggedOn() or IsPowerUserLoggedOn())
|
||||
end;
|
||||
|
||||
function NotRestricted(): Boolean;
|
||||
begin
|
||||
Result := not Restricted()
|
||||
end;
|
||||
|
||||
function Is9xME(): Boolean;
|
||||
begin
|
||||
Result := not UsingWinNT()
|
||||
end;
|
||||
|
||||
function CurrentUserOnly(): Boolean;
|
||||
begin
|
||||
Result := CheckListBox2.Checked[2]
|
||||
end;
|
||||
|
||||
function ThisUserOnly(): Boolean;
|
||||
begin
|
||||
Result := (Restricted() or CurrentUserOnly()) and UsingWinNT()
|
||||
end;
|
||||
|
||||
function AllUsers(): Boolean;
|
||||
begin
|
||||
Result := not ThisUserOnly()
|
||||
end;
|
||||
|
||||
function MyAppDir(): String;
|
||||
var
|
||||
Path: String;
|
||||
begin
|
||||
Path := ExpandConstant('{reg:HKLM\SOFTWARE\{#AppRegKey},{#AppRegValue}|{pf}\{#AppDirName}}');
|
||||
if ThisUserOnly() then
|
||||
begin
|
||||
Path := ExpandConstant('{reg:HKCU\SOFTWARE\{#AppRegKey},{#AppRegValue}|__MissingKey__}');
|
||||
if Path = '__MissingKey__' then
|
||||
begin
|
||||
Path := GetShellFolderByCSIDL(CSIDL_PROFILE, True);
|
||||
if Path = '' then
|
||||
Path := RemoveBackslashUnlessRoot(ExtractFilePath(ExpandConstant('{userdocs}')));
|
||||
Path := Path + '\Programs\{#AppDirName}'
|
||||
end
|
||||
end
|
||||
Result := Path
|
||||
end;
|
||||
|
||||
function MyGroupDir(Default: String): String;
|
||||
var
|
||||
Path: String;
|
||||
begin
|
||||
if ThisUserOnly() then
|
||||
Path := ExpandConstant('{userprograms}')
|
||||
else
|
||||
Path := ExpandConstant('{commonprograms}')
|
||||
Result := Path
|
||||
end;
|
||||
|
||||
function MyDesktopDir(Default: String): String;
|
||||
var
|
||||
Path: String;
|
||||
begin
|
||||
if ThisUserOnly() then
|
||||
Path := ExpandConstant('{userdesktop}')
|
||||
else
|
||||
Path := ExpandConstant('{commondesktop}')
|
||||
Result := Path
|
||||
end;
|
||||
|
||||
procedure CreateTheWizardPages;
|
||||
var
|
||||
Page: TWizardPage;
|
||||
Enabled, InstallAllUsers: Boolean;
|
||||
begin
|
||||
Page := CreateCustomPage(wpLicense, 'Choose Installation Type', 'Who do you want to be able to use this program?');
|
||||
InstallTypePageID := Page.ID;
|
||||
Enabled := NotRestricted();
|
||||
InstallAllUsers := NotRestricted();
|
||||
CheckListBox2 := TNewCheckListBox.Create(Page);
|
||||
CheckListBox2.Width := Page.SurfaceWidth;
|
||||
CheckListBox2.Height := ScaleY(97);
|
||||
CheckListBox2.BorderStyle := bsNone;
|
||||
CheckListBox2.ParentColor := True;
|
||||
CheckListBox2.MinItemHeight := WizardForm.TasksList.MinItemHeight;
|
||||
CheckListBox2.ShowLines := False;
|
||||
CheckListBox2.WantTabs := True;
|
||||
CheckListBox2.Parent := Page.Surface;
|
||||
CheckListBox2.AddGroup('Installation Type:', '', 0, nil);
|
||||
CheckListBox2.AddRadioButton('All Users', '', 0, InstallAllUsers, Enabled, nil);
|
||||
CheckListBox2.AddRadioButton('Current User Only', '', 0, not InstallAllUsers, True, nil);
|
||||
end;
|
||||
|
||||
procedure CurPageChanged(CurPageID: Integer);
|
||||
begin
|
||||
if CurPageID = wpSelectDir then
|
||||
begin
|
||||
WizardForm.DirEdit.Text := MyAppDir();
|
||||
end
|
||||
end;
|
||||
|
||||
function ShouldSkipPage(PageID: Integer): Boolean;
|
||||
begin
|
||||
Result := (PageID = InstallTypePageID) and Is9xME();
|
||||
end;
|
||||
|
||||
procedure InitializeWizard();
|
||||
begin
|
||||
CreateTheWizardPages;
|
||||
end;
|
||||
|
||||
function Lang2Gettext(): String;
|
||||
var
|
||||
lang, lc: String;
|
||||
begin
|
||||
lang := ActiveLanguage();
|
||||
|
||||
if lang = 'bra' then
|
||||
lc := 'pt_br'
|
||||
else
|
||||
if lang = 'cat' then
|
||||
lc := 'ca'
|
||||
else
|
||||
if lang = 'cze' then
|
||||
lc := 'cs'
|
||||
else
|
||||
if lang = 'dan' then
|
||||
lc := 'da'
|
||||
else
|
||||
if lang = 'dut' then
|
||||
lc := 'nl'
|
||||
else
|
||||
if lang = 'fre' then
|
||||
lc := 'fr'
|
||||
else
|
||||
if lang = 'ger' then
|
||||
lc := 'de'
|
||||
else
|
||||
if lang = 'hun' then
|
||||
lc := 'hu'
|
||||
else
|
||||
if lang = 'ita' then
|
||||
lc := 'it'
|
||||
else
|
||||
if lang = 'nor' then
|
||||
lc := 'nn'
|
||||
else
|
||||
if lang = 'pol' then
|
||||
lc := 'pl'
|
||||
else
|
||||
if lang = 'por' then
|
||||
lc := 'pt'
|
||||
else
|
||||
if lang = 'rus' then
|
||||
lc := 'ru'
|
||||
else
|
||||
if lang = 'slo' then
|
||||
lc := 'sk'
|
||||
else
|
||||
if lang = 'chs' then
|
||||
lc := 'zh_cn'
|
||||
else
|
||||
if lang = 'esp' then
|
||||
lc := 'es'
|
||||
else
|
||||
if lang = 'gal' then
|
||||
lc := 'gl'
|
||||
else
|
||||
if lang = 'cht' then
|
||||
lc := 'zh_tw'
|
||||
else
|
||||
lc := 'en'
|
||||
Result := lc
|
||||
end;
|
||||
|
||||
function MyReadme(Default: String): String;
|
||||
var
|
||||
lang, readme: String;
|
||||
begin
|
||||
lang := Lang2Gettext();
|
||||
|
||||
if lang = 'nl' then
|
||||
readme := 'nl\html\README.html'
|
||||
else
|
||||
if lang = 'fr' then
|
||||
readme := 'fr\html\README1.html'
|
||||
else
|
||||
if lang = 'it' then
|
||||
readme := 'it\html\README.html'
|
||||
else
|
||||
if lang = 'es' then
|
||||
readme := 'es\html\LEEME.html'
|
||||
else
|
||||
if lang = 'gl' then
|
||||
readme := 'gl\html\README.html'
|
||||
else
|
||||
if lang = 'zh_tw' then
|
||||
readme := 'zh_tw\html\README.html'
|
||||
else
|
||||
readme := 'html\README.html'
|
||||
|
||||
Result := 'docs\'+readme
|
||||
end;
|
||||
|
||||
function MyLicence(Default: String): String;
|
||||
var
|
||||
lang, licence: String;
|
||||
begin
|
||||
lang := Lang2Gettext();
|
||||
|
||||
if lang = 'pt_br' then
|
||||
licence := 'pt_br\COPYING_pt_BR.txt'
|
||||
else
|
||||
if lang = 'ca' then
|
||||
licence := 'ca\COPYING.txt'
|
||||
else
|
||||
if lang = 'cs' then
|
||||
licence := 'cs\COPYING.txt'
|
||||
else
|
||||
if lang = 'da' then
|
||||
licence := 'da\COPYING.txt'
|
||||
else
|
||||
if lang = 'nl' then
|
||||
licence := 'nl\COPYING_nl.txt'
|
||||
else
|
||||
if lang = 'fr' then
|
||||
licence := 'fr\COPIER.txt'
|
||||
else
|
||||
if lang = 'de' then
|
||||
licence := 'de\KOPIE.txt'
|
||||
else
|
||||
if lang = 'it' then
|
||||
licence := 'it\COPIATURA.txt'
|
||||
else
|
||||
if lang = 'pl' then
|
||||
licence := 'pl\LICENCJA-GNU.txt'
|
||||
else
|
||||
if lang = 'es' then
|
||||
licence := 'es\COPIADO.txt'
|
||||
else
|
||||
licence := 'COPYING.txt'
|
||||
|
||||
Result := 'docs\'+licence
|
||||
end;
|
||||
|
||||
function MyPublisherURL(Default: String): String;
|
||||
var
|
||||
lang: String;
|
||||
begin
|
||||
lang := Lang2Gettext();
|
||||
|
||||
if lang = 'chs' then
|
||||
lang := 'zh-cn'
|
||||
else
|
||||
if lang = 'cht' then
|
||||
lang := 'zh-tw'
|
||||
|
||||
Result := 'http://www.tuxpaint.org/?lang='+lang
|
||||
end;
|
||||
|
||||
#expr SaveToFile(AddBackslash(SourcePath) + 'Preprocessed.iss')
|
||||
|
||||
|
|
@ -1 +0,0 @@
|
|||
|
||||
Loading…
Add table
Add a link
Reference in a new issue