Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update of readme to link to appjs.com and download from bintray #389

Merged
merged 6 commits into from

2 participants

@sihorton
Owner

This pull request updates the readme so the links all work. I also noticed I had updated the docs and done a minor fix for the windows build script so they are part of this pull request as well.

@sihorton
Owner

can you accept this pull request -- it updates the documentation to make building on windows much easier, and fixes simple build errors. Once that is done Ashish wants to add further updates to document all of the fixes to problems that came up for him. It would make it much easier for new people to checkout the code and get it building on windows.

@milani milani merged commit addfc79 into appjs:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 65 additions and 5 deletions.
  1. +4 −4 README.md
  2. +2 −1  binding.gyp
  3. +59 −0 docs/building.md
View
8 README.md
@@ -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
3  binding.gyp
@@ -325,6 +325,7 @@
'EnableIntrinsicFunctions': 'true',
'RuntimeTypeInfo': 'false',
'ExceptionHandling': '1',
+ 'AdditionalOptions': [ '/EHsc' ]
},
'VCLibrarianTool': {
'AdditionalOptions': [
@@ -355,7 +356,7 @@
'GdiPlus.lib',
'Shlwapi.lib',
'<(module_root_dir)/deps/cef/lib/Release/libcef.lib',
- '<(module_root_dir)/build/Release/lib/libcef_dll_wrapper.node'
+ '<(module_root_dir)/build/Release/lib/libcef_dll_wrapper.lib'
],
},
}]
View
59 docs/building.md
@@ -37,3 +37,62 @@ The [Chromium Embedded Frame](https://github.com/appjs/appjs/downloads) distribu
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
+
+
Something went wrong with that request. Please try again.