当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 请高手帮我,关于制作安装包的问题。
帖子发表于 : 2010-07-12 10:48 

注册: 2010-07-08 22:15
帖子: 6
送出感谢: 0 次
接收感谢: 0 次
各位好:
现在有一个制作安装包的问题,请教各位。
这是一个web工程,运行这个工程的前提是,要安装所需要的软件环境(如,服务器,编译器等)。这个安装环境的过程,通过一个shell脚本来时实现。
那么,整个工程目前是一个tar.gz包,安装的时候,需要解压该包,然后再执行那个shell脚本。这样才能部署完成。

我想让这个过程,用一个双击动作就全部搞定。不需要用户区自己执行一些命令。目前想到如下方式:
1、用deb包来安装,我不知道如何才能既达到解压的效果,又达到安装环境软件的效果。(最好是解压完之后,能自动运行一个shell脚本,最ok了。)
2、用bin文件的安装包,可惜我没实现双击安装的效果。

我只想到这么多,但是都存在难点,如果各位有其他的好方法欢迎推荐。或者解决以上两种方式的难题。
如果有办法,最好过程详细些。谢谢各位了先!


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 请高手帮我,关于制作安装包的问题。
帖子发表于 : 2010-07-12 12:56 

注册: 2008-05-24 8:30
帖子: 1453
送出感谢: 2
接收感谢: 30
制作 .deb 的方法可以通过写 postinst 和 prerm 脚本来解决这个问题。
第二种方法可以参考:
软件包:makeself 写道:

描述:utility to generate self-extractable archives
makeself is a small shell script that generates a self-extractable archive from
a directory. The resulting file appears as a shell script (many of those have a
.run suffix), and can be launched as is. The archive will then uncompress
itself to a temporary directory and an optional arbitrary command will be
executed (for example an installation script). This is pretty similar to
archives generated with WinZip Self-Extractor in the Windows world. Makeself
archives also include checksums for integrity self-validation (CRC and/or MD5
checksums).

The makeself script itself is used only to create the archives from a directory
of files. The resultant archive is actually a compressed (using gzip, bzip2, or
compress) TAR archive, with a small shell script stub at the beginning. This
small stub performs all the steps of extracting the files, running the embedded
command, and removing the temporary files when it's all over. All what the user
has to do to install the software contained in such an archive is to "run" the
archive, i.e. sh nice-software.run. I recommend using the "run" (which was
introduced by some Makeself archives released by Loki Software) or "sh" suffix
for such archives not to confuse the users, since they actually are shell
scripts (with quite a lot of binary data attached to it though!).
主页:http://www.megastep.org/makeself/


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 请高手帮我,关于制作安装包的问题。
帖子发表于 : 2010-07-12 13:10 
头像

注册: 2008-07-21 9:44
帖子: 2371
地址: 深圳
送出感谢: 0 次
接收感谢: 0 次
aerofox 写道:
制作 .deb 的方法可以通过写 postinst 和 prerm 脚本来解决这个问题。
第二种方法可以参考:
软件包:makeself 写道:

描述:utility to generate self-extractable archives
makeself is a small shell script that generates a self-extractable archive from
a directory. The resulting file appears as a shell script (many of those have a
.run suffix), and can be launched as is. The archive will then uncompress
itself to a temporary directory and an optional arbitrary command will be
executed (for example an installation script). This is pretty similar to
archives generated with WinZip Self-Extractor in the Windows world. Makeself
archives also include checksums for integrity self-validation (CRC and/or MD5
checksums).

The makeself script itself is used only to create the archives from a directory
of files. The resultant archive is actually a compressed (using gzip, bzip2, or
compress) TAR archive, with a small shell script stub at the beginning. This
small stub performs all the steps of extracting the files, running the embedded
command, and removing the temporary files when it's all over. All what the user
has to do to install the software contained in such an archive is to "run" the
archive, i.e. sh nice-software.run. I recommend using the "run" (which was
introduced by some Makeself archives released by Loki Software) or "sh" suffix
for such archives not to confuse the users, since they actually are shell
scripts (with quite a lot of binary data attached to it though!).
主页:http://www.megastep.org/makeself/

mark,学习。


_________________

My blog


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 3 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译