1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 18:56:22 +00:00

Merge pull request #1136 from kazuhisya/doc-for-dist-pkgs

[doc] Add how to creating distribution packages(deb, rpm)
This commit is contained in:
Kazz Yokomizo
2017-11-17 18:45:09 +09:00
committed by GitHub
2 changed files with 58 additions and 0 deletions

View File

@@ -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. 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. 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.

View File

@@ -46,3 +46,32 @@ grunt pre-build
実行ファイルは`dist`から見つかります。この場合、認証されていないため、自動アップデーターは使えません。 実行ファイルは`dist`から見つかります。この場合、認証されていないため、自動アップデーターは使えません。
必要であれば、この実行ファイルからCodesignやAuthenticodeなどの署名ができます。 必要であれば、この実行ファイルから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` 配下に作成されます。