- 论坛徽章:
- 0
|
回复 6# iamlimeng
这个bind 选项我也注意到了
--bind file
List an additional file to include in the application. The
application can access this file at runtime through the
"PerlApp::get_bound_file()" and "PerlApp::extract_bound_file()"
functions. Separate multiple filenames with semicolons. This option
can be repeated.
Additional options can be specified after the filename, within
brackets and separated by commas:
name[option1,option2,...]
Valid options are:
file=filename
Specifies the filesystem name of the file to be bound. Cannot
be specified together with "data". If neither "file" nor "data"
is specified, then the bound "name" is used as the filesystem
name as well.
data=*text*
File contents specified as literal text. Cannot be specified
together with "file".
text
The file will be read in text mode on Windows.
extract
The bound file is extracted into the "TEMP" directory upon
application start. It is deleted when the application
terminates. The extraction directory is added to the "PATH"
environment variable (as well as to the "LD_LIBRARY_PATH"
variable on Unix). It is also added to the front of @INC.
mode=*file permissions*
Specifies the access mode for the file when extracted either by
the "extract" option or the "PerlApp::extract_bound_file()"
function. File permissions must be specified as an octal number
(0555 by default); "PerlApp" implicitly calls chmod() after
extracting the file to make sure it ends up with the right
permission bits. The "mode=" prefix is optional.
Examples:
--bind PerlEz.dll[file=\perl\bin\PerlEz.dll,extract]
--bind data.txt[text,0777]
Note: Files bound using the "extract" suboption of "--bind" or
extracted via "PerlApp::extract_bound_file()" are written to a a
per-process temporary directory and are automatically deleted when
the process ends. This occurs regardless of whether the "--clean"
option is used.
我想的也是 bind 一下就可以了
但试了几次都失败,以为是自己对上文理解错了
有机会再好好研究一下吧
谢谢你的回复 |
|