Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions app/Commands/ShareCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public function handle()
terminal()->clear();

banner();
$this->ensureEnvironmentSetup();
$this->ensureExposeSetup();

info("Expose version v" . config('app.version'), options: OutputInterface::VERBOSITY_VERBOSE);
Expand Down Expand Up @@ -162,30 +161,6 @@ protected function detectOperatingSystem(): void
$this->isWindows = strpos(php_uname('s'), 'Windows') !== false;
}

protected function ensureEnvironmentSetup(): void
{
if (!$this->isWindows()) {
return;
}
if (!$this->isWmicAvailable()) {
error('The "wmic" command is not available on this Windows machine.');
error(
'Please refer to the documentation for more information: https://expose.dev/docs/troubleshooting',
abort: true
);
}
}

protected function isWmicAvailable(): bool
{
$output = [];
$exitCode = 0;

exec('wmic /?', $output, $exitCode);

return $exitCode === 0;
}

protected function isWindows(): bool
{
if ($this->isWindows === null) {
Expand Down
Binary file modified builds/expose
Binary file not shown.
Binary file modified builds/expose.phar
Binary file not shown.
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"nyholm/psr7": "^1.3",
"octoper/cuzzle": "dev-master",
"phpunit/phpunit": "^10.5.1",
"react/async": "^4.3"
"react/async": "^4.3",
"react/dns": "1.x-dev"
},
"config": {
"optimize-autoloader": true,
Expand All @@ -71,6 +72,10 @@
}
},
"repositories": [
{
"type": "git",
"url": "https://github.com/beyondcode/react-dns"
},
{
"type": "git",
"url": "https://github.com/beyondcode/pawl"
Expand Down
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
|
*/

'version' => '3.2.0',
'version' => '3.2.1',

/*
|--------------------------------------------------------------------------
Expand Down