From c6d8ee41931bc8597434b10d2816f7409da866a8 Mon Sep 17 00:00:00 2001 From: Zen-CODE Date: Fri, 29 Mar 2013 13:11:07 -0500 Subject: [PATCH] Reworked the folder separators --- doc/sources/guide/packaging-windows.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/sources/guide/packaging-windows.rst b/doc/sources/guide/packaging-windows.rst index 0cdde300e..7c79b1f98 100644 --- a/doc/sources/guide/packaging-windows.rst +++ b/doc/sources/guide/packaging-windows.rst @@ -22,27 +22,27 @@ Create the spec file -------------------- For this example, we'll package the touchtracer example and embed a custom icon. -The touchtracer example is the `kivy/examples/demo/touchtracer` directory, and +The touchtracer example is the `kivy\examples\demo\touchtracer` directory, and the main file is named `main.py`. #. Double click on the Kivy.bat and a console will open. #. Go to the pyinstaller 2.0 directory, and create the initial specs:: cd pyinstaller-2.0 - python pyinstaller.py --name touchtracer ../kivy/examples/demo/touchtracer/main.py + python pyinstaller.py --name touchtracer ..\kivy\examples\demo\touchtracer\main.py You can also add an `icon.ico` file to the application folder in order to create an icon for the executable. If you don't have an .ico file available, you can convert your `icon.png` file to ico using the web app `ConvertICO `_. - Save the `icon.ico` in the touchtracer directory and type:: + Save the `icon.ico` in the touchtracer dxirectory and type:: - python pyinstaller.py --name touchtracer --icon ../kivy/examples/demo/touchtracer/icon.ico ../kivy/examples/demo/touchtracer/main.py + python pyinstaller.py --name touchtracer --icon ..\kivy\examples\demo\touchtracer\icon.ico ..\kivy\examples\demo\touchtracer\main.py For more options, please consult the `PyInstaller 2 Manual `_. #. The spec file will be `touchtracer.spec` located in inside the - pyinstaller + `/touchtracer` directory. Now we need to edit the spec file to add + pyinstaller + `\touchtracer` directory. Now we need to edit the spec file to add kivy hooks to correctly build the exe. Open the spec file with your favorite editor and add theses lines at the beginning of the spec:: @@ -74,9 +74,9 @@ Build the spec #. Go to the pyinstaller directory, and build the spec:: cd pyinstaller-2.0 - python pyinstaller.py touchtracer/touchtracer.spec + python pyinstaller.py touchtracer\touchtracer.spec -#. The package will be in the `touchtracer/dist/touchtracer` directory. +#. The package will be in the `touchtracer\dist\touchtracer` directory. Including Gstreamer