diff --git a/build/windows/launcher/Makefile b/build/windows/launcher/Makefile index 41b67a25d..38540deca 100644 --- a/build/windows/launcher/Makefile +++ b/build/windows/launcher/Makefile @@ -3,6 +3,7 @@ OBJS = launcher.o launcher-rc.o processing.exe: $(OBJS) $(LINK.cc) $(CXXFLAGS) -o $@ $(OBJS) + cp processing.exe ../work/ $(OBJS): Makefile diff --git a/build/windows/launcher/launcher.cpp b/build/windows/launcher/launcher.cpp index 02560d3dd..d7b19b2da 100644 --- a/build/windows/launcher/launcher.cpp +++ b/build/windows/launcher/launcher.cpp @@ -41,12 +41,12 @@ WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow) char *cp = (char *)malloc(8 * strlen(loaddir) + 200); - // if this code looks shitty, that's because it is. - // people put the durndest things in their CLASSPATH and - // QTJAVA environment variables. who knows where and - // when the quotes will show up. this is a guess at - // dealing with the things, without spending a whole - // day to make it overly robust. [fry] + // if this code looks shitty, that's because it is. people are + // likely to have the durndest things in their CLASSPATH and QTJAVA + // environment variables. mostly because installers often mangle + // them without the user knowing. so who knows where and when the + // quotes will show up. this is a guess at dealing with the things, + // without spending a whole day to make it overly robust. [fry] // test to see if running with a java runtime nearby or not @@ -57,7 +57,10 @@ WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow) FILE *fp = fopen(testpath, "rb"); int local_jre_installed = (fp != NULL); //char *rt_jar = (fp == NULL) ? "" : "java\\lib\\rt.jar;"; - fclose(fp); // argh! this was probably causing trouble + if (fp != NULL) fclose(fp); // argh! this was probably causing trouble + + //MessageBox(NULL, local_jre_installed ? + // "local jre installed" : "couldn't find jre", "p5", MB_OK); //const char *envClasspath = getenv("CLASSPATH"); diff --git a/build/windows/launcher/processing.exe b/build/windows/launcher/processing.exe index 9d0696cc3..773089711 100755 Binary files a/build/windows/launcher/processing.exe and b/build/windows/launcher/processing.exe differ diff --git a/build/windows/make.sh b/build/windows/make.sh index f4c6b38cd..2b55fc2dd 100755 --- a/build/windows/make.sh +++ b/build/windows/make.sh @@ -58,7 +58,6 @@ else cd work/java/bin/ chmod -R +x *.exe *.dll cd ../../.. - pwd #chmod -R +x work/java/bin/*.exe #chmod +x work/java/bin/*.dll #chmod +x work/java/bin/client/*.dll