使用与标准应用程序包不同的Install4J创建的MacOSX安装程序

时间:2017-10-18 18:03:22

标签: java macos bundle install4j launcher

在评估Install4j安装程序的MacOSX时,生成的应用程序在结构上与标准MacOSX应用程序不同。选择的可执行文件类型是Launcher配置屏幕中的GUI。

我们目前得到的是:

  xxx.jar                <==== jar file (provided to Install4j)
  .install4j
     \jre.bundle         <=== bundled jre (bundled by Install4j)
     <other install4j stuff>
  [Appname].app
      \MacOSX
         Launcher        <==== (generated by Install4j)   
      \Contents 
         \Resources 
           \resources
           <icon files>  <==== icons (provided to Install4j)

我们如何将相应的文件放在创建的[Appname].app文件夹中:

  [Appname].app
      \MacOSX
         Launcher        <==== (generated by Install4j)   
      \Contents 
         \Resources 
           \resources
           <icon files>  <==== icons (provided to Install4j)
           \jre          <=== bundled jre (bundled by Install4j)
           xxx.jar       <==== jar file (provided to Install4j)

上述内容最有用且可以.tgz文件格式移植,最终用户可以解压缩文件并将[Appname].app拖放到Mac系统上的Applications文件夹中。

1 个答案:

答案 0 :(得分:0)

而不是使用&#34;文件夹存档&#34;媒体文件类型,使用&#34;单一包存档&#34;媒体文件类型。