Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripts: Add guestagent and trivy into wsl-distro tarball instead of installing at runtime #7145

Merged
merged 7 commits into from
Jul 11, 2024

Commits on Jul 4, 2024

  1. Scripts: Implement transitive dependencies

    This allows dependencies to depend on other dependencies, including across
    platforms; we intend to allow WSLDistro to depend on Linux bits.
    
    Signed-off-by: Mark Yen <[email protected]>
    mook-as committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    22d36cf View commit details
    Browse the repository at this point in the history
  2. Postinstall: Build go utilities as a dependency

    This makes the go utilities act like dependencies, so we can use them as
    dependencies of other dependencies.
    
    Signed-off-by: Mark Yen <[email protected]>
    mook-as committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    c5b03d0 View commit details
    Browse the repository at this point in the history
  3. Postinstall: embed guest agent in WSL distro

    This embeds rancher-desktop-guestagent as part of the WSL distro on post-
    install, so that we do not need to copy it into the VM at run time.
    
    Signed-off-by: Mark Yen <[email protected]>
    mook-as committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    69c9752 View commit details
    Browse the repository at this point in the history
  4. Postinstall: Also embed trivy in wsl-distro

    Signed-off-by: Mark Yen <[email protected]>
    mook-as committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    fe76137 View commit details
    Browse the repository at this point in the history
  5. Installer: Remove unneeded files

    - We don't actually support localization
    - There is no point in including source maps, we don't ship the sources
    - Support merging file lists
    
    Signed-off-by: Mark Yen <[email protected]>
    mook-as committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    759acc1 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. scripts: Reword comment per review

    This rewords the comment describing how we need to merge the files lists
    for electron-builder because they way they do merging is a union of the two
    resultant sets instead of calculating a set based on a union of the rules.
    
    Signed-off-by: Mark Yen <[email protected]>
    mook-as committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    fa44f72 View commit details
    Browse the repository at this point in the history
  2. postinstall: GoDependency: refactor

    This should make it easier to handle custom paths / subcommands.
    
    For example, we may want:
    
    new goUtils.GoDependency('networking/cmd/vm', { outputPath: 'staging/vm-switch'})
    
    Signed-off-by: Mark Yen <[email protected]>
    mook-as committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    0c3e88b View commit details
    Browse the repository at this point in the history