Permalink
Browse files

Merge pull request #389 from sihorton/master

Update of readme to link to appjs.com and download from bintray
  • Loading branch information...
2 parents 90416f4 + 1c215a7 commit addfc7918657a41d7418af6b5079f8e8cda93c54 @milani milani committed Sep 12, 2013
Showing with 64 additions and 4 deletions.
  1. +4 −4 README.md
  2. +1 −0 binding.gyp
  3. +59 −0 docs/building.md
View
@@ -9,7 +9,7 @@ AppJS is an SDK to develop desktop applications using Node.js melded with Chromi
---
-* __Site: [appjs.org](http://appjs.org)__
+* __Site: [appjs.com](http://appjs.com)__
* __[Google+](https://plus.google.com/u/0/112803615725562877790/posts)__
* __Mailing List: [mailing list](https://groups.google.com/forum/#!forum/appjs-dev)__
* __IRC: #appjs at irc.freenode.net__
@@ -19,9 +19,9 @@ The below packages include everything needed to get started with AppJS, includin
__AppJS 0.0.20 Distributables:__
-* Linux [32 bit](http://dists.appjs.org/0.0.20/appjs-0.0.20-linux-ia32.tar.gz) / [64 bit](http://dists.appjs.org/0.0.20/appjs-0.0.20-linux-x64.tar.gz) -> app.sh
-* [Mac](http://dists.appjs.org/0.0.20/appjs-0.0.20-darwin-ia32.zip) -> app.sh
-* [Windows](http://dists.appjs.org/0.0.20/appjs-0.0.20-win32-ia32.zip) -> app.exe
+* Linux [32 bit](http://dl.bintray.com/sihorton/appjs/appjs-0.0.20-linux-ia32.tar.gz) / [64 bit](http://dl.bintray.com/sihorton/appjs/appjs-0.0.20-linux-x64.tar.gz) -> app.sh
+* [Mac](http://dl.bintray.com/sihorton/appjs/appjs-0.0.20-darwin-ia32.zip) -> app.sh
+* [Windows](http://dl.bintray.com/sihorton/appjs/appjs-0.0.20-win32-ia32.zip) -> app.exe
__npm install__
*OS X install is currently broken*
View
@@ -325,6 +325,7 @@
'EnableIntrinsicFunctions': 'true',
'RuntimeTypeInfo': 'false',
'ExceptionHandling': '1',
+ 'AdditionalOptions': [ '/EHsc' ]
},
'VCLibrarianTool': {
'AdditionalOptions': [
View
@@ -77,3 +77,62 @@ Then run it:
Visual C++ 2010 must be available in some form. You can download [Visual C++ 2010 Express](http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express) for free.
While not required, [MozillaBuild](http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-Latest.exe) is the recommended build environment to compile in. It ensures you have all the dependencies and environmental variables in place. When you want to compile simply run "start-msvc10.bat" in the MozillaBuild folder, then `cd /c/path/to/appjs`.
+
+### Windows Alternative (detailed)
+
+This section explains how to take a fresh windows 7 install and gives detailed instructions on how to compile appjs.
+
+#### NPM / node-gyp
+The first step involves creating a working npm environment that is able to compile C++ modules.
+* Go to [nodejs.org](http://nodejs.org/) and click on the install button to get the latest version of node.
+* Click on the "Node.js Command Prompt" link and then type in:
+
+ npm install -g node-gyp
+* Install python (version 2.7.3 since version 3.* versions are not compatible).
+ * http://www.python.org/download/releases/2.7.3/
+* Create an environment variable PYTHON = <install directory>\python.exe
+
+#### Free C++ Compiler setup
+This section details using the free visual studio express edition since that is available for all.
+
+* Download the Microsoft Visual Studio C++ 2010 Express (http://go.microsoft.com/?linkid=9709949)
+ * This link is a web installer and it installs a lot of stuff (2.3 gig)
+ * install includes .Net Framework 4 and Microsoft SQL Server Compact
+
+* For windows 7 you will also need to download and install Microsoft Windows SDK for Windows 7
+ * Link is another web installer that installs a further 1.6 gig
+ * http://www.microsoft.com/en-us/download/details.aspx?displayLang=en&id=8279
+
+* Service Pack 1 can then be installed
+ * http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=75568aa6-8107-475d-948a-ef22627e57a5
+ * VC-Compiler-KB2519277.exe (http://www.microsoft.com/en-us/download/details.aspx?id=4422)
+
+To test for a working environment you can open the nodejs command prompt and enter the following:
+
+ npm install sqlite3
+
+It may give some warnings but as long as it does not show any red colours then it should print something like
+
+ sqlite3@2.1.5 node_modules\sqlite3
+
+#### Building Appjs
+
+* git clone https://github.com/appjs/appjs
+ * If you are new to git you can try tortoise git http://code.google.com/p/tortoisegit/wiki/SetupHowTo
+* Download the cef binary from https://github.com/appjs/appjs/downloads
+ * extract to appjs/deps/cef
+ * you can download the 32 bit and 64 bit version and swap between them when compiling for different architectures.
+ * SET npm_config_arch=ia32 to build for 32 bit
+ * SET npm_config_arch=x64 to build for 64 bit.
+* In the "Windows SDK 7.1 Command Prompt"
+ * cd to appjs directory
+ * install node modules:
+ * npm install mime
+ * to build for 32bit on a 64bit machine:
+ * setenv /x86
+ * SET npm_config_arch=ia32
+ * then in the appjs directory type
+
+ node-gyp rebuild > build.log
+
+

0 comments on commit addfc79

Please sign in to comment.