1j01 / jspaint

🎨 Classic MS Paint, REVIVED + ✨Extras
https://jspaint.app/about
MIT License
7.16k stars 562 forks source link

package as native desktop app #2

Open JonET opened 8 years ago

JonET commented 8 years ago

This is really cool, but the limitations on copy and paste limit it's usefulness.

Ever thought of packaging it with one of the web -> desktop frameworks out there? http://electron.atom.io/

There are APIs for clipboard access and you could get access to the file system proper. (I miss the old paint).

1j01 commented 8 years ago

Yes, this is something I want to do. You can already run it with nw.js (clone repo, npm i, npm start) but I don't think it has any benefits, i.e. I haven't yet implemented proper clipboard support or a dialogue when closing or subwindows that can actually go outside the main window or anything. Also, jspaint tries to be always saved, and if you close a tab you can reopen it to get the session back, but on desktop this will need some other kind of handling.

devxpy commented 6 years ago

+1 This would be really nice to have. JS paint is definitely better than the over cluttered desktop apps we have on linux.

Its so simple that 5 year old can use it, and I mean literally, because I am using Paint since i was 5.

Having this as the default desktop image editing tool would be sick.

Thanks for making this project, really appreciate it!

1j01 commented 4 years ago

I've made a lot of progress on this, now merged into master.

Things that are done:

I'm not interested in pursuing this, but if someone wants to help, the next step is to find someone with experience releasing electron apps (specifically with electron forge) to help set up autoupdating.


To try out the desktop app so far, see Development Setup on the readme.

abdatta commented 4 years ago

Maybe we can make it into an installable PWA instead. Desktops are supporting PWAs as well now irrespective of OS (as long as you have chrome). Would probably be easier.

1j01 commented 4 years ago

@abdatta Yeah that's definitely more of a priority. So far jspaint is installable (as a PWA), but doesn't work offline (no service worker). See https://github.com/1j01/jspaint/issues/109

HKalbasi commented 3 years ago

@1j01 It is not installable (At least on chromium desktop). It need a service worker (even an empty one). #144 will solve it.

o0101 commented 3 years ago

I think this problem is solved.

https://github.com/c9fe/jspaint.exe

HKalbasi commented 2 years ago

I'm afraid of releasing an app that can't update. (Similar to why I haven't made the PWA offline-capable)

Service worker can be configured to first look at online version and only fallback to cached when there is no connection.

1j01 commented 2 years ago

The electron app is essentially done, just needs autoupdating set up and to be published (plus a few fixes — I may have broken file saving in recent changes?)

1j01 commented 3 months ago

I just pushed a bunch of improvements to the Electron app to master if anyone wants to give it a test:

I might publish a prerelease version soon to make testing easier.

1j01 commented 3 months ago

I published Windows/Mac/Linux builds for testing: https://github.com/1j01/jspaint/releases/tag/v1.0.0-beta.1 Please try it out!

Note that Windows and Mac will likely block running it by default, since it's not code-signed. On Windows you have to say "More info", then "Run anyway", and on Mac you have to hold Control while clicking the file and then select "Open" in the menu and then "Open" in the dialog.