Alongking 于 2008-08-06 20:59:27发表:
是不是非常简单?还有一些其它参数,但这些参数基本不用。如:
args are optional options for Makeself. The available ones are :
--version : Prints the version number on stdout, then exits immediately
显示版本号,完成后,即刻退出
--gzip : Use gzip for compression (is the default on platforms on which gzip is commonly available, like Linux)
用gzip压缩(在通常可用平台下----像Linux----gzip是个默认的)
--bzip2 : Use bzip2 instead of gzip for better compression. The bzip2 command must be available in the command path. I recommend that you set the prefix to something like '.bz2.run' for the archive, so that potential users know that they'll need bzip2 to extract it.
用bzip2代替gzip,压缩效果更好。在命令行路径下,bzip2命令必须合法。
--compress : Use the UNIX "compress" command to compress the data. This should be the default on all platforms that don't have gzip available.
使用Unix下的compress命令压缩数据。这将是所有gzip不可用平台的默认值。
--nocomp : Do not use any compression for the archive, which will then be an uncompressed TAR.
存档文件不用任何压缩,这将形成不压缩的tar包。
--notemp : The generated archive will not extract the files to a temporary directory, but in a new directory created in the current directory. This is better to distribute software packages that may extract and compile by themselves (i.e. launch the compilation through the embedded script).
这样产生的存档文件不解压文件到临时目录下,但会在当前目录下创建一个新目录。这在分发自解压、自编译软件包时比较好。
--current : Files will be extracted to the current directory, instead of in a subdirectory. This option implies --notemp above.
解压文件到当前目录下,替代解压到一个子目录下。这个选项包含上文的--notemp。
--follow : Follow the symbolic links inside of the archive directory, i.e. store the files that are being pointed to instead of the links themselves.
--append (new in 2.1.x): Append data to an existing archive, instead of creating a new one. In this mode, the settings from the original archive are reused (compression type, label, embedded script), and thus don't need to be specified again on the command line.
--header : Makeself 2.0 uses a separate file to store the header stub, called "makeself-header.sh". By default, it is assumed that it is stored in the same location as makeself.sh. This option can be used to specify its actual location if it is stored someplace else.
--copy : Upon extraction, the archive will first extract itself to a temporary directory. The main application of this is to allow self-contained installers stored in a Makeself archive on a CD, when the installer program will later need to unmount the CD and allow a new one to be inserted. This prevents "Filesystem busy" errors for installers that span multiple CDs.
--nox11 : Disable the automatic spawning of a new terminal in X11.
--nowait : When executed from a new X11 terminal, disable the user prompt at the end of the script execution.
--nomd5 and --nocrc : Disable the creation of a MD5 / CRC checksum for the archive. This speeds up the extraction process if integrity checking is not necessary.
--lsm file : Provide and LSM file to makeself, that will be embedded in the generated archive. LSM files are describing a software package in a way that is easily parseable. The LSM entry can then be later retrieved using the '-lsm' argument to the archive. An exemple of a LSM file is provided with Makeself.
archive_dir is the name of the directory that contains the files to be archived
file_name is the name of the archive to be created
label is an arbitrary text string describing the package. It will be displayed while extracting the files.
startup_script is the command to be executed from within the directory of extracted files. Thus, if you wish to execute a program contain in this directory, you must prefix your command with "./". For example, ./program will be fine. The script_args are additionnal arguments for this command.