فهرست منبع

Document config file options

Thomas Kluyver 11 سال پیش
والد
کامیت
e75b1f4d5f
2فایلهای تغییر یافته به همراه65 افزوده شده و 1 حذف شده
  1. 64 0
      doc/cfgfile.rst
  2. 1 1
      doc/index.rst

+ 64 - 0
doc/cfgfile.rst

@@ -0,0 +1,64 @@
+The Config File
+===============
+
+All paths in the config file are relative to the directory where the config
+file is located, unless noted otherwise.
+
+Application section
+-------------------
+
+.. describe:: name
+
+  The user-readable name of your application. This will be used for various
+  display purposes in the installer, and for shortcuts when installed.
+
+.. describe:: version
+
+  The version number of your application.
+
+.. describe:: script
+
+  Path to the Python script which launches your application.
+
+.. describe:: icon (optional)
+
+  Path to a ``.ico`` file to be used for shortcuts to your application. pynsis
+  has a default generic icon, but you probably want to replace it.
+
+Python section
+--------------
+
+.. describe:: version
+
+  The Python version to download and bundle with your application. At present,
+  this needs to be at least ``3.3.0``.
+
+.. describe:: bitness (optional)
+
+  Whether to use 32-bit (x86) or 64-bit (x64) Python. On Windows, this defaults
+  to the version you're using, so that compiled modules will match. On other
+  platforms, it defaults to 32-bit.
+
+Include section
+---------------
+
+.. describe:: packages (optional)
+
+   A list of importable package and module names to include in the installer.
+   Specify only top-level packages, i.e. without a ``.`` in the name.
+
+.. describe:: files (optional)
+
+   Extra files to be installed with your application.
+
+Build section
+-------------
+
+.. describe:: directory (optional)
+
+   The build directory. Defaults to ``build/nsis/``.
+
+.. describe:: installer_name (optional)
+
+   The filename of the installer, relative to the build directory. The default
+   is made from your application name and version.

+ 1 - 1
doc/index.rst

@@ -48,7 +48,7 @@ Quickstart
 .. toctree::
    :maxdepth: 2
 
-
+   cfgfile
 
 Indices and tables
 ==================