From 95eb3ad9b5fdcb66fcc222b87ed65d392e632643 Mon Sep 17 00:00:00 2001 From: hensm Date: Tue, 5 Mar 2019 01:31:06 +0000 Subject: [PATCH] Update packaging docs --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 965ef9c..17380a7 100644 --- a/README.md +++ b/README.md @@ -120,17 +120,26 @@ Build and package app and extension for current platform: npm run package ```` -Build and package app for linux platforms: +Packaging examples: ````sh +# Linux platforms npm run package --prefix ./app -- --platform=linux --packageType=deb npm run package --prefix ./app -- --platform=linux --packageType=rpm + +# Windows +npm run package --prefix ./app -- --platform=win32 + +# macOS +npm run package --prefix ./app -- --platform=darwin ```` ##### Package script arguments -* `--platform` `"win"`,`"mac"`,`"linux"` - Select the platform to build for. +* `--platform` `"win32"`,`"darwin"`,`"linux"` + Select the platform to build for. Defaults to current platform. +* `--arch` `"x64"`,`"x86"` + Select platform arch to build for. Defaults to current platform arch. * `--packageType` `"deb"`,`"rpm"` Select the package type. Defaults to `deb`. Only relevant when building for Linux.