• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

new script for mirror release upgrades

Scheduled Pinned Locked Moved General Discussion
6 Posts 2 Posters 1.5k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    sdetweil
    last edited by sdetweil Aug 24, 2019, 1:19 PM Jul 5, 2019, 5:27 PM

    as we get more users, we see the same errors occurring after each quarterly upgrade…

    i have started a script to do this for the users…

    lets collaborate and get it working…

    I’ll maintain a copy on my dropbox…
    https://www.dropbox.com/s/71xtxr18si7cpnq/upgrade-script.sh?dl=0

    right now it doesn’t DO the npm installs… (flag for that)
    we need to determine which files are important on the git pull ( i use fetch/diff to get the list of changed files)
    and what to do about them… reset hard or stash /stash pop after…

    know that package.json, package-lock.json and custom.css are files of concern so far…

    it find all modules which have a package.json, and goes into each and does npm install if the base npm install works…

    we know that some modules are difficult , because their electron version must match the base…
    how can we detect that and run electron-rebuild…

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    S 1 Reply Last reply Jul 5, 2019, 7:34 PM Reply Quote 3
    • D Offline
      dazza120
      last edited by Jul 5, 2019, 7:08 PM

      Thanks for your hard work Sir 🤙🏾

      S 1 Reply Last reply Jul 5, 2019, 7:32 PM Reply Quote 1
      • S Offline
        sdetweil @dazza120
        last edited by Jul 5, 2019, 7:32 PM

        @dazza120 my pleasure…

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @sdetweil
          last edited by Jul 5, 2019, 7:34 PM

          we know that each release WILL modify package.json (at least version number)

          typically changes to package.json are because someone installed extra modules (npm install ??? will update the file)

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil
            last edited by sdetweil Jul 6, 2019, 1:46 AM Jul 6, 2019, 1:34 AM

            and another question

            I have 20 modules installed in the modules folder… but only 2 are active that have package.json files.

            should we upgrade ALL of them? or only the active ones…(with disabled: false)

            I suspect that most of the time, the list will be the same either way. mine is weird cause I help others with module problems by installing them myself (and don’t erase for a while)

            one point to note here
            to get JUST the enabled ones, we need to run a tiny javascript file, (so it will take two files)
            otherwise we can do this all in bash

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            S 1 Reply Last reply Jul 28, 2019, 6:04 PM Reply Quote 0
            • S Offline
              sdetweil @sdetweil
              last edited by Jul 28, 2019, 6:04 PM

              see my post containing link to the new script

              https://forum.magicmirror.builders/topic/10859/new-upgrade-script-ready-for-testing

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy