Skip to content

Commit 5d7161c

Browse files
committed
Merge remote-tracking branch 'origin/BuildAndPackage' into BuildAndPackage
2 parents 29979aa + e42e6cb commit 5d7161c

File tree

1 file changed

+29
-18
lines changed

1 file changed

+29
-18
lines changed

README.md

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -152,31 +152,42 @@ These steps need be performed frequently, as needed, after System Configuration
152152
* cd package
153153
* Run the mac_sign_and_package script giving the proper version number and deploy option
154154
* To include the FTDI USB Drivers inside the installer:
155-
* ./mac_app_sign_and_package.sh -a "BlocklyPropClient" -v 0.5.1 -r -f -d
155+
* _$ ./mac_app_sign_and_package.sh -a "BlocklyPropClient" -v 0.5.1 -r -f -d_
156156
* To exclude the FTDI USB Drivers from the installer:
157-
* ./mac_app_sign_and_package.sh -a "BlocklyPropClient" -v 0.5.1 -d
157+
* _$ ./mac_app_sign_and_package.sh -a "BlocklyPropClient" -v 0.5.1 -d_
158158
* The installer package will be written to the ../dist subfolder as BlocklyPropClient-0.5.1-setup-MacOS.pkg
159159
* Deactivate the Virtual Environment...
160-
* (VPython)$ deactivate
160+
* _(VPython)$ deactivate_
161161
* The "(VPython)" prefix will now disappear from your command-line
162162

163163
#### BlocklyPropClient.macos.spec Details
164164

165165
The BlocklyPropClient.macos.spec is the build specification file for Mac OS. This file contains Python executable source generated automatically by the pyi-makespec command and also later amended to include features not expressible via the pyi-makespec command-line.
166166

167167
To regenerate a specification file for Mac OS:
168-
* From within the ~/PythonProjects/BlocklyPropClient folder...
169-
* Activate the _Virtual Python_ environment for BlocklyPropClient
170-
* _$ source VPython/bin/activate_
171-
* Generate a new BlocklyPropClient.spec file
172-
* _(VPython)$ pyi-makespec --windowed --icon BlocklyPropClient.icns --osx-bundle-identifier com.ParallaxInc.BlocklyPropClient --noupx BlocklyPropClient.py_
173-
* Update the BlocklyPropClient.spec file to include propeller-tools content
174-
* Below the "exe" block, add the following three lines
175-
> # Propeller Tools
176-
> propeller_libs_and_tools = Tree('propeller-tools', prefix='propeller-tools', excludes=['*.pdf', 'windows', 'linux'])
177-
> propeller_libs_and_tools += [('about.txt', 'about.txt', 'About file')]
178-
* Above the "coll" block, indicates it is modified
179-
> # Collection (edited to include Propeller Tools)
180-
* Below the "coll" block's "a.datas," line, insert the following line
181-
> propeller_libs_and_tools,
182-
* Save the file and rename to __BlocklyPropClient.macos.spec__
168+
* Navigate to the project
169+
* _$ cd ~/PythonProjects/BlocklyPropClient_
170+
* Activate the _Virtual Python_ environment for BlocklyPropClient
171+
* _$ source VPython/bin/activate_
172+
* Generate a new BlocklyPropClient.spec file
173+
* _(VPython)$ pyi-makespec --windowed --icon BlocklyPropClient.icns --osx-bundle-identifier com.ParallaxInc.BlocklyPropClient --noupx BlocklyPropClient.py_
174+
* Update the BlocklyPropClient.spec file to include propeller-tools content
175+
* Below the "exe" block, add the following three lines
176+
177+
```
178+
#Propeller Tools
179+
propeller_libs_and_tools = Tree('propeller-tools', prefix='propeller-tools', excludes=['*.pdf', 'windows', 'linux'])
180+
propeller_libs_and_tools += [('about.txt', 'about.txt', 'About file')]
181+
```
182+
183+
* Above the "coll" block, indicates it is modified
184+
```
185+
#Collection (edited to include Propeller Tools)
186+
```
187+
188+
* Below the "coll" block's "a.datas," line, insert the following line
189+
```
190+
propeller_libs_and_tools,
191+
```
192+
193+
* Save the file and rename to __BlocklyPropClient.macos.spec__

0 commit comments

Comments
 (0)