appbundle-maven-plugin icon indicating copy to clipboard operation
appbundle-maven-plugin copied to clipboard

ICNS files not copied correctly to app folder

Open bowring opened this issue 9 years ago • 3 comments

The icns file that is copied to the Resources folder of the app contents is somehow broken in the process and is not an icon file: it is larger and not recognized by Preview or Icon Composer, for example. I have tested this by using known icns files such as netbeans.icns in addition to the icon for my app. I think it is related to how the resource stream is read from the class loader. I can replace the icns file in the Resources folder after the app is built and it works fine. One of my students has made a robust resource extractor that works in jars and wars in addition to normal directory structures: https://github.com/CIRDLES/Commons/blob/master/src/main/java/org/cirdles/commons/util/ResourceExtractor.java

I will experiment with this, but wanted to bring it to everyone's attention.

bowring avatar Dec 11 '15 13:12 bowring

That is strange behavior. It just copies icon files using org.codehaus.plexus.util.FileUtils/copyFileToDirectory.

If possible, please show me a project that have the problem.

Thanks.

federkasten avatar Dec 12 '15 06:12 federkasten

see: https://github.com/bowring/ET_Redux/tree/dibbs

On Sat, Dec 12, 2015 at 1:34 AM, Takashi AOKI [email protected] wrote:

That is strange behavior. It just copy icon files using org.codehaus.plexus.util.FileUtils/copyFileToDirectory.

If possible, show me a project that have the problem.

Thanks.

— Reply to this email directly or view it on GitHub https://github.com/federkasten/appbundle-maven-plugin/issues/23#issuecomment-164115035 .

Jim Bowring C. Richard Crosby Distinguished Teaching Co-Chair Principal Investigator, www.CIRDLES.org, www.github.com/cirdles

Computer Science College of Charleston 66 George Street Charleston, SC 29424

Google Voice: 843.608.1399 (preferred) Google Email: [email protected]

Office: Harbor Walk East (360 Concord Street) Room 308 843.953.0805 http://stono.cs.cofc.edu/~bowring/ [email protected]

R. Buckminster Fuller (1972): If humanity is to survive aboard our planet, it must become universally literate and preoccupied with inherently cooperative Comprehensive Anticipatory Design Science in which every human is concerned with accomplishing the comfortably sustainable well-faring of all other humans.

bowring avatar Dec 13 '15 22:12 bowring

Same issue, had to do this:

<configuration>
  <iconFile>src/main/resources/osx/icon-mage.icns</iconFile>
</configuration>

source: https://github.com/vayan/MageLauncher/blob/master/pom.xml#L236

vayan avatar Mar 02 '18 19:03 vayan