Initial prototype of creating a desktop app for the PhoneGap CLI.
- Make sure you have Git installed & setup; instructions can be found here.
- Make sure you have nodejs installed.
- install homebrew or update (if you already have homebrew installed)
brew update
- install gcc, different methods listed below:
- using homebrew:
1.
brew search gcc
list available version of gcc 1.brew install gcc49
orbrew install homebrew/versions/gcc49
depending on what is returned from thebrew search gcc
query (installs gcc version 4.9) - command line without xcode: http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/
- using xcode: http://stackoverflow.com/questions/9353444/how-to-use-install-gcc-on-mac-os-x-10-8-xcode-4-4
- install wine
brew install wine --devel
(dev version is 1.7.32, the current stable version 1.6.2 caused a bunch of errors and did not work) - you might be prompted to install XQuartz before you can complete the wine install.
- if
libpng16.16.dylib
is missing fromusr/local/lib/
, you can download it from one of the following places: - clone the following project from Git
https://github.com/anura-engine/anura.git
and then copyanura/MacOS/dylibs/libpng16.16.dylib
from your local repo and paste intousr/local/lib/
- clone the following project from Git
https://github.com/jyr/MNPP.git
and then copyMNPP/Library/png/lib/libpng16.16.dylib
from your local repo and paste intousr/local/lib/
- install php5.5
brew install homebrew/php/php55
(was supposed to install libpng16.16.dylib but didn't for me...) - install mono
brew install mono
- add
export MONO_GAC_PREFIX="/usr/local" to
.bash_profile` - reload
.bash_profile
by typing in. ~/.bash_profile
- install samba
brew install samba
- Create a fork of the
phonegap-app-desktop
repository. - Clone your fork of the repository.
- Navigate to project folder on your local machine.
- Follow instructions in the Setup section.
- Follow instructions in the Build Development Binaries section or the Build Release Binaries section.
# install grunt cli
$ [sudo] npm install -g grunt-cli
# install dev dependencies
$ npm install
# watch src/ and compile to www/
$ grunt watch
# builds development binaries & runs the app
$ grunt
note: the first build requires a second call to grunt
.
# builds release binaries & runs the app
$ grunt release
# runs app without building
$ grunt open
Opens the application located in:
- OS X:
build/PhoneGap/osx/PhoneGap.app
- Windows:
build/PhoneGap/win/PhoneGap.exe