1
0
mirror of https://github.com/rhysd/Mstdn.git synced 2025-01-21 20:52:11 +01:00

Added options for installation with yarn

This commit is contained in:
Nicolas Tsagarides 2017-04-25 00:41:49 +03:00 committed by GitHub
parent f1059130be
commit 6184a3999f

View File

@ -31,13 +31,19 @@ the ability to Mastodon page in desktop application window out of browser.
$ npm install -g mstdn $ npm install -g mstdn
``` ```
### Via [yarn][]
```
$ yarn global add mstdn --prefix /usr/local
```
### As an isolated app ### As an isolated app
Download a package archive from [Release page][], put unarchived app to proper place, and open it. Download a package archive from [Release page][], put unarchived app to proper place, and open it.
## Usage ## Usage
If you installed this app via npm, below command is available to start app. If you installed this app via npm or yarn, below command is available to start app.
``` ```
$ open-mstdn-app $ open-mstdn-app
@ -370,7 +376,7 @@ In debug mode, app outputs all logs to stdout and opens DevTools for a page rend
automatically. You can also see logs in 'console' tab of DevTools for debugging renderer process. automatically. You can also see logs in 'console' tab of DevTools for debugging renderer process.
```sh ```sh
# If you installed this app via npm # If you installed this app via npm or yarn
$ NODE_ENV=development open-mstdn-app $ NODE_ENV=development open-mstdn-app
# Package on macOS # Package on macOS
@ -393,6 +399,7 @@ Please feel free to make an issue on GitHub or mention on Mastodon/Twitter.
[Mastodon]: https://github.com/tootsuite/mastodon [Mastodon]: https://github.com/tootsuite/mastodon
[npm]: https://www.npmjs.com/package/mstdn [npm]: https://www.npmjs.com/package/mstdn
[yarn]: https://yarnpkg.com/en/package/mstdn
[Release page]: https://github.com/rhysd/Mstdn/releases [Release page]: https://github.com/rhysd/Mstdn/releases
[Electron]: electron.atom.io [Electron]: electron.atom.io
[sandbox doc]: https://github.com/electron/electron/blob/master/docs/api/sandbox-option.md [sandbox doc]: https://github.com/electron/electron/blob/master/docs/api/sandbox-option.md