22 Commits

Author SHA1 Message Date
Eric Promislow
083d7446c5 fix typo
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-08-11 13:51:57 -07:00
Eric Promislow
5a349e222f reinstate the build things for windows that npm is crying for
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-08-04 15:15:04 -07:00
Mark Yen
b3da7f609e windows-setup: Add golang dependency
We'll want this for WSL-side tools (to emit static binaries).

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-07-16 11:54:54 -07:00
Eric Promislow
fed465424f Use kuberlr to support multiple versions of kubectl
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-06-21 10:31:48 -07:00
Mark Yen
3da5cbf832 windows-setup: Remove Visual Studio & Python 2.7
We no longer build the native binaries that require it.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-06-09 10:58:44 -07:00
Eric Promislow
2da748d28e WSL: Need two reboots to fully install WSL
Also:
- warn the user about a possible delay after restart
- let the user know when installation is done

Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-05-25 17:34:56 -07:00
Eric Promislow
b54e5d1189 misc fixes as I learn more powershell
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-05-25 17:34:56 -07:00
Eric Promislow
3cc4708398 this expression needs to be in parens
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-05-25 17:34:56 -07:00
Eric Promislow
f8d6fbf493 Need to import some other files from the git repo to install wsl
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-05-25 17:34:55 -07:00
Eric Promislow
ca79205f64 Add scripts to install and uninstall wsl on Windows
- A reboot is needed when installing, and the continuation
  needs to be run as admin, so write a sudo-style helper
  to pull the command out of the registry and run it that way

- Putting a command in the RunOnce key didn't fire on restart, so
  I'm manually managing the key instead

Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-05-25 17:34:55 -07:00
Eric Promislow
0280fbf0f8 Use Node.js v14 on Windows
Signed-off-by: Eric Promislow <epromislow@suse.com>
2021-05-19 15:43:55 -07:00
Mark Yen
877aca4a5c Remove canvas dependencies
No longer needed after we remove the canvas package (which wasn't being
used in the first place).

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-05-06 17:55:39 -07:00
Mark Yen
edf43d92d3 scripts/windows-setup: Allow skipping parts
There's no need to update Visual Studio when running on GitHub Actions
(because it already have the necessary parts); allow skipping it to reduce
the time CI takes.

We also don't need the tools; we manually install NodeJS & Python, and the
VM comes with git.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-04-22 09:29:36 -07:00
Mark Yen
8672cb6650 scripts/windows-setup: Work around Python deprecation
Python 2.7 is long obsolete, but node-gyp still wants it.  This means that
attempting to install it displays a deprecation warning; PowerShell will
see this warning (on stderr) and assume it means that the command
failed.  Work around this by redirecting stderr for that command, and
instead letting exit statuses control failure detection.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-04-22 09:27:38 -07:00
Mark Yen
0e3fd5e00d Windows: Try to make the dev-setup script more robust
Stop assuming where Visual Studio is installed (instead, try to detect any
of the available installations).  Also, try to run everything in parallel,
but in a way such that each individual task is in a readable block.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-04-14 13:32:13 -07:00
Mark Yen
50940ac87b Windows Setup: don't error when setup is already gone
Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-04-08 15:21:26 -07:00
Mark Yen
75e1173319 Windows Setup: Fix MSVS Installer update
Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-04-08 15:21:25 -07:00
Mark Yen
77cd77782a Windows Setup: ensure UTF8 in npmrc
Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-04-08 15:21:25 -07:00
Mark Yen
4ccf6ba9e7 Make the Visual Studio setup more consitent (hopefully)
Also, fix npm configuration - we don't have npm available in this shell
(because environment changes only get picked up upon restarting the shell).

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-04-08 15:21:24 -07:00
Mark Yen
fa77c7a915 Windows setup: Try to fix build errors
- Also install VC tools, otherwise node-gyp doesn't seem to work.
- Force MSBuild path in NPM.
- Install Git via scoop too, since we can't seem to find the MSVS version.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-04-08 12:41:31 -07:00
Mark Yen
83dcf880b0 Windows: Switch to scoop's python 2
It looks like my attempt to set the $PATH didn't work out; it's much easier
to just use the Python from scoop instead.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-04-08 12:41:30 -07:00
Mark Yen
66c812e6bb Add script for automatic Windows setup
This is an initial implementation; it doesn't do any checking and any error
will probably break things badly.  This should probably only be used by the
Windows 10 development VM that is distributed by Microsoft.

Signed-off-by: Mark Yen <mark.yen@suse.com>
2021-04-08 12:41:30 -07:00