Sugar Cordova: Difference between revisions
remove all-cap words, reformat |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 37: | Line 37: | ||
==== Run and Check ==== | ==== Run and Check ==== | ||
# Go to cordova-cli/bin and run the command | # Go to cordova-cli/bin and run the command,<br>{{Code|./cordova create new_project}} | ||
# cd to the new_project directory created inside the bin folder | # cd to the new_project directory created inside the bin folder | ||
#: There run the command | #: There run the command,<br> {{Code|.././cordova platform add sugar}} | ||
# Then to build, run | # Then to build, run<br> {{Code|.././cordova build sugar}} | ||
The .xo generated would be present in cordova-cli/bin/new_project/platforms/sugar/cordova/HelloCordova.xo | The .xo generated would be present in cordova-cli/bin/new_project/platforms/sugar/cordova/HelloCordova.xo | ||
=== For Microsoft Windows === | === For Microsoft Windows === | ||
| Line 71: | Line 70: | ||
==== Run and Check ==== | ==== Run and Check ==== | ||
# Go to cordova-cli\bin and type | # Go to cordova-cli\bin and type<br>{{Code|cordova create <prj_directory> <prj_id> <prj_name>}} | ||
# cd to the project directory created inside the bin folder | # cd to the project directory created inside the bin folder | ||
# There run the command | # There run the command <br>{{Code|..\cordova platform add sugar}} | ||
# Then to build, run | # Then to build, run <br>{{Code|..\cordova build sugar}} | ||
{{Note/note|Note:|Windows users must install 7zip and set the environment variable ZIPCOMMAND with the command<br>{{Code|<nowiki>set ZIPCOMMAND="c:\Program Files\7-Zip\7z.exe" a -r -tzip -aoa</nowiki>}} before issuing the cordova build command.}} | |||