mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-16 03:06:27 +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:
@@ -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.
|
||||||
|
|||||||
@@ -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` 配下に作成されます。
|
||||||
|
|||||||
Reference in New Issue
Block a user