cfgfile.rst 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. The Config File
  2. ===============
  3. All paths in the config file are relative to the directory where the config
  4. file is located, unless noted otherwise.
  5. Application section
  6. -------------------
  7. .. describe:: name
  8. The user-readable name of your application. This will be used for various
  9. display purposes in the installer, and for shortcuts and the folder in
  10. 'Program Files'.
  11. .. describe:: version
  12. The version number of your application.
  13. .. describe:: script
  14. Path to the Python script which launches your application.
  15. .. describe:: icon (optional)
  16. Path to a ``.ico`` file to be used for shortcuts to your application. pynsis
  17. has a default generic icon, but you probably want to replace it.
  18. .. describe:: console (optional)
  19. If ``true``, shortcuts will be created using the ``py`` launcher, which opens
  20. a console for the process. If ``false``, or not specified, they will use the
  21. ``pyw`` launcher, which doesn't create a console.
  22. .. _cfg_python:
  23. Python section
  24. --------------
  25. .. describe:: version
  26. The Python version to download and bundle with your application. At present,
  27. this needs to be at least ``3.3.0``.
  28. .. describe:: bitness (optional)
  29. ``32`` or ``64``, to use 32-bit (x86) or 64-bit (x64) Python. On Windows, this
  30. defaults to the version you're using, so that compiled modules will match. On
  31. other platforms, it defaults to 32-bit.
  32. Include section
  33. ---------------
  34. .. describe:: packages (optional)
  35. A list of importable package and module names to include in the installer.
  36. Specify only top-level packages, i.e. without a ``.`` in the name.
  37. .. describe:: files (optional)
  38. Extra files to be installed with your application.
  39. Build section
  40. -------------
  41. .. describe:: directory (optional)
  42. The build directory. Defaults to ``build/nsis/``.
  43. .. describe:: installer_name (optional)
  44. The filename of the installer, relative to the build directory. The default
  45. is made from your application name and version.