There is a simple way to develop applications with ionic and ionic2.
Q: Cordova needs to be installed, to install on Linux:
sudo apt-add-repository ppa:cordova-ubuntu/ppa
sudo apt-get update
sudo apt-get install cordova-cli
npm install -g cordova
sudo apt-get install cmake debhelper libx11-dev libicu-dev pkg-config qtbase5-dev qtchooser qtdeclarative5-dev qtfeedback5-dev qtlocation5-dev qtmultimedia5-dev qtpim5-dev qtsensors5-dev qtsystems5-dev
1) After creating the project, enter the folder and type:
ionic platform list
It will list the installed and available platforms.
2) Add the platforms
ionic platform add ios
ionic platform add android
ionic platform add windows
3) Update your project's config.xml
The iOS and android settings are already done after the add command, for windows insert the lines:
<platform name="winphone" />
<preference name="windows-target-version" value="10.0" />
<preference name="windows-phone-target-version" value="10.0" />
<preference name="Windows.Universal-MinVersion" value="10.0.10069.0" />
<preference name="Windows.Universal-MaxVersionTested" value="10.0.10166.0" />
4) Develop your application according to your Operating System
You said you're using Linux, so you're probably developing it for android.
5) Create an link account. This service will auto build for you on the platforms added to your project.
6) Upload your project (zip) on build.phonegap.com or enter the address of your repository in github
7) Have your app builds
8) You will receive the link to download the application directly on your cell phone or else you use to download the file built for the store
9) Follow the steps in the store in question to submit the application
10) End =)