You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it would be nice to resolve the issues with native windows install
the post install script won't run, but I finally figured out a reliable way
scripts launch a shell (sh or cmd.exe) and a single postinstall file won't work
BUT NODE runs..
"postinstall":"node somejsfile.js"
and u can pass parms
so I wrote a little launcher
"anyscript":"node execscript.js linux.sh:windows.cmd"
so, on any script, this will launch node execscript.js and pass the string "linux.sh:windows.cmd"
and then execscript will launch the linux.sh script on not windows platforms and the windows script (if supplied) on windows
i shortened the execscript.js name to es.js fewer chars...
SO, we could fix start too
"start": "node es.js 'DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js:node_modules/.bin/electron js/electron.js'"
you cannot run a sh file on windows
you cannot do any logic in the package.json script clause that isn't linux based
u cannot run a windows program on windows (doesn't work)
u cannot use the windows path with backslash in the text for the script action
but you CAN run node, and some js file
SO, if the js file can determine platform and it can, then it could launch a platform specific script/process
(which could be passed as parameters to the node js file)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
it would be nice to resolve the issues with native windows install
the post install script won't run, but I finally figured out a reliable way
scripts launch a shell (sh or cmd.exe) and a single postinstall file won't work
BUT NODE runs..
"postinstall":"node somejsfile.js"
and u can pass parms
so I wrote a little launcher
"anyscript":"node execscript.js linux.sh:windows.cmd"
so, on any script, this will launch node execscript.js and pass the string "linux.sh:windows.cmd"
and then execscript will launch the linux.sh script on not windows platforms and the windows script (if supplied) on windows
i shortened the execscript.js name to es.js fewer chars...
SO, we could fix start too
"start": "node es.js 'DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js:node_modules/.bin/electron js/electron.js'"
or pass a script (runstart.sh or runstart.cmd)
ps.. you say you don't support windows, but all the text to work around the install problem is in the manual install text online..
https://docs.magicmirror.builders/getting-started/installation.html#manual-installation
The text was updated successfully, but these errors were encountered: