hyper/scripts/install.sh
Amio • 晋晓炜 2b38e0d84d Add missing shebang to scripts/install.sh (#85)
Fix the error when executing in some none-bash shell(eg. fish):

```
  Failed to execute process './scripts/install.sh'. Reason:
  exec: Exec format error
  The file './scripts/install.sh' is marked as an executable
    but could not be run by the operating system.
```
2016-07-15 12:43:50 -07:00

13 lines
529 B
Bash
Executable file

#!/usr/bin/env bash
# Electron's version.
export npm_config_target=1.2.3
# The architecture of Electron, can be ia32 or x64.
export npm_config_arch=x64
# Download headers for Electron.
export npm_config_disturl=https://atom.io/download/atom-shell
# Tell node-pre-gyp that we are building for Electron.
export npm_config_runtime=electron
# Tell node-pre-gyp to build module from source code.
export npm_config_build_from_source=true
# Install all dependencies, and store cache to ~/.electron-gyp.
HOME=~/.electron-gyp npm install