Added MSVC6.0 project and NSIS installer builder.
'prebuild.py' generates the .mo files, converts the text documents to CRLF format (it only touches the files if they need converting) and builds 'filelist.inc' which is used by NSIS. This avoids including CVS folders.
This commit is contained in:
parent
20c1d5f4b8
commit
236cba1421
9 changed files with 800 additions and 0 deletions
21
visualc/.cvsignore
Normal file
21
visualc/.cvsignore
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
locale
|
||||
debug
|
||||
release
|
||||
filelist.inc
|
||||
*.dll
|
||||
*.DLL
|
||||
*.exe
|
||||
*.EXE
|
||||
*.aps
|
||||
*.APS
|
||||
*.ncb
|
||||
*.NCB
|
||||
*.plg
|
||||
*.PLG
|
||||
*.opt
|
||||
*.OPT
|
||||
*.pyc
|
||||
*.PYC
|
||||
*.pyo
|
||||
*.PYO
|
||||
|
||||
396
visualc/TuxPaint.dsp
Normal file
396
visualc/TuxPaint.dsp
Normal file
|
|
@ -0,0 +1,396 @@
|
|||
# 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" /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 getopt.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 /Z7 /Od /Op /I "..\..\include" /I "..\visualc" /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 getopt.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
|
||||
29
visualc/TuxPaint.dsw
Normal file
29
visualc/TuxPaint.dsw
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
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>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
67
visualc/prebuild.py
Normal file
67
visualc/prebuild.py
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
import sys, re, os, shutil, fnmatch
|
||||
|
||||
def lfcr(file):
|
||||
if os.path.isdir(file):
|
||||
print file, "Directory!"
|
||||
return
|
||||
data = open(file, "rb").read()
|
||||
if '\0' in data:
|
||||
print file, "Binary!"
|
||||
return
|
||||
newdata = re.sub("\r?\n", "\r\n", data)
|
||||
if newdata != data:
|
||||
print "Converting '"+file+"' to CRLF format."
|
||||
f = open(file, "wb")
|
||||
f.write(newdata)
|
||||
f.close()
|
||||
|
||||
|
||||
def makeFolders(path):
|
||||
if not os.path.exists(path):
|
||||
os.makedirs(path)
|
||||
|
||||
|
||||
def po2mo(pfx, input, output):
|
||||
output_path = os.path.join(output,pfx,"LC_MESSAGES")
|
||||
makeFolders(output_path)
|
||||
output_path = os.path.join(output_path,"tuxpaint.mo")
|
||||
os.system("msgfmt.exe -o"+output_path+" "+input+pfx+".po")
|
||||
|
||||
def add2filelist(fp, destination, source):
|
||||
absSource = os.path.abspath(source)
|
||||
for root, dirs, filenames in os.walk(source):
|
||||
fp.write(" SetOutPath $INSTDIR\\%s"%destination)
|
||||
relpath = os.path.abspath(root)[len(absSource)+1:]
|
||||
if relpath: fp.write("\\%s"%relpath)
|
||||
fp.write("\n")
|
||||
for file in filenames:
|
||||
fp.write(' File "%s"\n'%os.path.join(root, file))
|
||||
if 'CVS' in dirs: dirs.remove('CVS') # don't visit CVS directories
|
||||
if 'cvs' in dirs: dirs.remove('cvs')
|
||||
|
||||
docs = "../docs/"
|
||||
for doc in os.listdir(docs):
|
||||
fullpath = docs+doc
|
||||
if os.path.isdir(fullpath): continue
|
||||
lfcr(fullpath)
|
||||
|
||||
pos = "../src/po/"
|
||||
mos = "locale"
|
||||
|
||||
makeFolders(mos)
|
||||
for po in fnmatch.filter(os.listdir(pos), "*.po"):
|
||||
fullpath = pos+po
|
||||
if os.path.isdir(fullpath): continue
|
||||
po2mo(os.path.splitext(po)[0], pos, mos)
|
||||
|
||||
fp = open("filelist.inc", "w")
|
||||
add2filelist(fp, "data", "..\\data")
|
||||
add2filelist(fp, "data\\fonts", "..\\fonts")
|
||||
add2filelist(fp, "data\\starters", "..\\starters")
|
||||
add2filelist(fp, "data\\stamps", "..\\stamps")
|
||||
add2filelist(fp, "docs", "..\\docs")
|
||||
add2filelist(fp, "userdata", "userdata")
|
||||
fp.write("\n")
|
||||
fp.close()
|
||||
|
||||
|
||||
17
visualc/resource.h
Normal file
17
visualc/resource.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
//{{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
|
||||
151
visualc/resources.rc
Normal file
151
visualc/resources.rc
Normal file
|
|
@ -0,0 +1,151 @@
|
|||
//Microsoft Developer Studio generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.K.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
|
||||
#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"
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_ABORTDLG DIALOG DISCARDABLE 0, 0, 142, 50
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Printing..."
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
PUSHBUTTON "Cancel",IDCANCEL,46,18,50,14
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DESIGNINFO
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
GUIDELINES DESIGNINFO DISCARDABLE
|
||||
BEGIN
|
||||
IDD_ABORTDLG, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 135
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 43
|
||||
END
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
#ifndef _MAC
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 0,9,14,0
|
||||
PRODUCTVERSION 0,9,14,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 - A drawing program for children.\0"
|
||||
VALUE "FileVersion", "0.9.14-rc3\0"
|
||||
VALUE "InternalName", "Tux Paint\0"
|
||||
VALUE "LegalCopyright", "Copyright © 2003 by Bill Kendrick\0"
|
||||
VALUE "LegalTrademarks", "\0"
|
||||
VALUE "OriginalFilename", "TuxPaint.exe\0"
|
||||
VALUE "PrivateBuild", "\0"
|
||||
VALUE "ProductName", "Tux Paint\0"
|
||||
VALUE "ProductVersion", "0.9.14-rc3\0"
|
||||
VALUE "SpecialBuild", "win32 build by John Popplewell\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
|
||||
#endif // !_MAC
|
||||
|
||||
#endif // English (U.K.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
||||
3
visualc/tuxpaint.cfg
Normal file
3
visualc/tuxpaint.cfg
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fullscreen=no
|
||||
nofancycursors=no
|
||||
|
||||
115
visualc/tuxpaint.nsi
Normal file
115
visualc/tuxpaint.nsi
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
# vim: noai et ts=4 tw=0
|
||||
# with a few tiny modifications by Phil Harper(philh@theopencd.org)
|
||||
|
||||
!define PKG_VERSION "0.9.14-rc3"
|
||||
!define PKG_PREFIX "tuxpaint"
|
||||
|
||||
!define APP_PREFIX "TuxPaint"
|
||||
!define APP_EXE "${APP_PREFIX}.exe"
|
||||
!define APP_CFG_EXE "${APP_PREFIX}-config.exe"
|
||||
!define APP_NAME "Tux Paint"
|
||||
|
||||
SetCompressor lzma
|
||||
OutFile "${PKG_PREFIX}-${PKG_VERSION}-win32-installer.exe"
|
||||
Name "${APP_NAME}"
|
||||
Caption ""
|
||||
CRCCheck on
|
||||
WindowIcon off
|
||||
BGGradient off
|
||||
Icon "..\data\images\tuxpaint-installer.ico"
|
||||
|
||||
# Default to not silent
|
||||
SilentInstall normal
|
||||
SilentUnInstall normal
|
||||
|
||||
# Various default text options
|
||||
MiscButtonText
|
||||
InstallButtonText
|
||||
FileErrorText
|
||||
|
||||
# Default installation dir and registry key of install directory
|
||||
InstallDir "$PROGRAMFILES\${APP_PREFIX}"
|
||||
InstallDirRegKey HKLM SOFTWARE\${APP_PREFIX} "Install_Dir"
|
||||
|
||||
# Licence text
|
||||
LicenseText "You must agree to this license before installing ${APP_NAME}"
|
||||
LicenseData "../docs/copying.txt"
|
||||
|
||||
# Directory browsing
|
||||
ComponentText "This will install ${APP_NAME} on your computer. Select which optional things you want installed."
|
||||
DirText "Choose a directory to install ${APP_NAME} in to:"
|
||||
AllowRootDirInstall false
|
||||
|
||||
# Install page stuff
|
||||
InstProgressFlags smooth
|
||||
AutoCloseWindow true
|
||||
|
||||
Section
|
||||
SetOutPath $INSTDIR
|
||||
File "release\${APP_EXE}"
|
||||
File "..\..\tuxpaint-config\visualc\release\${APP_CFG_EXE}"
|
||||
File "release\*.dll"
|
||||
File "tuxpaint.cfg"
|
||||
!include "filelist.inc"
|
||||
SetOutPath $INSTDIR\locale
|
||||
File /r "locale\*.*"
|
||||
|
||||
WriteRegStr HKLM SOFTWARE\${APP_PREFIX} "Install_Dir" "$INSTDIR"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_PREFIX}" "DisplayName" "${APP_NAME} (remove only)"
|
||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_PREFIX}" "UninstallString" '"$INSTDIR\uninstall.exe"'
|
||||
WriteUninstaller "uninstall.exe"
|
||||
SectionEnd
|
||||
|
||||
|
||||
Section "Start Menu Shortcuts"
|
||||
SetOutPath $INSTDIR
|
||||
CreateDirectory "$SMPROGRAMS\${APP_NAME}"
|
||||
CreateShortCut "$SMPROGRAMS\${APP_NAME}\${APP_NAME} Configuration.lnk" "$INSTDIR\${APP_CFG_EXE}" "" "$INSTDIR\${APP_CFG_EXE}" 0 "" "" "Configure ${APP_NAME}"
|
||||
CreateShortCut "$SMPROGRAMS\${APP_NAME}\${APP_NAME} (Full Screen).lnk" "$INSTDIR\${APP_EXE}" "-f" "$INSTDIR\${APP_EXE}" 0 "" "" "Start ${APP_NAME} in Fullscreen mode"
|
||||
CreateShortCut "$SMPROGRAMS\${APP_NAME}\${APP_NAME} (Windowed).lnk" "$INSTDIR\${APP_EXE}" "" "$INSTDIR\${APP_EXE}" 0 "" "" "Start ${APP_NAME} in a Window"
|
||||
CreateShortCut "$SMPROGRAMS\${APP_NAME}\Readme.lnk" "$INSTDIR\docs\html\README.html" "" "$INSTDIR\docs\html\README.html" 0 "" "" "View ReadMe"
|
||||
CreateShortCut "$SMPROGRAMS\${APP_NAME}\Licence.lnk" "$INSTDIR\docs\copying.txt" "" "$INSTDIR\docs\copying.txt" 0 "" "" "Read License"
|
||||
CreateShortCut "$SMPROGRAMS\${APP_NAME}\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 "" "" "Remove ${APP_NAME}"
|
||||
SectionEnd
|
||||
|
||||
|
||||
Section "Desktop Shortcut"
|
||||
SetOutPath $INSTDIR
|
||||
CreateShortCut "$DESKTOP\${APP_NAME}.lnk" "$INSTDIR\${APP_EXE}" "" "$INSTDIR\${APP_EXE}" 0 "" "" "Create a picture with ${APP_NAME}"
|
||||
SectionEnd
|
||||
|
||||
Section "View README"
|
||||
SetOutPath $INSTDIR
|
||||
ExecShell "open" "docs\html\README.html"
|
||||
SectionEnd
|
||||
|
||||
;Function .onInstSuccess
|
||||
; BringToFront
|
||||
; MessageBox MB_YESNO|MB_ICONQUESTION \
|
||||
; "${APP_NAME} was installed. Would you like to run ${APP_NAME} now ?" \
|
||||
; IDNO NoExec
|
||||
; Exec '$INSTDIR\${APP_EXE}'
|
||||
; NoExec:
|
||||
;FunctionEnd
|
||||
|
||||
; uninstall stuff
|
||||
|
||||
UninstallText "This will uninstall ${APP_NAME}. Hit 'Uninstall' to continue."
|
||||
|
||||
; special uninstall section.
|
||||
Section "Uninstall"
|
||||
; remove registry keys
|
||||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${APP_PREFIX}"
|
||||
DeleteRegKey HKLM SOFTWARE\${APP_PREFIX}
|
||||
|
||||
RMDir /r "$INSTDIR\data"
|
||||
RMDir /r "$INSTDIR\docs"
|
||||
RMDir /r "$INSTDIR\locale"
|
||||
Delete "$INSTDIR\*.*"
|
||||
|
||||
Delete "$DESKTOP\${APP_NAME}.lnk"
|
||||
Delete "$SMPROGRAMS\${APP_NAME}\*.*"
|
||||
RMDir "$SMPROGRAMS\${APP_NAME}"
|
||||
SectionEnd
|
||||
|
||||
|
||||
1
visualc/userdata/current_id.txt
Normal file
1
visualc/userdata/current_id.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
Loading…
Add table
Add a link
Reference in a new issue