Skip to content

caseytrombley/phonegap-app-desktop

 
 

Repository files navigation

PhoneGap App Desktop Build status bitHound Score

Initial prototype of creating a desktop app for the PhoneGap CLI.

Getting Started

How To Build the PhoneGap App Desktop

  1. Make sure you have Git installed & setup; instructions can be found here.
  2. Make sure you have nodejs installed.
  3. install homebrew or update (if you already have homebrew installed) brew update
  4. install gcc, different methods listed below:
  5. using homebrew: 1. brew search gcc list available version of gcc 1. brew install gcc49 or brew install homebrew/versions/gcc49 depending on what is returned from the brew search gcc query (installs gcc version 4.9)
  6. command line without xcode: http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/
  7. using xcode: http://stackoverflow.com/questions/9353444/how-to-use-install-gcc-on-mac-os-x-10-8-xcode-4-4
  8. 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)
  9. you might be prompted to install XQuartz before you can complete the wine install.
  10. if libpng16.16.dylib is missing from usr/local/lib/, you can download it from one of the following places:
  11. clone the following project from Git https://github.com/anura-engine/anura.git and then copy anura/MacOS/dylibs/libpng16.16.dylib from your local repo and paste into usr/local/lib/
  12. clone the following project from Git https://github.com/jyr/MNPP.git and then copy MNPP/Library/png/lib/libpng16.16.dylib from your local repo and paste into usr/local/lib/
  13. install php5.5 brew install homebrew/php/php55 (was supposed to install libpng16.16.dylib but didn't for me...)
  14. install mono brew install mono
  15. add export MONO_GAC_PREFIX="/usr/local" to .bash_profile`
  16. reload .bash_profile by typing in . ~/.bash_profile
  17. install samba brew install samba
  18. Create a fork of the phonegap-app-desktop repository.
  19. Clone your fork of the repository.
  20. Navigate to project folder on your local machine.
  21. Follow instructions in the Setup section.
  22. Follow instructions in the Build Development Binaries section or the Build Release Binaries section.

Setup

# install grunt cli
$ [sudo] npm install -g grunt-cli

# install dev dependencies
$ npm install

Development

# watch src/ and compile to www/
$ grunt watch

Build Development Binaries

# builds development binaries & runs the app
$ grunt

note: the first build requires a second call to grunt.

Build Release Binaries

# builds release binaries & runs the app
$ grunt release

Run App

# runs app without building
$ grunt open

Opens the application located in:

  • OS X: build/PhoneGap/osx/PhoneGap.app
  • Windows: build/PhoneGap/win/PhoneGap.exe

About

PhoneGap Desktop App

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 53.7%
  • HTML 15.6%
  • CSS 13.9%
  • Shell 5.8%
  • Python 4.6%
  • Inno Setup 4.5%
  • Other 1.9%