hyper/readme.md

86 lines
3.9 KiB
Markdown
Raw Normal View History

![](https://github.com/zeit/art/blob/525bd1bb39d97dd3b91c976106a6d5cc5766b678/hyper/repo-banner.png)
2016-07-27 05:31:13 -08:00
[![macOS CI Status](https://circleci.com/gh/zeit/hyper.svg?style=shield)](https://circleci.com/gh/zeit/hyper)
2017-07-06 07:18:06 -08:00
[![Windows CI status](https://ci.appveyor.com/api/projects/status/kqvb4oa772an58sc?svg=true)](https://ci.appveyor.com/project/zeit/hyper)
[![Linux CI status](https://travis-ci.org/zeit/hyper.svg?branch=master)](https://travis-ci.org/zeit/hyper)
2017-05-26 07:26:47 -08:00
[![Slack Channel](http://zeit-slackin.now.sh/badge.svg)](https://zeit.chat/)
[![Changelog #213](https://img.shields.io/badge/changelog-%23213-lightgrey.svg)](https://changelog.com/213)
2016-09-21 06:36:31 -08:00
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)
2016-07-21 10:49:29 -08:00
2016-10-06 08:39:14 -08:00
For more details, head to: https://hyper.is
2016-07-15 08:22:55 -08:00
2016-07-27 05:41:49 -08:00
## Usage
2016-07-15 08:22:55 -08:00
2016-12-12 12:34:19 -09:00
[Download the latest release!](https://hyper.is/#installation)
2016-07-27 07:12:16 -08:00
If you are on macOS, you can also use [Homebrew Cask](https://caskroom.github.io/) to download the app by running these commands:
```bash
2016-12-30 15:04:23 -09:00
brew update
brew cask install hyper
```
If you are on Windows, you can use [chocolatey](https://chocolatey.org/) to install the app by running the following command (package information can be found [here](https://chocolatey.org/packages/hyper/)):
```bash
choco install hyper
```
**Note:** The version available on [Homebrew Cask](https://caskroom.github.io/) or [Chocolatey](https://chocolatey.org) may not be the latest. Please consider downloading it from [here](https://hyper.is/#installation) if that's the case.
## Contribute
Regardless of the platform you are working on, you will need to have Yarn installed. If you have never installed Yarn before, you can find out how at: https://yarnpkg.com/en/docs/install.
1. Install necessary packages:
* Windows
- Be sure to run `yarn global add windows-build-tools` to install `windows-build-tools`.
* macOS
- Once you have installed Yarn, you can skip this section!
* Linux(You can see [here](https://en.wikipedia.org/wiki/List_of_Linux_distributions) what your Linux is based on.)
- RPM-based
+ `GraphicsMagick`
+ `libicns-utils`
+ `xz` (Installed by default on some distributions.)
- Debian-based
+ `graphicsmagick`
+ `icnsutils`
+ `xz-utils`
2. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device
2017-02-23 12:02:53 -09:00
3. Install the dependencies: `yarn`
4. Build the code and watch for changes: `yarn run dev`
5. To run `hyper`
* `yarn run app` from another terminal tab/window/pane
* If you are using **Visual Studio Code**, select `Launch Hyper` in debugger configuration to launch a new Hyper instance with debugger attached.
To make sure that your code works in the finished application, you can generate the binaries like this:
```bash
2017-02-23 12:02:53 -09:00
yarn run dist
```
After that, you will see the binary in the `./dist` folder!
#### Known issues that can happen during development
##### Error building `node-pty`
2017-01-06 17:14:52 -09:00
2017-01-15 06:34:07 -09:00
If after building during development you get an alert dialog related to `node-pty` issues,
2017-02-23 12:02:53 -09:00
make sure its build process is working correctly by running `yarn run rebuild-node-pty`.
2017-01-06 17:14:52 -09:00
If you are on macOS, this typically is related to Xcode issues (like not having agreed
2017-01-06 17:14:52 -09:00
to the Terms of Service by running `sudo xcodebuild` after a fresh Xcode installation).
##### Error with `codesign` on macOS when running `yarn run dist`
If you have issues in the `codesign` step when running `yarn run dist` on macOS, you can temporarily disable code signing locally by setting
`export CSC_IDENTITY_AUTO_DISCOVERY=false` for the current terminal session.
2016-07-27 07:03:50 -08:00
## Related Repositories
2016-07-27 05:41:49 -08:00
- [Art](https://github.com/zeit/art/tree/master/hyper)
- [Website](website/)
2016-07-27 07:03:50 -08:00
- [Sample Extension](https://github.com/zeit/hyperpower)
2016-08-08 07:28:08 -08:00
- [Sample Theme](https://github.com/zeit/hyperyellow)
2017-10-16 23:18:27 -08:00
- [Awesome Hyper](https://github.com/bnb/awesome-hyper)