-
install npm
-
Git clone 3 repos : https://github.com/puneetgkaur/cordova-cli, https://github.com/puneetgkaur/cordova-lib, https://github.com/puneetgkaur/cordova-plugman into a directory
-
Run the following commands:
cd cordova-plugman npm install sudo npm link cd .. cd cordova-lib npm install sudo npm link cd .. cd cordova-cli npm install sudo npm link npm link ../cordova-lib/cordova-lib cordova-lib npm link ../cordova-plugman/ plugman
cordova create "project directory" "project id" "project name"
this creates a cordova project in current dir"project directory" as you specify above. The project id and name of the project - that is the name of the sugar activity is set using the project name variable.
cordova platform add sugar
After this, develop your sugar activity by modifying the project dir\www folder - place where the web app lies. Once the modification is through, build the project by following commands.
When you dont want to add any extra tool button then use the default option and issue the following command :
cordova build sugar
If you have added extra toolbutton then compile your app using the following command :
cordova build sugar -- noiframe
Once you are succesfully build the project, you would find the .xo kept in project dir\platforms\sugar\cordova directory which you can copy and paste into sugar-build folder and run the command sugar-install-bundle "project name".xo