Skip to content

Commit

Permalink
Herd is available for Windows, this update enables certificate checki…
Browse files Browse the repository at this point in the history
…ng in the Herd for Windows Certificates folder. (#277)

Co-authored-by: Aidan <[email protected]>
  • Loading branch information
iaidan and Aidan authored Nov 29, 2024
1 parent 95e9fbe commit 87ae4fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Certificate.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ public static function paths(): array
*/
public static function herdPath(): string
{
if (PHP_OS_FAMILY === 'Windows') {
return implode(DIRECTORY_SEPARATOR, [getenv('USERPROFILE') ?: $_SERVER['HOME'] ?? '', '.config', 'herd', 'config', 'valet', 'Certificates', '']);
}

return implode(DIRECTORY_SEPARATOR, [$_SERVER['HOME'] ?? '', 'Library', 'Application Support', 'Herd', 'config', 'valet', 'Certificates', '']);
}

Expand Down

0 comments on commit 87ae4fd

Please sign in to comment.