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.
  • Loading branch information
Aidan committed Nov 28, 2024
1 parent 95e9fbe commit c15b3ed
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 c15b3ed

Please sign in to comment.