From b7f426b03ffd23a5acbb57d91b4aad11d496fef5 Mon Sep 17 00:00:00 2001 From: Kazuhisa Hara Date: Fri, 17 Nov 2017 17:22:37 +0900 Subject: [PATCH] [doc] Add how to creating distribution packages Signed-off-by: Kazuhisa Hara --- docs/build.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) 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.