flackr / circ

An IRC packaged chrome app
BSD 3-Clause "New" or "Revised" License
387 stars 79 forks source link

Chrome App Migration? #414

Open bgiesing opened 8 years ago

bgiesing commented 8 years ago

In case you haven't seen yet @flackr, Google is discontinuing Chrome apps on every platform except Chrome OS. Any plans for CIRC then? Google says devs should convert it to either Progressive Web Apps or native packaging with Electron/NW.js.

They mention this also:

Q: My app uses the chrome sockets API to do networking. Can this be done with the open web?

You might be able to do what you need with WebSockets. However, to use this, you will likely need to change the remote end of your connection. If that isn’t possible (e.g. you’re connecting over an established protocol like IRC or SSH), you’ll need some sort of native component.

https://developers.chrome.com/apps/migration

atomic1fire commented 8 years ago

NW.js would probably be more likely, since they announced they have support for chrome apis

http://nwjs.io/blog/chrome-apps-support/

edit: CIRC seems to work right out of the box with NW.js

Instructions:

  1. Extract the CRX file (I use https://chrome.google.com/webstore/detail/chrome-extension-source-v/jifpbeccnghkjeaalbbjmodiffmgedin to download the CRX as a zip file, all you need to do is visit the CIRC extension page and click the CRX button inside the browser when it lights up)

    You will need to extract the zip folder into a folder or drive somewhere. I would just put it in the same place you put Nw.js (note for the dev: you don't actually need to create a CRX file, you just need an unpackaged chrome app with a valid manifest.json file and then tell nw.js which folder it's in.)

  2. Download Nw.js (the windows download is the binaries, so you shouldn't even need to do any compiling to test it)
  3. Set up a shortcut for nw.exe location_of_CIRC folder.

    I would just put a CIRC folder inside the same folder that houses nw.js, then you only need to run "nw.exe CIRC" as a command prompt command or make a shortcut for it.

Mac and linux instructions should probably be the same, but you'll set up a shortcut or use

$ /path/to/nw <folder path of the manifest.json file>

as your bash command.

caub commented 8 years ago

seeing the code, and how it uses globals, written in coffescript, uses jquery, I think it wouldn't be bad to rewrite it

Deide commented 8 years ago

I've forked and rewritten it with ES6/babel. No tests though, and a bug or two, but it's operational. However, I believe a new CIRC is being worked on anyway. On 6 Sep 2016 10:42 am, Cyril Auburtin notifications@github.com wrote:

seeing the code, and how it uses globals, written in coffesript, uses jquery, I think it wouldn't be bad to rewrite it

flackr commented 8 years ago

Yes, it's coming along slowly but if you want to see it there's a new version in development on the "server" branch. It currently requires running a nodejs server but I'll be adding support for running as a chrome packaged app so that it continues to work as a standalone application on chromebooks.