Giter VIP home page Giter VIP logo

electron-deep-linking-mac-win's People

Contributors

davej avatar dependabot[bot] avatar oikonomopo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

electron-deep-linking-mac-win's Issues

Debian compatibility?

Hi! there is any plans to do it compatible with debian? or is not possible?

Thanks!

A Javascript error occurred in the main process

First of all thank you for this awesome repo!

I found a bug when you try to open the app when it's already open:

A Javascript error occurred in the main process

Uncaught Exception:
ReferenceError: win is not defined at Function.app.makeSingleInstance

There is a way to fix it, to say that the app is already open or focus in the opened app ?

Linux support

It would be better if we had linux support on same git repository.

Not working on chrome

Cloned your repo and created a dist.

I am able to launch the app from safari & firebox by typing myapp://param in the url

But when I type the same url in "Chrome", the app is not being launched.

Does this even work in chrome?

Not working on Windows

Not working on Windows, but on MacOS all ok.
When I'm trying launch app through the deeplink from browser getting error "App launch error".
Why?

How do I pass the query Params to my index.html

Hello and thank you for putting this great app together.

Sorry in advance for the newbie question, I am able to launch the app from the browsers, which is great however I am unsure of how to access the the query params on my index.html page. Can you help me with this?

Looping over protocol in chrome

Executing the protocol from Chrome works, but only once. If I wanted to loop over the protocol, the protocol fires once, but never again. It's odd because I am able to do this in all other browsers.

Here is an example:

<iframe id="dataDiv" style="width:100%;align:center;overflow-y:hidden;" frameborder="0" scrolling="no" />

url = "custom-protocol://some-data?"

for (i = 0; i < 5; i++) {
  $("#dataDiv").attr("src", url + i);
}

This should execute a function based on the data 5 times in my electron app. It works perfectly in other browsers, just not chrome.

I also made a stack overflow for more detailed description about this issue:
https://stackoverflow.com/questions/55735666/looping-over-custom-protocol-with-chrome

Not working anymore on Mac on start

With electron 9,
on mac, when the app is starting the link is not passed to the app
only when the app is already open the "open-url" event captures the protocol

wonder if you have a solution
thanks

Error launching app | Unable to find Electron app

Hey, I am getting this error while launching the app from the browser.

image

The app is still under development (and I use npm start to launch it).

Let me know if you would like me to share the code here as well.

Not working when mainWindow in hidden to tray

Deep link only works if the mainWindows is opened.

My application hide's in tray when the close button is clicked, but then it stops listening to deep links

My hide code is this.

  mainWindow.on('minimize', function (event) {
    event.preventDefault();
    mainWindow.hide();
  });

  mainWindow.on('close', function (event) {
    if (!app.isQuiting) {
      event.preventDefault();
      mainWindow.hide();
    }

    return false;
  });

  tray = new Tray(icon16Path);
  const contextMenu = Menu.buildFromTemplate([
    { label: 'Configurações', click:  function(){
        mainWindow.show();
    } },
    { label: 'Fechar', click:  function(){
        app.isQuiting = true;
        app.quit();
    } }
  ]);
  tray.setContextMenu(contextMenu);

npm run dist facing issue

@Ketans-MacBook-Pro custom % npm run dist

[email protected] dist /Applications/XAMPP/xamppfiles/htdocs/custom
build

Configuring yargs through package.json is deprecated and will be removed in the next major release, please use the JS API instead.
Configuring yargs through package.json is deprecated and will be removed in the next major release, please use the JS API instead.
• electron-builder version=20.40.2
• loaded configuration file=package.json ("build" field)
• writing effective config file=dist/builder-effective-config.yaml
• no native production dependencies
• packaging platform=darwin arch=x64 electron=5.0.1 appOutDir=dist/mac
• default Electron icon is used reason=application icon is not set
• skipped macOS application code signing reason=cannot find valid "Developer ID Application" identity or custom non-Apple code signing certificate, see https://electron.build/code-signing allIdentities=
0 identities found

                                           Valid identities only
                                              0 valid identities found

