Code Monkey home page Code Monkey logo

Comments (7)

evancz avatar evancz commented on May 18, 2024

Can you say more about how this sets the PATH? Part of why we use /usr/local/bin/ right now is that we do not want to assume any particular kind of terminal. Is this approach going to work on every Mac regardless of terminal? If so, that seems good :)

After that, I think everything you say makes sense. I don't think we can do this for 0.13, but I do think this would be much nicer :)

from elm-platform.

evancz avatar evancz commented on May 18, 2024

So I think I am on board for this. I don't think it'll complicate the installer code very much, and it seems like a nice improvement for users. Are you thinking of working on it?

from elm-platform.

JasonJAyalaP avatar JasonJAyalaP commented on May 18, 2024

OS X is notoriously convoluted and broken when it comes to setting PATH, but /etc/paths.d/ seems to be the most universal and forward thinking. All shells and terminals will pick it up.

You did the right thing and made the installer using the pkg utils and plain text. I could never figure that out. I used the Packages GUI app which isnโ€™t git friendly. Everything I proposed should be an easy addition, but I assume that included the Uninstaller as an second package will require some new variables and fiddling around.

Iโ€™ll try poking around and see if I can figure it out, but no promises.

Ahh. As a formality (on a broken-anyway-so-not-like-it-matters system):
The uninstall script (running as a postinstall for the uninstall sub-package) should have (the elm version of):
/usr/sbin/pkgutil --forget org.nimrod-lang.pkg.Nimrod

And the the postinstall script for the, uhm, installer, should have:
/usr/sbin/pkgutil --forget org.nimrod-lang.pkg.Nimrod.Uninstall=

from elm-platform.

JasonJAyalaP avatar JasonJAyalaP commented on May 18, 2024

Did you use package maker (from Apple) to create the installer? Is this directory meant to be open and edited from within the app?

from elm-platform.

evancz avatar evancz commented on May 18, 2024

Let's open a new issue to sort out anything that still needs sorting.

from elm-platform.

evancz avatar evancz commented on May 18, 2024

Oh, I just read through everything. I don't really know if this should be open or closed.

Everything you describe here makes sense to me, but I definitely don't have bandwidth to work on this myself. All the resources that are part of the mac installer are created by hand in some way or another. Whenever there's a change needed, I do it by hand.

from elm-platform.

evancz avatar evancz commented on May 18, 2024

Alright, I gotta close. Not sure what the correct path forward is, and it's better to close issues when that's the case.

from elm-platform.

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.