Giter Club home page Giter Club logo

Comments (9)

gdowens avatar gdowens commented on August 17, 2024 2

Yeah, it's worth revisiting the install process entirely. Moving the discussion here #16

from deco-ide.

gdowens avatar gdowens commented on August 17, 2024 1

Would be awesome if you get it working. I have looked at https://www.npmjs.com/package/electron-sudo before, might be the right way to go for running the postinstall again after an upgrade.

from deco-ide.

namuol avatar namuol commented on August 17, 2024 1

Hmm. Seems like we'd be better off avoiding the need for sudo in the first place, if possible.

I'm guessing this is mainly a requirement in OS X when modifying signed/system executables or something to that effect, yes?

from deco-ide.

gdowens avatar gdowens commented on August 17, 2024

Ah! It is a very poorly named file. This is essentially a cocoascripted cocoa app that is used to run scripts with sudo access. See desktop/handlers/upgradeHandler.js

from deco-ide.

BHSPitMonkey avatar BHSPitMonkey commented on August 17, 2024

I was just working toward the same goal and hit the same roadblock. Hope one of us gets somewhere!

from deco-ide.

gdowens avatar gdowens commented on August 17, 2024

@namuol we install some things into the system path (watchman, node, etc) — those generally require sudo. You never know if someone has certain folder permissions set strangely as well, so it avoids the installer failing in those edge cases. Open to finding ways around sudo; I agree it is an annoyance.

from deco-ide.

namuol avatar namuol commented on August 17, 2024

There could be a path to install deco with npm, which would effectively require node to be installed in the first place. Other binaries (i.e. watchman) could just be dependencies in package.json, and would be executed with npm scripts.

It's probably safe to assume most React developers have node installed. :)

from deco-ide.

gdowens avatar gdowens commented on August 17, 2024

@namuol

True, however, we have seen interest from designers and some other non-dev types.

Perhaps we could include in the installer an optional "Environment Setup" step? Since Developers like to have more transparency into their environment and everyone else doesn't really want to deal with that stuff.

from deco-ide.

namuol avatar namuol commented on August 17, 2024

Hmm. Taking a step back: Why do watchman and node need to be system executables in the first place? Couldn't they just be bundled with Deco and run from its own installation location? i.e. ./<Deco>/libs/binaries/node

This would also have the benefit of ensuring the exact expected versions are being used to prevent environment inconsistencies.

from deco-ide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.