forked from awef/read.crx-2
-
Notifications
You must be signed in to change notification settings - Fork 8
macOSでのビルド方法
yasuaki0521 edited this page Sep 22, 2023
·
7 revisions
- homebrew
- nodejs 7.6~ (require npm)
- clamav
- homebrewはインストール済みという想定です。
- Apple Silicon版 Mac ではclamavのパスを /usr/local/etc/clamav から /opt/homebrew/etc/clamav に置き換えてください。
# nodejs, clamavのインストール
brew install node clamav
# clamavの設定ファイルのコピー
cp /usr/local/etc/clamav/freshclam.conf{.sample,}
# Exampleを削除
/usr/bin/sed -i '' -e 's/Example//g' /usr/local/etc/clamav/freshclam.conf
# 定義ファイルの更新で失敗するので、ByteCodeのウイルス定義を未使用に
/usr/bin/sed -i '' -e 's/#Bytecode yes/Bytecode no/g' /usr/local/etc/clamav/freshclam.conf
# clamavのウイルス検知ファイルの更新
freshclam
- Build
# ソースの取得
git clone git://github.com/readcrx-2/read.crx-2.git
cd read.crx-2
# 依存関係の解決
npm install
# ビルド
npm run build:chrome #Chrome版
npm run build:firefox #Firefox版
- 以上の手順で、
read.crx-2/debug/chrome
またはread.crx-2/debug/firefox
にビルド済みのコードができるので、それをGoogle Chrome/Mozilla Firefoxのパッケージ化されていない拡張機能を読み込む...より選択してください。