OK, I understand now !


On Sat, May 24, 2014 at 11:59 PM, Charles Gutjahr
<notifications@github.com>wrote:

> In uploader-osx/pom.xml:
>
> > +										file="target/${project.artifactId}-${project.version}.jar" />
> > +									<librarypath dir="src/main/native/osx/" includes="*.dylib" />
> > +									<option value="-Dapple.laf.useScreenMenuBar=true" />
> > +									<option value="-Djna.library.path=$APP_ROOT/Contents/MacOS" />
> > +									<option
> > +										value="-DLOG_FILE=Library/Application Support/HearthStatsUploader/log.txt" />
> > +									<option value="-Xdock:icon=Contents/Resources/${bundle.icon}" />
> > +									<option value="-Xms96m" />
> > +									<option value="-Xmx192m" />
> > +								</bundleapp>
> > +
> > +								<!-- Copy Tesseract data into the Resources folder of the bundle -->
> > +								<copy preservelastmodified="true"
> > +									todir="target/HearthStats.app/Contents/Resources">
> > +									<fileset dir="src/main/resources">
> > +										<include name="tessdata/**" />
>
> Both the Windows and the OS X versions need a copy of tessdata -- it's
> required for OCR -- so you can't remove it from
> uploader\src\main\resources\tessdata because that will break the Windows
> build (you can test this by viewing the Play screen in Ranked mode, which
> triggers OCR on the rank... if tessdata is missing then the uploader will
> crash).
>
> If you're keen to keep only one copy, then it might be possible to put it
> into the uploader jar, then have the Ant script in uploader-osx extract the
> files from the jar and put them into the OS X app bundle... but it's not a
> high priority for me.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/HearthStats/HearthStats.net-Uploader/pull/312/files#r13028258>
> .
>