{"id":24443594,"url":"https://github.com/endlessm/grunt-electron-installer-flatpak","last_synced_at":"2025-04-12T21:26:58.605Z","repository":{"id":57170603,"uuid":"69709108","full_name":"endlessm/grunt-electron-installer-flatpak","owner":"endlessm","description":"Create a flatpak for your Electron app.","archived":false,"fork":false,"pushed_at":"2016-12-17T00:25:57.000Z","size":813,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-04-03T19:51:18.385Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/endlessm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-30T23:36:04.000Z","updated_at":"2018-07-08T02:06:30.000Z","dependencies_parsed_at":"2022-08-27T13:11:41.506Z","dependency_job_id":null,"html_url":"https://github.com/endlessm/grunt-electron-installer-flatpak","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endlessm%2Fgrunt-electron-installer-flatpak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endlessm%2Fgrunt-electron-installer-flatpak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endlessm%2Fgrunt-electron-installer-flatpak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endlessm%2Fgrunt-electron-installer-flatpak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/endlessm","download_url":"https://codeload.github.com/endlessm/grunt-electron-installer-flatpak/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248633567,"owners_count":21136891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-20T22:16:48.723Z","updated_at":"2025-04-12T21:26:58.568Z","avatar_url":"https://github.com/endlessm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-electron-installer-flatpak [![Version](https://img.shields.io/npm/v/grunt-electron-installer-flatpak.svg)](https://www.npmjs.com/package/grunt-electron-installer-flatpak) [![Build Status](https://img.shields.io/travis/endlessm/grunt-electron-installer-flatpak/master.svg)](http://travis-ci.org/endlessm/grunt-electron-installer-flatpak)\n\nCreate a Flatpak package for your Electron app. This is based off the\n[grunt-electron-installer-debian](https://github.com/unindented/grunt-electron-installer-debian)\ntool.\n\nNot a fan of [Grunt](http://gruntjs.com/)? Use the vanilla module [`electron-installer-flatpak`](https://github.com/endlessm/electron-installer-flatpak)!\n\n\n## Requirements\n\nThis tool requires `flatpak` \u003e= 0.6.13 to be installed on your system and\nGrunt `~0.4.0`\n\n## Getting Started\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-electron-installer-flatpak --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-electron-installer-flatpak')\n```\n\n*This plugin was designed to work with Grunt 0.4.x. If you're still using grunt v0.3.x it's strongly recommended that [you upgrade](http://gruntjs.com/upgrading-from-0.3-to-0.4), but in case you can't please use [v0.3.2](https://github.com/gruntjs/grunt-contrib-copy/tree/grunt-0.3-stable).*\n\n\n## Installer task\n\n_Run this task with the `grunt electron-installer-flatpak` command._\n\nTask targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide.\n\n### Usage\n\nSay your Electron app lives in `path/to/app`, and has a structure like this:\n\n```\n.\n├── LICENSE\n├── README.md\n├── node_modules\n│   ├── electron-packager\n│   └── electron-prebuilt\n├── package.json\n├── resources\n│   ├── Icon.png\n│   ├── IconTemplate.png\n│   └── IconTemplate@2x.png\n└── src\n    ├── index.js\n    ├── main\n    │   └── index.js\n    └── renderer\n        ├── index.html\n        └── index.js\n```\n\nYou now run `electron-packager` to build the app for Flatpak:\n\n```\n$ electron-packager . app --platform linux --arch x64 --out dist/\n```\n\nAnd you end up with something like this in your `dist` folder:\n\n```\n.\n└── dist\n    └── app-linux-x64\n        ├── LICENSE\n        ├── LICENSES.chromium.html\n        ├── content_shell.pak\n        ├── app\n        ├── icudtl.dat\n        ├── libgcrypt.so.11\n        ├── libnode.so\n        ├── locales\n        ├── natives_blob.bin\n        ├── resources\n        ├── snapshot_blob.bin\n        └── version\n```\n\nIn order to create a flatpak for your app, the configuration for your Grunt task would look like this:\n\n```js\n'electron-installer-flatpak': {\n  app: {\n    options: {\n      arch: 'x64'\n    },\n    src: 'path/to/app/dist/app-linux-x64',\n    dest: 'path/to/app/dist/installers/'\n  }\n}\n```\n\nThe task will try to extract all necessary information from your `package.json`, and then generate your package at `path/to/app/dist/installers/`.\n\nYou can also create different packages for different architectures, while manually overriding certain options:\n\n```js\n'electron-installer-flatpak': {\n  options: {\n    productName: 'Foo',\n    categories: [\n      'Utility'\n    ],\n  },\n\n  linux32: {\n    options: {\n      arch: 'ia32'\n    },\n    src: 'path/to/app/dist/app-linux-ia32',\n    dest: 'path/to/app/dist/installers/'\n  },\n\n  linux64: {\n    options: {\n      arch: 'x64'\n    },\n    src: 'path/to/app/dist/app-linux-x64',\n    dest: 'path/to/app/dist/installers/'\n  }\n}\n```\n\n### Options\n\nSee the options supported by [`electron-installer-flatpak`](https://github.com/endlessm/electron-installer-flatpak#options).\n\n\n## Meta\n\n* Code: `git clone git://github.com/endlessm/grunt-electron-installer-flatpak.git`\n* Home: \u003chttps://github.com/endlessm/grunt-electron-installer-flatpak/\u003e\n\n\n## Contributors\n\n* Daniel Perez Alvarez ([unindented@gmail.com](mailto:unindented@gmail.com))\n* Matt Watson ([mattdangerw@gmail.com](mailto:mattdangerw@gmail.com))\n\n\n## License\n\nCopyright (c) 2016 Daniel Perez Alvarez ([unindented.org](https://unindented.org/)). This is free software, and may be redistributed under the terms specified in the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendlessm%2Fgrunt-electron-installer-flatpak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendlessm%2Fgrunt-electron-installer-flatpak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendlessm%2Fgrunt-electron-installer-flatpak/lists"}