Skip to content

Commit 6817687

Browse files
committed
adding ico file for Windows and other todo notes
1 parent 6956f9d commit 6817687

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

app/src/processing/mode/java/JavaBuild.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1497,6 +1497,9 @@ protected boolean exportApplication(File destFolder,
14971497
config.setString("dontWrapJar", "true");
14981498
config.setString("jarPath", "lib\\" + jarList[0]);
14991499

1500+
File iconFile = mode.getContentFile("application/sketch.ico");
1501+
config.addChild("icon").setContent(iconFile.getAbsolutePath());
1502+
15001503
XML clazzPath = config.addChild("classPath");
15011504
clazzPath.setString("mainClass", sketch.getName());
15021505
for (int i = 1; i < jarList.length; i++) {
@@ -1512,7 +1515,11 @@ protected boolean exportApplication(File destFolder,
15121515

15131516
File buildFile = new File(destFolder, "build-launch4j.xml");
15141517
project.save(buildFile);
1515-
buildWindowsLauncher(buildFile, "windows");
1518+
if (!buildWindowsLauncher(buildFile, "windows")) {
1519+
// don't delete the build file, might be useful for debugging
1520+
return false;
1521+
}
1522+
buildFile.delete();
15161523

15171524
} else {
15181525
File shellScript = new File(destFolder, sketch.getName());

java/application/sketch.ico

362 KB
Binary file not shown.

todo.txt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,20 @@ X sketch sometimes simply does not launch
2020
X https://github.com/processing/processing/issues/2402
2121
X https://github.com/processing/processing/pull/2455
2222
X helpful fix contributed by David Fokkema
23-
X new launch4j 3.4
23+
X remove the google code uploader
24+
25+
export
26+
X incorporate new launch4j 3.4
2427
X http://sourceforge.net/projects/launch4j/files/launch4j-3/3.4/
28+
X change Windows export to use launch4j instead of the launcher.cpp file
29+
X actually call ant from inside p5?
30+
_ re-implement an icon for exported applications on Windows
31+
_ remove build/windows/export from repo
32+
_ exported apps reporting as "damaged" on OS X
33+
_ https://github.com/processing/processing/issues/2095
2534

2635

2736
high
28-
_ exported apps reporting as "damaged" on OS X
29-
_ https://github.com/processing/processing/issues/2095
3037
_ JNA conflicts can be avoided with "-Djna.nosys=true"
3138
_ https://github.com/processing/processing/issues/2239
3239
X fix for Windows launchers
@@ -95,8 +102,6 @@ _ "String index out of range" error
95102
_ https://github.com/processing/processing/issues/1940
96103
_ look through all isPopupTrigger() code
97104
_ make sure both press/release are implemented
98-
_ change Windows export to use launch4j instead of the launcher.cpp file
99-
_ actually call ant from inside p5?
100105
_ emacs style errors in commander aren't quite right
101106
_ https://github.com/processing/processing/issues/2158
102107
_ add documentation for how to run mode development from Eclipse

0 commit comments

Comments
 (0)