Coder Social home page Coder Social logo

Comments (6)

jck112 avatar jck112 commented on May 27, 2024

What's the best solution here?

  1. Removing the uninstall script? (e.g. jck112@20a9ac8)
  2. Adding a parameter to allow casks to skip uninstall on upgrade (e.g. skip_uninstall_on_upgrade true)?
  3. Adding a mechanism to backup/restore files on upgrade?
  4. Give up on upgrading logi-options-plus using Homebrew?

from homebrew-cask.

bevanjkay avatar bevanjkay commented on May 27, 2024

Usually we have chosen to not use the in built installer and replicated the functionality in using our uninstall options in Homebrew.

The methods that remove preferences and configuration can be moved to the zap stanza instead of uninstall.

from homebrew-cask.

jck112 avatar jck112 commented on May 27, 2024

Okay thanks, I went ahead and uploaded #167500 to remove the uninstall script.

from homebrew-cask.

jck112 avatar jck112 commented on May 27, 2024

This may be more complicated than originally thought. It seems some of the paths and bundle ids have changed since the cask was originally created. There is now an additional "/Applications/Utilities/Logi Options+ Driver Installer.bundle/Logi Options+ Driver Installer.app" that contains a System Extension. For maintainability it's probably best to figure out some way to keep using the script.

from homebrew-cask.

bevanjkay avatar bevanjkay commented on May 27, 2024

While we should look to a better systematic approach, to resolve this in the short-term would require not using the script.
Many apps require changes every now and then to the uninstall stanza as the features change over time, so it is not unique to this situation.

from homebrew-cask.

jck112 avatar jck112 commented on May 27, 2024

Here are all the files that are installed in the latest version (1.64.527952):
logi-options-plus-files.txt

I updated the pull request with the correct files in the uninstall and zap stanzas. I tested repeated install/uninstall scenarios to ensure user-specific files are preserved correctly.

from homebrew-cask.

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.