MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    new script for mirror release upgrades

    General Discussion
    2
    6
    1040
    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
      sdetweil last edited by sdetweil

      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

      Create a working config
      How to add modules

      S 1 Reply Last reply Reply Quote 2
      • D
        dazza120 last edited by

        Thanks for your hard work Sir 🤙🏾

        S 1 Reply Last reply Reply Quote 1
        • S
          sdetweil @dazza120 last edited by

          @dazza120 my pleasure…

          Sam

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • S
            sdetweil @sdetweil last edited by

            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

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • S
              sdetweil last edited by sdetweil

              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

              Create a working config
              How to add modules

              S 1 Reply Last reply Reply Quote 0
              • S
                sdetweil @sdetweil last edited by

                see my post containing link to the new script

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

                Sam

                Create a working config
                How to add modules

                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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy