A Chrome app using avrgirl-arduino for sending Arduino code in a Chrome browser. Forked from noopkat/avrgirl-chrome-app. 🙏
A published version of this app is found in Chrome Web Store.
Yes, Google will end support for Chrome apps on Windows, Mac, and Linux, but they will still remain on Chrome OS for the "forseeable future". As a long term plan, it's not a good idea to build a Chrome App (unless you are targeting only Chrome OS).
To start project:
# Install dependencies
$ npm install
Before running this app locally, you usually need to updated the following things in your manifest.json
:
- Add your site's URL in
externally_connectable
. - Add
key
that correlates with your Chrome App ID. This will make sure that your users always get the same app ID when using the Chrome App locally.
- Visit
chrome://extensions/
and chosePack Extension
- Upload the generated CRX file on
CRX Viewer
- Inspect the page and navigate to
Console
. Here you will find the following:Public key (paste into manifest.json to preserve extension ID)
. - Add the key in your
manifest.json
(askey
) - Voilà! You now have a key that matches your app ID. This means that the app ID always will be the same.
# Make a bundle of background.js if changes has been made
$ npm run bundle
- In your Chrome browser, visit
chrome://extensions
- Click
Load unpacked extension
- Navigate to your repo, and click
Select
- Click
Launch
when you see the extension appear at the top of the extensions list - Copy the
id
value of the extension. This is yourextensionid
. - Now you can play with you app! 🎉