diff --git a/docs/build.md b/docs/build.md index 6daaca18..a236f41b 100644 --- a/docs/build.md +++ b/docs/build.md @@ -53,3 +53,32 @@ grunt pre-build You will find the executable in the `dist` directory. Note, the auto updater won't work because the app isn't signed. If you find it necessary, you can use codesign or authenticode with this executable. + +## Make own distribution packages (deb, rpm) + +Distribution packages are created by exec `grunt build` on Linux platform (e.g. Ubuntu, Fedora). + +> Note: You can create both `.deb` and `.rpm` in a single environment. + +After installing the supported version of `node` and `npm`, install build dependency packages. + + +Ubuntu/Debian: + +``` +$ sudo apt-get install -y rpm fakeroot +``` + +Fedora: + +``` +$ sudo dnf install -y dpkg dpkg-dev rpm-build fakeroot +``` + +Then execute `grunt build`. + +``` +$ grunt build +``` + +You will find `.deb` and `.rpm` in the `dist` directory. diff --git a/docs/jp/build.md b/docs/jp/build.md index 0e7270f1..4d0fab33 100644 --- a/docs/jp/build.md +++ b/docs/jp/build.md @@ -46,3 +46,32 @@ grunt pre-build 実行ファイルは`dist`から見つかります。この場合、認証されていないため、自動アップデーターは使えません。 必要であれば、この実行ファイルからCodesignやAuthenticodeなどの署名ができます。 + +## ディストリビューション用パッケージ (deb, rpm) + +ディストリビューション用パッケージはLinuxプラットフォーム(Ubuntu や Fedora)上で `grunt build` を実行する事で作成されます。 + +> 一つの環境で `.deb` と `.rpm` の両方を作成する事が出来ます。 + + +対応するバージョンの `node` と `npm` をインストールした後、必要なパッケージをインストールします。 + +Ubuntu/Debian: + +``` +$ sudo apt-get install -y rpm fakeroot +``` + +Fedora: + +``` +$ sudo dnf install -y dpkg dpkg-dev rpm-build fakeroot +``` + +`grunt build` を実行します。 + +``` +$ grunt build +``` + +`.deb` と `.rpm` は `dist` 配下に作成されます。