Skip to content

Commit

Permalink
Linux Packaging and Deeplinks support (#350)
Browse files Browse the repository at this point in the history
* Linux packaging babel fix

* Linux deeplink support

* Fix missing ./ducks/claims import when packaging
  • Loading branch information
rithvikvibhu authored Jun 10, 2021
1 parent 284365a commit 17c08db
Show file tree
Hide file tree
Showing 5 changed files with 950 additions and 180 deletions.
6 changes: 3 additions & 3 deletions app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ if (
require('electron-debug')();
}

if (process.env.NODE_ENV === 'development' && process.platform === 'win32') {
if (process.env.NODE_ENV === 'development' && (process.platform === 'win32' || process.platform === 'linux')) {
app.setAsDefaultProtocolClient('bob', process.execPath, [
path.resolve(path.join(app.getAppPath(), 'dist', 'main.js')),
]);
} else if (process.platform === 'win32') {
} else if (process.platform === 'win32' || process.platform === 'linux') {
app.setAsDefaultProtocolClient('bob', process.execPath, [
path.resolve(path.join(app.getAppPath(), 'main.js')),
]);
Expand All @@ -56,7 +56,7 @@ if (isPrimaryInstance) {

// Protocol handler for win32
// argv: An array of the second instance’s (command line / deep linked) arguments
if (process.platform === 'win32') {
if (process.platform === 'win32' || process.platform === 'linux') {
// Keep only command line / deep linked arguments
deeplinkingUrl = argv[argv.length - 1];
}
Expand Down
File renamed without changes.
Loading

0 comments on commit 17c08db

Please sign in to comment.