Include fail-safe launcher in appx package

This commit is contained in:
Reinhard Pointner 2017-04-21 12:15:02 +08:00
parent 7fab97bcdc
commit 96008c00fa
2 changed files with 22 additions and 11 deletions

View File

@ -97,6 +97,17 @@
</uap3:Extension> </uap3:Extension>
</Extensions> </Extensions>
</Application> </Application>
<Application Id="@{package.identifier}.Platform" Executable="filebot.launcher.platform.exe" EntryPoint="Windows.FullTrustApplication">
<uap:VisualElements DisplayName="@{application.name} (platform)" Description="Run @{application.name} with alternate configuration" BackgroundColor="purple" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" >
<uap:DefaultTile ShortName="@{application.name} (platform)" Wide310x150Logo="Assets\Wide310x150Logo.png" Square310x310Logo="Assets\Square310x310Logo.png" Square71x71Logo="Assets\Square71x71Logo.png">
<uap:ShowNameOnTiles>
<uap:ShowOn Tile="square150x150Logo" />
<uap:ShowOn Tile="wide310x150Logo" />
<uap:ShowOn Tile="square310x310Logo" />
</uap:ShowNameOnTiles>
</uap:DefaultTile>
</uap:VisualElements>
</Application>
<Application Id="@{package.identifier}.Command" Executable="filebot.exe" EntryPoint="Windows.FullTrustApplication"> <Application Id="@{package.identifier}.Command" Executable="filebot.exe" EntryPoint="Windows.FullTrustApplication">
<uap:VisualElements DisplayName="@{application.name} (console)" Description="Run @{application.name} with Console" BackgroundColor="black" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" > <uap:VisualElements DisplayName="@{application.name} (console)" Description="Run @{application.name} with Console" BackgroundColor="black" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" >
<uap:DefaultTile ShortName="@{application.name} (console)" Wide310x150Logo="Assets\Wide310x150Logo.png" Square310x310Logo="Assets\Square310x310Logo.png" Square71x71Logo="Assets\Square71x71Logo.png"> <uap:DefaultTile ShortName="@{application.name} (console)" Wide310x150Logo="Assets\Wide310x150Logo.png" Square310x310Logo="Assets\Square310x310Logo.png" Square71x71Logo="Assets\Square71x71Logo.png">

View File

@ -6,9 +6,6 @@
# put all temporary files here # put all temporary files here
-Djava.io.tmpdir="%APPDATA%\FileBot\tmp" -Djava.io.tmpdir="%APPDATA%\FileBot\tmp"
# FileBot system properties
-DthreadPool=32
# network settings # network settings
-Djava.net.useSystemProxies=true -Djava.net.useSystemProxies=true
@ -37,22 +34,25 @@
# force Application User Model ID for Windows Store # force Application User Model ID for Windows Store
-Dnet.filebot.AppUserModelID=@{microsoft.application.name} -Dnet.filebot.AppUserModelID=@{microsoft.application.name}
# use Java implementation for extracting archives # force platform L&F
-Dnet.filebot.Archive.extractor="ApacheVFS" -Dswing.systemlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel
# force english locale # disable hardware acceleration
-Dsun.java2d.d3d=false
-Dprism.order=sw
# force English locale
-Dfile.encoding=UTF-8 -Dfile.encoding=UTF-8
-Duser.country=US -Duser.country=US
-Duser.country.format=US -Duser.country.format=US
-Duser.language=en -Duser.language=en
-Duser.language.format=en -Duser.language.format=en
# disable hardware acceleration # use Java implementation for extracting archives
-Dsun.java2d.d3d=false -Dnet.filebot.Archive.extractor="ApacheVFS"
-Dprism.order=sw
# force platform L&F # force thread pool size
-Dswing.systemlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel -DthreadPool=32
# support FILEBOT_OPTS environment variable # support FILEBOT_OPTS environment variable
%FILEBOT_OPTS% %FILEBOT_OPTS%