如何给linux程序签名,使用install4j对linux可执行文件进行代码签名(Code signing for linux executable using install4j)...

使用install4j对linux可执行文件进行代码签名(Code signing for linux executable using install4j)

我使用Install4j和.pfx文件为我的安装程序(.exe)提供Windows的数字签名,但我找不到任何方法为我的linux(.sh)安装程序。 使用Install4j for linux可执行文件有什么办法吗?

I am using Install4j and .pfx file in order to provide digital signature for my installer (.exe) for windows, but I can't find any way to do it for my installer for linux (.sh). There are any way to do it using Install4j for linux executables?

原文:https://stackoverflow.com/questions/47810499

更新时间:2019-12-13 00:30

最满意答案

不支持在Linux / Unix上进行签名。 install4j中的代码签名仅支持Windows和macOS。

There is no support for signing on Linux/Unix. Code signing in install4j is only supported for Windows and macOS.

2017-12-14

相关问答

生成的启动程序在Windows和Mac OS X上具有包含构建的类路径的调试功能 。 在Windows上 ,使用参数/create-i4j-log从命令行提示符启动启动程序。 将创建一个日志文件并显示一个消息框,以便您可以根据需要立即打开它。 或者,设置环境变量 INSTALL4J_LOG=yes

在这种情况下,不会显示消息框,您必须在%TEMP%目录中找到日志文件(“i4jlog ...”)。 在Mac OS X上 ,使用环境变量启动启动器 INSTALL4J_LOG=yes

然后,您将在控

...

如果不运行安装程序,则无法从可执行文件中提取文件。 在构建时,你可以通过 --preserve

编译器的参数,或检查安装程序的“生成”步骤中的“不删除临时目录”复选框,然后编译完成后,不会删除%TEMP%目录中带有启动程序的登台目录。 It's not possible to extract files from the executable without running the installer. At build time, you can pass the --preserve

ar

...

编辑bin/install4j.vmoptions并添加 -Djava.io.tmpdir=[path to temp dir]

在一条新线上。 Edit bin/install4j.vmoptions and add -Djava.io.tmpdir=[path to temp dir]

on a new line.

不支持在Linux / Unix上进行签名。 install4j中的代码签名仅支持Windows和macOS。 There is no support for signing on Linux/Unix. Code signing in install4j is only supported for Windows and macOS.

在回滚的情况下没有运行的操作块。 最好的选择可能是使用“运行脚本”操作,这些操作只有其脚本为true ,并使用其“可选回滚脚本”属性来执行清理。 如果您需要回滚代码中的操作功能,则可以实例化操作并以编程方式执行它们,如下所示: import com.install4j.runtime.beans.actions.misc.RunExecutableAction;

RunExecutableAction action = new RunExecutableAction();

action.setE

...

从install4j 6开始,install4j中没有这样的表单组件。 您可以自己开发这样的表单组件。 请参阅“customCode”示例项目中的文件SampleFormComponent[BeanInfo].java 。 作为基础,你可以使用 http://www.jidesoft.com/javadoc/com/jidesoft/swing/CheckBoxTree.html Jide commons是开源的 ,您可以在Installer-> Custom code&Resources步骤中添

...

在安装程序 - >屏幕和操作步骤中,选择安装程序并编辑“可执行文件图标”属性。 On the Installer->Screens & Actions step, select the installer and edit the "Executable icon" property.

要读取环境变量,请使用 System.getenv("CLASSPATH")

如果要将其用作install4j安装程序变量,请添加“设置变量”操作,并将上述行作为脚本。 To read environment variables, use System.getenv("CLASSPATH")

If you would like to use it as an install4j installer variable, add a "Set a variable" action with the

...

如果代码中存在异常,则可以在启动程序向导的“可执行信息 - >重定向”步骤中设置stderr的重定向。 要获取服务的本机日志文件,请定义环境变量 INSTALL4J_LOG=yes

为所有用户重启服务。 日志文件名为i4jlog...并保存到%TEMP%目录。 对于目录所在的NT AUTHORITY\\LOCAL SERVICE用户帐户 C:\Windows\ServiceProfiles\LocalService\AppData\Local\Temp

If the exception is

...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值