Skip to content

🩹 [Patch]: Verify that vcruntime140 is installed on Windows#23

Merged
Marius Storhaug (MariusStorhaug) merged 3 commits intomainfrom
supported
Feb 8, 2025
Merged

🩹 [Patch]: Verify that vcruntime140 is installed on Windows#23
Marius Storhaug (MariusStorhaug) merged 3 commits intomainfrom
supported

Conversation

@MariusStorhaug
Copy link
Copy Markdown
Member

@MariusStorhaug Marius Storhaug (MariusStorhaug) commented Feb 8, 2025

Description

This pull request includes several changes to improve platform compatibility and ensure the necessary dependencies are installed. The most important changes include adding a new function to check for the Visual C++ Redistributable, updating scripts to verify platform support, and initializing the Sodium library conditionally.

Platform compatibility improvements:

  • src/functions/private/Assert-VisualCRedistributableInstalled.ps1: Added a new function Assert-VisualCRedistributableInstalled to check if the Visual C++ Redistributable for Visual Studio 2015 or later is installed and meets the specified minimum version.
  • src/main.ps1: Modified the main script to set the $script:Supported variable based on platform checks and the result of Assert-VisualCRedistributableInstalled for Windows.
  • src/variables/private/Supported.ps1: Added a new variable $script:Supported initialized to $false to track platform support status.

Sodium library initialization:

  • src/functions/public/ConvertFrom-SodiumSealedBox.ps1, src/functions/public/ConvertTo-SodiumSealedBox.ps1, src/functions/public/New-SodiumKeyPair.ps1: Updated these scripts to throw an error if Sodium is not supported on the platform by checking the $script:Supported variable before initializing the Sodium library. [1] [2] [3]

Type of change

  • 📖 [Docs]
  • 🪲 [Fix]
  • 🩹 [Patch]
  • ⚠️ [Security fix]
  • 🚀 [Feature]
  • 🌟 [Breaking change]

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title Supported 🩹 [Patch]: Verify that vcredist140 is installed on Windows Feb 8, 2025
@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title 🩹 [Patch]: Verify that vcredist140 is installed on Windows 🩹 [Patch]: Verify that vcruntime140 is installed on Windows Feb 8, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 8, 2025

Module Sodium - 2.1.1-supported001 published to the PowerShell Gallery.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 8, 2025

GitHub release for Sodium v2.1.1-supported001 has been created.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 8, 2025

Module Sodium - v2.1.1 published to the PowerShell Gallery.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 8, 2025

GitHub release for Sodium v2.1.1 has been created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🩹 [Patch]: Verify that vcruntime140 is installed on Windows

1 participant