File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,16 @@ public function handle(): void
30
30
echo $ output ;
31
31
});
32
32
33
+ $ buildCommand = 'npm run build ' ;
34
+ if ($ this ->argument ('os ' )) {
35
+ $ buildCommand .= ': ' .$ this ->argument ('os ' );
36
+ }
37
+
33
38
Process::path (__DIR__ .'/../../resources/js/ ' )
34
39
->env ($ this ->getEnvironmentVariables ())
35
40
->forever ()
36
41
->tty (PHP_OS_FAMILY != 'Windows ' && ! $ this ->option ('no-interaction ' ))
37
- ->run (' npm run publish:mac-arm ' , function (string $ type , string $ output ) {
42
+ ->run ($ buildCommand , function (string $ type , string $ output ) {
38
43
echo $ output ;
39
44
});
40
45
}
@@ -45,6 +50,7 @@ protected function getEnvironmentVariables(): array
45
50
[
46
51
'APP_PATH ' => base_path (),
47
52
'NATIVEPHP_BUILDING ' => true ,
53
+ 'NATIVEPHP_PHP_BINARY_VERSION ' => PHP_MAJOR_VERSION .'. ' .PHP_MINOR_VERSION ,
48
54
'NATIVEPHP_PHP_BINARY_PATH ' => base_path ($ this ->phpBinaryPath ()),
49
55
'NATIVEPHP_CERTIFICATE_FILE_PATH ' => base_path ($ this ->binaryPackageDirectory ().'cacert.pem ' ),
50
56
'NATIVEPHP_APP_NAME ' => config ('app.name ' ),
You can’t perform that action at this time.
0 commit comments