makeself制作安装文件

1 安装
1.1 下载 http://cdn.megastep.org/makeself/makeself-2.2.0.run 后,直接运行makeself-2.2.0.run , 会生成  makeself-2.2.0这个目录.

1.2 如果是Ubuntu,可以用命令apt-get install makeself 进行在线安装.
 如果是基于RPM的Linux发行版如Redhat,SUSE,可以用命令yum install makeself 进行在线安装.

2 安装目录要求
--myfolder
|___install.sh
|___testfile

有一个安装脚本install.sh,命名随意,在制作安装包时要使用,注意install.sh要有执行权限
#!/bin/bash
echo "installing my software"
read -p "Press the ENTER key to continue." enterContinue

echo "************************************************************************"
echo " Installing Package..."
echo "************************************************************************"
cp ./testfile /home

3 制作安装文件
./makeself.sh myfolder installfile "mytest" "./install.sh"

参考:

https://blog.csdn.net/tonyhuang_google_com/article/details/51691544

https://blog.csdn.net/qq_37887537/article/details/78798634?utm_medium=distribute.pc_relevant.none-task-blog-baidujs-9

原文地址:https://www.cnblogs.com/mingzhang/p/13299458.html