makeself 运行 启动脚本作为源脚本

makeself running startup script as sourced script

我正在使用 makeself 制作一个自解压档案,并且能够生成并且 运行 it.But 我必须 运行 安装脚本作为源脚本。

我看到一个选项可以在 makeself 命令中传递脚本参数 makeself.sh [args] archive_dir file_name label startup_script [script_args]

但是我的论点 none 正在上升。我使用以下命令生成了档案 makeself.sh ./test ./test.run "sample installer" ./install.sh

但我如何告诉自己将 运行 install.sh 文件作为源脚本

我已经找到了该问题的替代解决方案。无论如何,它不是真正的修复它是 working.Instead 调用 install.sh 作为启动脚本我添加了另一个脚本,它将调用 install.sh 作为源脚本。 makeself.sh ./test ./test.run "sample installer" ./launcher.sh和launcher.sh将包含以下内容

Launcher.sh 文件

source ./install.sh