Skip to content

Commit

Permalink
Add support for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
siphomateke committed Sep 22, 2020
1 parent 8d9fd83 commit 3a08ab4
Show file tree
Hide file tree
Showing 5 changed files with 595 additions and 6 deletions.
Binary file added build/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions build/linux/desktop.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Desktop Entry]
<% if (productName) { %>Name=<%= productName %>
<% } %><% if (description) { %>Comment=<%= description %>
<% } %><% if (genericName) { %>GenericName=<%= genericName %>
<% } %><% if (name) { %>Exec=<%= name %> %U
Icon=<%= name %>
<% } %>Type=Application
StartupNotify=true
StartupWMClass=raindrop.io
Icon=/usr/share/pixmaps/raindrop.png
<% if (categories && categories.length) { %>Categories=<%= categories.join(';') %>;
<% } %><% if (mimeType && mimeType.length) { %>MimeType=<%= mimeType.join(';') %>;
<% } %>
32 changes: 31 additions & 1 deletion forge.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
const path = require('path')

const linuxConfig = {
icon: './build/icon.png',
productName: 'Raindrop.io',
genericName: 'Bookmark manager',
description: 'All-in-one bookmark manager',
categories: ['Office', 'Utility', 'Productivity'],
}

module.exports = {
packagerConfig: {
icon: './build/icon',
Expand Down Expand Up @@ -37,7 +45,8 @@ module.exports = {
{
name: '@electron-forge/maker-zip',
platforms: [
'darwin'
'darwin',
'linux'
]
},
{
Expand Down Expand Up @@ -66,6 +75,27 @@ module.exports = {
setupIcon: path.resolve(__dirname, 'build', 'icon.ico'),
setupExe: 'RaindropInstaller.exe'
}
},
{
name: '@electron-forge/maker-deb',
config: {
options: {
...linuxConfig,
name: 'raindrop',
homepage: 'https://raindrop.io',
maintainer: 'Mussabekov Rustem',
desktopTemplate: './build/linux/desktop.ejs',
}
}
},
{
name: '@electron-forge/maker-flatpak',
config: {
options: {
...linuxConfig,
id: 'io.raindrop.Raindrop',
}
}
}
],
publishers: [
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"scripts": {
"dev": "electron-forge start",
"local": "electron-forge make --platform=darwin",
"local:linux": "electron-forge make --platform=linux",
"deploy_prod": "git branch -f release/production master && git push --force origin release/production"
},
"keywords": [],
Expand All @@ -31,7 +32,9 @@
},
"devDependencies": {
"@electron-forge/cli": "^6.0.0-beta.50",
"@electron-forge/maker-deb": "^6.0.0-beta.53",
"@electron-forge/maker-dmg": "^6.0.0-beta.50",
"@electron-forge/maker-flatpak": "^6.0.0-beta.53",
"@electron-forge/maker-squirrel": "^6.0.0-beta.50",
"@electron-forge/maker-zip": "^6.0.0-beta.50",
"@electron-forge/publisher-github": "^6.0.0-beta.50",
Expand Down
Loading

0 comments on commit 3a08ab4

Please sign in to comment.