Skip to content

Commit 205da68

Browse files
committed
update export icons in java/application
1 parent 5b9e89c commit 205da68

File tree

4 files changed

+42
-22
lines changed

4 files changed

+42
-22
lines changed

build/build.xml

Lines changed: 41 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,47 +1055,62 @@
10551055
</target>
10561056

10571057

1058-
<!-- Target to create the icons... putting this in here rather than docs.
1059-
For OS X (though Linux might work), not intended for general use,
1060-
because it requires things like iconutil (on OS X) or ImageMagick's
1061-
convert tool (primarily in *nix environments). -->
1062-
<target name="icons">
1063-
1064-
<!-- create pde.iconset for Mac OS X -->
1065-
<property name="icon.src" value="shared/lib/icons" />
1066-
<property name="icon.set" value="/tmp/pde.iconset" />
1058+
<!-- bundle a bunch of PNGs into an OS X iconset -->
1059+
<target name="iconset">
10671060
<mkdir dir="${icon.set}" />
1061+
<!--<echo message="root = ${icon.root} / set = ${icon.set}" />-->
10681062

1069-
<copy file="${icon.src}/pde-16.png"
1063+
<copy file="${icon.root}-16.png"
10701064
tofile="${icon.set}/icon_16x16.png" />
1071-
<copy file="${icon.src}/pde-32.png"
1065+
<copy file="${icon.root}-32.png"
10721066
tofile="${icon.set}/icon_16x16@2x.png" />
10731067

1074-
<copy file="${icon.src}/pde-32.png"
1068+
<copy file="${icon.root}-32.png"
10751069
tofile="${icon.set}/icon_32x32.png" />
1076-
<copy file="${icon.src}/pde-64.png"
1070+
<copy file="${icon.root}-64.png"
10771071
tofile="${icon.set}/icon_32x32@2x.png" />
10781072

1079-
<copy file="${icon.src}/pde-128.png"
1073+
<copy file="${icon.root}-128.png"
10801074
tofile="${icon.set}/icon_128x128.png" />
1081-
<copy file="${icon.src}/pde-256.png"
1075+
<copy file="${icon.root}-256.png"
10821076
tofile="${icon.set}/icon_128x128@2x.png" />
10831077

1084-
<copy file="${icon.src}/pde-256.png"
1078+
<copy file="${icon.root}-256.png"
10851079
tofile="${icon.set}/icon_256x256.png" />
1086-
<copy file="${icon.src}/pde-512.png"
1080+
<copy file="${icon.root}-512.png"
10871081
tofile="${icon.set}/icon_256x256@2x.png" />
10881082

1089-
<copy file="${icon.src}/pde-512.png"
1083+
<copy file="${icon.root}-512.png"
10901084
tofile="${icon.set}/icon_512x512.png" />
1091-
<copy file="${icon.src}/pde-1024.png"
1085+
<copy file="${icon.root}-1024.png"
10921086
tofile="${icon.set}/icon_512x512@2x.png" />
10931087

1094-
<exec executable="iconutil">
1095-
<arg line="-c icns -o macosx/processing.icns ${icon.set}" />
1088+
<exec executable="iconutil" logError="true">
1089+
<arg line="-c icns -o ${icon.icns} ${icon.set}" />
10961090
</exec>
10971091

10981092
<delete dir="${icon.set}" />
1093+
</target>
1094+
1095+
1096+
<!-- Target to create the icons... putting this in here rather than docs.
1097+
For OS X (though Linux might work), not intended for general use,
1098+
because it requires things like iconutil (on OS X) or ImageMagick's
1099+
convert tool (primarily in *nix environments). -->
1100+
<target name="icons">
1101+
<property name="icon.set" value="/tmp/pde.iconset" />
1102+
1103+
<!-- create iconset for the PDE application for Mac OS X -->
1104+
<antcall target="iconset">
1105+
<param name="icon.root" value="shared/lib/icons/pde" />
1106+
<param name="icon.icns" value="macosx/processing.icns" />
1107+
</antcall>
1108+
1109+
<!-- create iconset for exported sketch on Mac OS X -->
1110+
<antcall target="iconset">
1111+
<param name="icon.root" value="../core/src/icon/icon" />
1112+
<param name="icon.icns" value="../java/application/sketch.icns" />
1113+
</antcall>
10991114

11001115
<!-- Create .ico for the PDE itself
11011116
https://msdn.microsoft.com/en-us/library/dn742485.aspx
@@ -1107,6 +1122,11 @@
11071122
<exec executable="convert" dir="shared/lib/icons">
11081123
<arg line="pde-16.png pde-32.png pde-48.png pde-64.png pde-256.png ../../../windows/application.ico" />
11091124
</exec>
1125+
1126+
<!-- Create .ico for exported Java applications -->
1127+
<exec executable="convert" dir="../core/src/icon">
1128+
<arg line="icon-16.png icon-32.png icon-48.png icon-64.png icon-256.png ../../../java/application/sketch.ico" />
1129+
</exec>
11101130
</target>
11111131

11121132

java/application/sketch.icns

411 KB
Binary file not shown.

java/application/sketch.ico

-308 KB
Binary file not shown.

todo.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ X merged list of sizes: 16, 24, 32, 48, 64, 256
99
X Linux version of updated icon
1010
X handled with the .desktop file, nothing has changed for the file location
1111
X add larger icons to core folder
12-
_ update export icons in java/application (export.icns and export.ico)
12+
X update export icons in java/application (export.icns and export.ico)
1313

1414
fixed earlier
1515
X Can't set Breakpoint from the Breakpoint bar at the side

0 commit comments

Comments
 (0)