* use launch4j for console executable instead of startup script

This commit is contained in:
Reinhard Pointner 2013-03-14 21:32:38 +00:00
parent b55aaea15f
commit b4631951ab
5 changed files with 42 additions and 3 deletions

View File

@ -0,0 +1,22 @@
<launch4jConfig>
<dontWrapJar>true</dontWrapJar>
<headerType>console</headerType>
<jar>FileBot.jar</jar>
<outfile>filebot.exe</outfile>
<errTitle></errTitle>
<cmdLine></cmdLine>
<chdir></chdir>
<priority>normal</priority>
<downloadUrl>http://java.com/download</downloadUrl>
<supportUrl></supportUrl>
<customProcName>false</customProcName>
<stayAlive>false</stayAlive>
<manifest></manifest>
<icon>..\icons\shortcut.ico</icon>
<jre>
<path></path>
<minVersion>1.6.0</minVersion>
<maxVersion></maxVersion>
<jdkPreference>preferJre</jdkPreference>
</jre>
</launch4jConfig>

View File

@ -42,9 +42,10 @@
</Component>
<Component Id='ApplicationStubCmd' Guid='D2B1A845-3B5C-4B59-B0D0-A4E80C173220' Win64="$(var.Win64)">
<File Id='filebot.cmd' Name='filebot.cmd' Source='filebot.cmd' KeyPath='yes'>
<File Id='filebot.exe' Name='filebot.exe' Source='filebot.exe' KeyPath='yes'>
<Shortcut Id="shortcut.menu.filebot.cmd" Directory="ProgramMenuDir" Name="FileBot (console)" Description="Launch FileBot with debug logging" WorkingDirectory='INSTALLDIR' />
</File>
<File Id='filebot.l4j.ini' Name='filebot.l4j.ini' Source='filebot.l4j.ini' />
<Environment Id="PATH" Name="PATH" Value="[INSTALLDIR]" Action="set" Part="last" Permanent="no" System="yes" />
</Component>

View File

@ -1,2 +0,0 @@
@ECHO OFF
java -Xmx256m -DuseExtendedFileAttributes=true -Dapplication.dir="%APPDATA%\FileBot" -Dapplication.deployment=msi -Dapplication.analytics=true -Djava.net.useSystemProxies=true -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 "-Djna.library.path=%~dp0." "-Djava.library.path=%~dp0." -jar "%~dp0FileBot.jar" %*

BIN
installer/msi/filebot.exe Normal file

Binary file not shown.

View File

@ -0,0 +1,18 @@
# FileBot launch4j runtime config
-Dapplication.deployment=msi
-Dapplication.dir="%APPDATA%\FileBot"
# FileBot feature settings
-Dapplication.analytics=true
# network settings
-Djava.net.useSystemProxies=true
-Dsun.net.client.defaultConnectTimeout=10000
-Dsun.net.client.defaultReadTimeout=60000
# use NTFS extended attributes for storing metadata
-DuseExtendedFileAttributes=true
# look for native libs here
-Djna.library.path="%EXEDIR%"
-Djava.library.path="%EXEDIR%"