LoginSignup
2
2

More than 5 years have passed since last update.

Electron で作成されたリッチなマークダウンプレビュアー Shiba をソースからビルドした際の備忘録

Posted at

Electron と Polymer と TypeScript でリッチなマークダウンプレビュアー Shiba つくった で作者が紹介している Shiba に個人的に欲しい機能を加えられないかと検討していて、そもそも自力でビルドできるかを確認したのでメモしておく。

記述時の環境

  • VineSeed (Vine Linux 開発版) 64bit
  • nodebrew use v6.3.0
  • ruby 2.2.4p230 (2015-12-16 revision 53155)
    • ruby-rubygems-2.4.5
    • rubygem-rake-10.4.2

グローバルにインストールが必要なもの

  • node.js パッケージ
    • bower
    • typings
  • Ruby Gem パッケージ
    • slim

electron 関連パッケージは、ローカルインストールでも可。(以下の手順で自動でインストールされる。)

前項パッケージのインストール

$ npm install -g bower
$ npm install -g typings
$ gem install slim

Shiba のビルド(実行)

$ git clone https://github.com/rhysd/Shiba.git
$ cd Shiba
$ npm install
$ npm start

パッケージ化

Linux 向け実行体を作成し、zip にする場合の例。

$ ./node_modules/.bin/electron-packager . Shiba --platform=linux --arch=x64
$ zip -r Shiba-linux-x64.zip Shiba-linux-x64
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2