-
Notifications
You must be signed in to change notification settings - Fork 7
BlocklyPropClient.linux.spec Creation Details
Parallax Git Administrator edited this page Mar 16, 2017
·
1 revision
The BlocklyPropClient.linux.spec is the build specification file for Linux. This file contains Python executable source generated automatically by the pyi-makespec
command and later amended to include features not expressible via the pyi-makespec command-line options.
This spec file is meant to be executed by the PyInstaller application to generate the proper Linux executable package (self-contained folder with executable, Python libraries, icon file, etc.)
- Navigate to the project
- $ cd ~/Projects/BlocklyPropClient
- Generate a new BlocklyPropClient.spec file
- $ pyi-makespec --windowed --icon BlocklyPropClient.ico --noupx BlocklyPropClient.py
- Update the BlocklyPropClient.spec file to include propeller-tools content
- Below the "exe" block, add the following three lines
#Propeller Tools
propeller_libs_and_tools = Tree('propeller-tools', prefix='propeller-tools', excludes=['*.pdf', 'windows', 'mac'])
propeller_libs_and_tools += [('about.txt', 'about.txt', 'About file')]
- Above the the "coll" block, indicate that it is modified
#Collection (edited to include Propeller Tools)
- Below the "coll" block's "a.datas," line, insert the following line
propeller_libs_and_tools,
- Remove the "pathex" from the "analysis" block and, if wanting to save it, place it in commented form at the bottom of the file as follows:
#From Analysis
#pathex=['/home/developer/Projects/BlocklyPropClient'],
- Save the file and rename to BlocklyPropClient.linux.spec
Try out Parallax's BlocklyProp System with the Activity Bot or the S3 Robot. See the Learn site for even more!