Skip to content

Commit fa21cfe

Browse files
authored
Copy latest certificate on before build (#177)
* copy certificate over * fix issue after moving code
1 parent dc32686 commit fa21cfe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Commands/BuildCommand.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Native\Electron\Traits\OsAndArch;
1515
use Native\Electron\Traits\PrunesVendorDirectory;
1616
use Native\Electron\Traits\SetsAppName;
17+
use Symfony\Component\Filesystem\Path;
1718
use Symfony\Component\Process\Process as SymfonyProcess;
1819

1920
use function Laravel\Prompts\intro;
@@ -79,6 +80,13 @@ public function handle(): void
7980
intro('Copying App to build directory...');
8081
$this->copyToBuildDirectory();
8182

83+
$this->newLine();
84+
intro('Copying latest CA Certificate...');
85+
copy(
86+
Path::join($this->sourcePath(), 'vendor', 'nativephp', 'php-bin', 'cacert.pem'),
87+
Path::join($this->sourcePath(), 'vendor', 'nativephp', 'electron', 'resources', 'js', 'resources', 'cacert.pem')
88+
);
89+
8290
$this->newLine();
8391
intro('Cleaning .env file...');
8492
$this->cleanEnvFile();

0 commit comments

Comments
 (0)