install_and_run.sh script automates the following tasks on posix platforms:
- creating cordova project
- downloading JXcore-cordova plugin
- adding it to the project
- optionally applies chosen sample application from
The script assumes, that cordova is already installed as well as android sdk and iOS tools.
There is also
install_and_run.batversion for Windows systems.
Download the script
install_and_run.sh and save into an empty folder.
Run the script
The following command runs the jxcore-cordova app with original sample.
Run the script with other sample
If you want to launch any of the prepared samples (from the
sample folder), you may add it's folder name like this:
$ ./install_and_run.sh "express sample"
$ ./install_and_run.sh "express performance sample"
By default the script runs the app on android platform, however you can uncomment the last two lines to run it also for iOS:
# or run on ios #cordova platforms add ios #cordova run ios
If you don't want to clone the jxcore-cordova repository each time you run the
install_and_run.sh script, you may download it manually once, e.g.:
$ mkdir myrepo $ cd myrepo $ git clone https://github.com/jxcore/jxcore-cordova
git clone command inside
cp -rf ~/path/to/myrepo/jxcore-cordova ./
This will just copy the jxcore-cordova folder instead of cloning it.