All Projects → electron-archive → brightray_example

electron-archive / brightray_example

Licence: MIT license
An example application using Brightray

Programming Languages

C++
36643 projects - #6 most used programming language
python
139335 projects - #7 most used programming language
Objective-C++
1391 projects
objective c
16641 projects - #2 most used programming language
c
50402 projects - #5 most used programming language

Brightray Example

This is an example app that uses Brightray.

Development

Prerequisites

  • Python 2.7
  • Mac:
    • Xcode
  • Windows:
    • Visual Studio 2010 SP1

One-time setup

You must previously have built and uploaded libchromiumcontent using its script/upload script.

$ script/bootstrap http://base.url.com/used/by/script/upload

Building

$ script/build

This will build the app into the build directory.

Running

Run out/Debug/brightray_example

On Linux, you'll need libchromiumcontent.so in your library path. Run this first: export LD_LIBRARY_PATH=$PWD/vendor/brightray/vendor/download/libchromiumcontent/Release

On Linux, you'll also need to copy the Chrome SUID sandbox or explicitly run without it. Any of these three choices should work:

  • Run tools/linux/copy-chrome-sandbox.sh to install the sandbox. The script must be run as root.
  • Use the sandbox from an existing installed Chrome: CHROME_DEVEL_SANDBOX=/usr/lib/chromium-browser/chrome-sandbox out/Debug/brightray_example
  • Use no sandbox: out/Debug/brightray_example --disable-setuid-sandbox

License

See the LICENSE file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].