Toinane / colorpicker

A mininal but complete colorpicker desktop app
https://colorpicker.fr
GNU General Public License v3.0
1.6k stars 120 forks source link

Windows fresh build fails #44

Closed rodrigorhas closed 2 years ago

rodrigorhas commented 5 years ago

As the title says, for about the last 3 hours (yup, this time) i was trying to do a simple npm install and i cannot get it to work due to:

I can't put the error messages here because i already solved some of them and i lost the error messages...

So, i thing all the issues i've got was related only to robotjs build. Is there a way to skip this build process or even make it easier?

UPDATE 1

i've just found some errors reported by the npm install

Toinane commented 5 years ago

Hey! Thanks for your issue! yeah I'll need to make a documentation on how to compile colorpicker on local..

The delicate part is related to native module like robotjs, win-mouse and osx-mouse. For windows, you have to :

Make sure you use a newer version of NodeJS like NodeJS 8 or NodeJS 10. The installation is not expected to work with a previous version like NodeJS 6

when you run npm install, it should just install all dependencies, you'll need to run npm run rebuild, this command will rebuild all native modules for the version of Electron Colorpicker use.

If it doesn't work again, I don't know if it can help but I've installed Visual Studio with all its options proposed during installation on my Windows

rodrigorhas commented 5 years ago

Damn. This is so annoying. I'll give it a try later and I'll report back if your "recipe" is right haha :grinning:

Toinane commented 5 years ago

Yeah sorry 😞It's not so easy to add native module into Electron project.. And I need it to make picker work.

Toinane commented 4 years ago

For this issue, I'll update the readme with more informations. Since I'll change the picker feature in next update, this will be more easier to build for development πŸ‘