arthur-caillaud / electron-deep-linking-mac-win

Minimal electron project with deep linking capabilities in macOS/win32 platforms (Single Instance Application)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

electron-deep-linking-macOS-win32

codebeat badge

Open app and pass parameters with deep linking using Electron (macOS/win32).

This app is registered as myapp://. For example, open Safari browser, enter myapp://param at address bar. Then 'electron-deep-linking-mac-win' app will start and provided url will be printed to dev console!

Project is based to Quick Start Guide within the Electron documentation, then followed ‘electron-builder’ quick-setup-guide to produce macOS/win32 installers.

To Use

To clone and run this repository you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

# Clone this repository
git clone https://github.com/oikonomopo/electron-deep-linking-mac-win.git
# Go into the repository
cd electron-deep-linking-mac-win
# Install dependencies
npm install
# Run the app
npm start
# Produce installer
npm run dist

After running the installer (at electron-deep-linking-mac-win/dist/), you can try to open 'electron-deep-linking-mac-win' app with deep linking, by entering myapp://param at Safari address-bar. At chrome it will work by embedding the custom url in a link: f.e. <a href="myapp://param">Open app</a>

License

GNU GPLv3

About

Minimal electron project with deep linking capabilities in macOS/win32 platforms (Single Instance Application)

License:GNU General Public License v3.0


Languages

Language:JavaScript 86.3%Language:HTML 13.7%