We no longer require a non-development user to install it, so we should get
any developers to do so manually.
Signed-off-by: Mark Yen <mark.yen@suse.com>
We renamed from `rd` to `rancher-desktop` a while back, but never updated
the URL links within the repository to match the new location.
Signed-off-by: Mark Yen <mark.yen@suse.com>
We shouldn't confuse people into downloading random PR branches when they
are just trying to test out the latest state.
Signed-off-by: Mark Yen <mark.yen@suse.com>
- We no longer need to manually install WSL; the installer does that.
- We no longer need the canvas native dependencies.
- This includes Visual Studio & Python 2 on Windows.
- This includes pkg-config, cairo, etc. on macOS.
- Tools are added to the PATH on Windows now.
Signed-off-by: Mark Yen <mark.yen@suse.com>
This converts setupmac.js into a generic download-resources.mjs and make it
work on Windows. This also drop the follow-redirects dependency in favour
of using node-fetch (which we already need in the app). Additionally,
reduce the callback nesting we have in the same script.
There doesn't seem to be significant reason to convert the script to async
(considering that this is run as a one-off).
Additionally, make all this get called as a postinstall hook, so that it
happens automatically upon `npm install`, and the user no longer needs to
worry about it.
Signed-off-by: Mark Yen <mark.yen@suse.com>