3 Commits
Author SHA1 Message Date
Christian Lohmaier 6210ab8ae3 remove git from VS modules (use winget copy instead matching wiki docs)
the versions differ now, and when you try to apply the configuration
from within git-bash the Visual Studio installation fails because it
wants to replace bash that is still-in-use.

Also fix a bug in the cloud-init config for the wsl container,
locked_passwd defaults to true in 24.04, and that effectively disables
the password, rendering sudo inoperable. (could still run
"wsl.exe -u root" to login as root and do admin tasks that way)

Alternatively the user could be reconfigured to allow for passwordless
sudo, but that's a matter of preference, I'm just personally so used to
always use sudo with password/it is a nice reminder to only change that
if you know what you're doing/that the container was installed for a
specific purpose and the user might want to install a second copy for
other stuff.

PS:
On Windows Server 2025 the installation using the ubuntu2404.exe alias
won't work/has to be done manually using
    wsl.exe --install --distribution Ubuntu-24.04
need some further testing whether that's wider change or specific to
Windows Server

Change-Id: Ie73fdd14cc692aa22e6bc1de5e7465ca60f8a0cf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190970
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2025-09-16 18:56:44 +02:00
Christian Lohmaier b01838cce5 winget configuration: add pkgconf and meson
also securityContext: elevated directives so the the winget configure
step doesn't need to be done in Admin-shell. If run with regular user
permissions UAC will prompt.

ninja is part of CMake tools for Windows (that are part of a default
installation with recommended packages, but not in minimal workload)

Change-Id: I952fc7ac02142d537b2555c1f0e39a53032b96ba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183806
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2025-04-14 18:36:31 +02:00
Muhammad Danish b4fd0468f6 Make WinGet config files consistent with new recommendations
The new file naming conventions for WinGet configurations files are:

- Use the `.winget` extension instead of `.dsc.yaml`. This allows user to run the configuration directly
  from the file explorer.
- The configurations should be placed in a `.config` directory in the root of the repository.

Reference: https://learn.microsoft.com/en-us/windows/package-manager/configuration/create#file-naming-convention

This commit also removes `allowPrerelease: true` directive from the `Microsoft.WinGet.DSC` resource.
The Microsoft.WinGet.DSC module is GA (stable) so the directive is no longer needed.
See https://www.powershellgallery.com/packages/Microsoft.WinGet.DSC/

For reference, maintainers may see these recommendations enacted in the following Microsoft repositories:

- WinGet CLI: https://github.com/microsoft/winget-cli/tree/master/.config
- WinGet Packages: https://github.com/microsoft/winget-pkgs/tree/master/.config
- WinGet Create: https://github.com/microsoft/winget-create/tree/main/.config
- PowerToys: https://github.com/microsoft/PowerToys/tree/main/.config

Change-Id: Ib88598f5fb93b1bb0ed1b608e0d690c196cf9b80
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182675
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2025-03-12 14:37:59 +01:00