• building target=macOS zip arch=x64 file=dist/electron-deeplinking-macos-win32-0.0.1-mac.zip
• building target=DMG arch=x64 file=dist/electron-deeplinking-macos-win32-0.0.1.dmg
• building embedded block map file=dist/electron-deeplinking-macos-win32-0.0.1-mac.zip
Error: Exit code: 2. Command failed: /usr/bin/perl /private/var/folders/f_/yhbfz7pn3c1bzrcw_g1r25j40000gn/T/t-wMifIL/1-dmgProperties.pl
Can't locate Mac/Memory.pm in @inc (you may need to install the Mac::Memory module) (@inc contains: /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.4 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at /private/var/folders/f_/yhbfz7pn3c1bzrcw_g1r25j40000gn/T/t-wMifIL/1-dmgProperties.pl line 4.
BEGIN failed--compilation aborted at /private/var/folders/f_/yhbfz7pn3c1bzrcw_g1r25j40000gn/T/t-wMifIL/1-dmgProperties.pl line 4.

Can't locate Mac/Memory.pm in @inc (you may need to install the Mac::Memory module) (@inc contains: /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.4 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at /private/var/folders/f_/yhbfz7pn3c1bzrcw_g1r25j40000gn/T/t-wMifIL/1-dmgProperties.pl line 4.
BEGIN failed--compilation aborted at /private/var/folders/f_/yhbfz7pn3c1bzrcw_g1r25j40000gn/T/t-wMifIL/1-dmgProperties.pl line 4.

at /Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/builder-util/src/util.ts:126:16
at ChildProcess.exithandler (child_process.js:315:5)
at ChildProcess.emit (events.js:314:20)
at maybeClose (internal/child_process.js:1047:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)

From previous event:
at _applyProperties (/Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/dmg-builder/out/dmgUtil.js:179:27)
at applyProperties (/Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/dmg-builder/out/dmgUtil.js:166:27)
at /Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/dmg-builder/src/dmg.ts:305:9
From previous event:
at _customizeDmg (/Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/dmg-builder/out/dmg.js:455:24)
at customizeDmg (/Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/dmg-builder/out/dmg.js:399:24)
at /Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/dmg-builder/src/dmg.ts:48:54
at /Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/dmg-builder/src/dmgUtil.ts:37:31
From previous event:
at _attachAndExecute (/Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/dmg-builder/out/dmgUtil.js:120:28)
at attachAndExecute (/Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/dmg-builder/out/dmgUtil.js:97:28)
at /Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/dmg-builder/src/dmg.ts:48:16
at Generator.next ()
From previous event:
at DmgTarget.build (/Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/dmg-builder/src/dmg.ts:21:42)
at Function.buildAsyncTargets (/Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/app-builder-lib/src/platformPackager.ts:140:36)
at MacPackager.packageInDistributableFormat (/Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/app-builder-lib/src/platformPackager.ts:119:24)
at /Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/app-builder-lib/src/macPackager.ts:90:26
at processImmediate (internal/timers.js:461:21)
From previous event:
at /Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/app-builder-lib/src/macPackager.ts:90:10
at Generator.next ()
From previous event:
at MacPackager.pack (/Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/app-builder-lib/src/macPackager.ts:80:95)
at /Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/app-builder-lib/src/packager.ts:430:24
at Generator.next ()
at /Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/fs-extra-p/node_modules/fs-extra/lib/mkdirs/mkdirs.js:56:16
at /Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/graceful-fs/polyfills.js:285:20
at FSReqCallback.oncomplete (fs.js:178:5)
From previous event:
at Packager.doBuild (/Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/app-builder-lib/src/packager.ts:396:24)
at /Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/app-builder-lib/src/packager.ts:366:57
at Generator.next ()
at /Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/graceful-fs/graceful-fs.js:111:16
at /Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/graceful-fs/graceful-fs.js:45:10
at FSReqCallback.oncomplete (fs.js:165:23)
From previous event:
at Packager._build (/Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/app-builder-lib/src/packager.ts:335:133)
at /Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/app-builder-lib/src/packager.ts:331:23
at Generator.next ()
at processImmediate (internal/timers.js:461:21)
From previous event:
at Packager.build (/Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/app-builder-lib/src/packager.ts:288:14)
at build (/Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/app-builder-lib/src/index.ts:59:28)
at build (/Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/electron-builder/src/builder.ts:228:10)
at /Applications/XAMPP/xamppfiles/htdocs/custom/node_modules/electron-builder/src/cli/cli.ts:46:19

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.