Skip to content

Added Icon and windows exe properties plus Windows MSI installer build#11

Open
nivs1978 wants to merge 2 commits intojno6809:masterfrom
nivs1978:master
Open

Added Icon and windows exe properties plus Windows MSI installer build#11
nivs1978 wants to merge 2 commits intojno6809:masterfrom
nivs1978:master

Conversation

@nivs1978
Copy link

A .bat file have been added for building an MSI using the WiX Tools (needs to be installed first).
The bat file checks a lot of prerequisites before starting the build.
The Makefile.MinGW have been updated to include basic windows exe header (company, product, copyright, version etc.) and an icon as well.
The MSWindows firectory contains windows specific icon files, WiS XML for building the MSI as well as the resource templates for the RES files build during make.
Everything is packed into an MSI that will put jc_reborn.scr + SDL2.dll in the Windows directory and the resource+wav files in c:\sierra\scrantic directory, just like the original. Finally the installer open the screen saver settings dialog for the user to set jc_reborn as the default screensaver.

$(shell windres MSWindows\icon.rc -O coff -o icon.res)
$(shell windres MSWindows\exe_header.rc -O coff -o exe_header.res)

CFLAGS=-I/include/ -Wall --std=c99
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normally MinGW maps windows paths to unix-like ones. Using native Windows paths shouldn't be necessary ...

config.o
config.o \
icon.res \
exe_header.res
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a minor indentation issue here ? (spaces vs tabs)

int getDayOfYear();
int getHour();
char *getMonthAndDay();
char* concat(char *str1, char *str2);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation issue here, too

Copy link
Owner

@jno6809 jno6809 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Hans,
Thanks for this PR. The only real issue here is the native-windows paths put in the Makefile, which IMHO shouldn't be needed...
On my windows setup, I don't need this for the compilation to be successful...
Have you installed the libSDL in the right directories ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants