electron-installer-flatpak
Advanced tools
Comparing version 0.4.0 to 0.4.1
{ | ||
"name": "electron-installer-flatpak", | ||
"description": "Create a Flatpak package for your Electron app.", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -1,6 +0,7 @@ | ||
# electron-installer-flatpak [![Version](https://img.shields.io/npm/v/electron-installer-flatpak.svg)](https://www.npmjs.com/package/electron-installer-flatpak) | ||
# electron-installer-flatpak [![Version](https://img.shields.io/npm/v/electron-installer-flatpak.svg)](https://www.npmjs.com/package/electron-installer-flatpak) [![Build Status](https://img.shields.io/travis/endlessm/electron-installer-flatpak/master.svg)](http://travis-ci.org/endlessm/electron-installer-flatpak) | ||
Create a flatpak for your Electron app. This is based off the | ||
[electron-installer-debian](https://github.com/unindented/electron-installer-debian) | ||
tool. | ||
tool. Add flatpak support to an electron app using [electron-packager](https://github.com/electron-userland/electron-packager) | ||
with minimal configuration. | ||
@@ -91,6 +92,6 @@ ## Requirements | ||
``` | ||
$ electron-installer-flatpak --src dist/app-linux-x64/ --dest dist/installers/ --arch x86_64 | ||
$ electron-installer-flatpak --src dist/app-linux-x64/ --dest dist/installers/ --arch x64 | ||
``` | ||
You'll end up with the package at `dist/installers/app_0.0.1_x86_64.flatpak`. | ||
You'll end up with the package at `dist/installers/app_0.0.1_x64.flatpak`. | ||
@@ -114,4 +115,4 @@ ### Scripts | ||
"start": "electron .", | ||
"build": "electron-packager . app --platform linux --arch x86_64 --out dist/", | ||
"flatpak64": "electron-installer-flatpak --src dist/app-linux-x64/ --dest dist/installers/ --arch x86_64" | ||
"build": "electron-packager . app --platform linux --arch x64 --out dist/", | ||
"flatpak64": "electron-installer-flatpak --src dist/app-linux-x64/ --dest dist/installers/ --arch x64" | ||
}, | ||
@@ -132,3 +133,3 @@ "devDependencies": { | ||
You'll end up with the package at `dist/installers/app_0.0.1_x86_64.flatpak`. | ||
You'll end up with the package at `dist/installers/app_0.0.1_x64.flatpak`. | ||
@@ -151,3 +152,3 @@ ### Programmatically | ||
dest: 'dist/installers/', | ||
arch: 'amd64' | ||
arch: 'x64' | ||
} | ||
@@ -167,3 +168,3 @@ | ||
You'll end up with the package at `dist/installers/app_0.0.1_x86_64.flatpak`. | ||
You'll end up with the package at `dist/installers/app_0.0.1_x64.flatpak`. | ||
@@ -187,3 +188,3 @@ ### Options | ||
``` | ||
$ electron-installer-flatpak --src dist/app-linux-x64/ --arch x86_64 --config config.json | ||
$ electron-installer-flatpak --src dist/app-linux-x64/ --arch x64 --config config.json | ||
``` | ||
@@ -256,3 +257,3 @@ | ||
Type: `String` | ||
Default: `FIXME` | ||
Default: `https://s3-us-west-2.amazonaws.com/electron-flatpak.endlessm.com/electron-base-app-master.flatpakref` | ||
@@ -283,3 +284,6 @@ Url of a flatpakref to use to auto install the base application. | ||
Machine architecture the package is targeted to. | ||
Machine architecture the package is targeted to. Suggested to use node style | ||
arches here ('ia32', 'x64'), which will be converted to flatpak style arches | ||
('i386', 'x86_64') when calling into the actual flatpak commands. Directly | ||
using flatpak style arches is also supported. | ||
@@ -286,0 +290,0 @@ #### options.finishArgs |
@@ -28,3 +28,3 @@ #!/usr/bin/env node | ||
}) | ||
.example('$0 --src dist/app/ --dest dist/installer/ --arch i386', 'use metadata from `dist/app/`') | ||
.example('$0 --src dist/app/ --dest dist/installer/ --arch ia32', 'use metadata from `dist/app/`') | ||
.example('$0 --src dist/app/ --dest dist/installer/ --config config.json', 'use metadata from `config.json`') | ||
@@ -31,0 +31,0 @@ .wrap(null) |
347065
394