Skip to content

Instantly share code, notes, and snippets.

@daserge
Last active November 10, 2015 17:53
Show Gist options
  • Select an option

  • Save daserge/052c05b4eed4f730a14c to your computer and use it in GitHub Desktop.

Select an option

Save daserge/052c05b4eed4f730a14c to your computer and use it in GitHub Desktop.
Create mobile-spec from scratch on Windows

To create mobilespec from scratch use these commands (as Administrator):
Note: There should not be any spaces in the root path!

git clone https://github.com/apache/cordova-mobile-spec
cd cordova-mobile-spec\createmobilespec\
npm install
cd ..\..
git clone https://git-wip-us.apache.org/repos/asf/cordova-coho.git
cd cordova-coho\
npm install
cd ..\
.\cordova-coho\coho repo-clone -r mobile-spec -r plugin-test-framework -r cli -r lib -r plugman -r windows -r js -r plugins
mkdir cordova-cli\node_modules
cd cordova-lib\cordova-lib
npm install
cd ..\..
cd cordova-cli\node_modules
mklink /D cordova-lib ..\..\cordova-lib\cordova-lib
cd ..\..
cordova-coho\coho npm-link
cd cordova-cli
npm install
cd ..
node cordova-mobile-spec\createmobilespec\createmobilespec.js --windows mobilespec
msg "%username%" mobilespec created!

Or in one command:

git clone https://github.com/apache/cordova-mobile-spec && cd cordova-mobile-spec\createmobilespec\ && npm install && cd ..\.. && git clone https://git-wip-us.apache.org/repos/asf/cordova-coho.git && cd cordova-coho\ && npm install && cd ..\ && .\cordova-coho\coho repo-clone -r mobile-spec -r plugin-test-framework -r cli -r lib -r plugman -r windows -r js -r plugins && mkdir cordova-cli\node_modules && cd cordova-lib\cordova-lib && npm install && cd ..\.. && cd cordova-cli\node_modules && mklink /D cordova-lib ..\..\cordova-lib\cordova-lib && cd ..\.. && cordova-coho\coho npm-link && cd cordova-cli && npm install && cd .. && node cordova-mobile-spec\createmobilespec\createmobilespec.js --windows mobilespec && msg "%username%" mobilespec created!

The last command is optional - it just alerts when the process ends succesfully (or not). The whole processing takes about 8 minutes on my machine.

After you have all repos cloned you can create another mobilespec with command:

node cordova-mobile-spec\createmobilespec\createmobilespec.js --wp8 --android mobilespec2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment