@@ -7,9 +7,9 @@ __Downloading the packaged Ardublockly__: The binaries will be hosted in GitHub
...
@@ -7,9 +7,9 @@ __Downloading the packaged Ardublockly__: The binaries will be hosted in GitHub
## Building Ardublockly from source
## Building Ardublockly from source
These scripts are currently built and tested using Python 2.7.
These scripts have tested using Python 2.7.
While it is possible to maintain compatibility with other Python versions (the ArdublocklyServer Python package used in the developer installation has been tested on Python 2.7 and 3.4), due to the multiple individual perks of the python libraries used here, it has been decided to target a single build environment.
While it is possible to maintain compatibility with other Python versions (the ArdublocklyServer Python package used in the developer installation has been tested on Python 2.7 and 3.4), due to the multiple individual perks of the python libraries used here, a single build environment will be targeted.
If you are using Python virtual environments on Windows this [collection of Python extensions binaries][2] is highly recommended.
If you are using Python virtual environments on Windows this [collection of Python extensions binaries][2] is highly recommended.
...
@@ -28,23 +28,36 @@ CEF Python provides python bindings for the Chromium Embedded Framework. This is
...
@@ -28,23 +28,36 @@ CEF Python provides python bindings for the Chromium Embedded Framework. This is
#### py2exe
#### py2exe
py2exe is a Distutils extension to build Python scripts into Windows executable programs.
py2exe is a Distutils extension to build Python scripts into Windows executable programs.
There is a plan to migrate from py2exe to Pyinstaller, but for now this is the main library used to create the Windows build.
There is a plan to migrate from py2exe to Pyinstaller, but for now this is the main library used to create the Windows build.
You can download py2exe from their [official website][6].
You can download py2exe from their [official website][6].
#### MkDocs
MkDocs is a static page generator specifically designed for documentation using Markdown.
The project documentation is written and hosted in the [Arudblockly repository GitHub Wiki][7]. The build script for the documentation pulls its markdown files and converts them into an HTML static site for offline access.
More information about this procedure can be found in [this article][8].
Now navigate to the `package` folder in the project directory:
Now navigate to the `package` folder in the project directory:
```
```
cd ../package
cd package
```
To first build the offline documentation execute the `build_docs.py` file. This will add a folder named `documentation` into the project root directory:
```
python build_docs.py
```
```
To build Ardublockly all you have to do is execute the `build_windows.py` file:
To build Ardublockly all you have to do is execute the `build_windows.py` file:
...
@@ -54,7 +67,7 @@ python build_windows.py
...
@@ -54,7 +67,7 @@ python build_windows.py
This will remove any previous build directory (`/win` directory in project root), rebuild, and create the `ardublockly_run.bat` file into the project root.
This will remove any previous build directory (`/win` directory in project root), rebuild, and create the `ardublockly_run.bat` file into the project root.
To run Ardublockly then just execute the `ardublockly_run.bat` file.
To run Ardublockly on Windows execute the `ardublockly_run.bat` file.