File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed
src/render/components/ServiceManager/EXT Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 1- version : 12
1+ version : 13
Original file line number Diff line number Diff line change 11{
22 "name" : " PhpWebStudy" ,
3- "version" : " 4.10.3 " ,
3+ "version" : " 4.10.4 " ,
44 "description" : " All-In-One Full-Stack Environment Management Tool" ,
55 "author" : {
66 "name" : " Pengfei Xu" ,
Original file line number Diff line number Diff line change 7575
7676 Object .assign (form .value , props .item )
7777
78+ const isMacOS = computed (() => {
79+ return window .Server .isMacOS
80+ })
81+ const isWindows = computed (() => {
82+ return window .Server .isWindows
83+ })
84+ const isLinux = computed (() => {
85+ return window .Server .isLinux
86+ })
87+
7888 const phpVersions = computed (() => {
7989 return brewStore .module (' php' ).installed .map ((i ) => {
90+ let bin = ' '
91+ if (isWindows .value ) {
92+ bin = join (i .path , ' php.exe' )
93+ } else if (isMacOS .value ) {
94+ bin = i ?.phpBin ?? join (i .path , ' bin/php' )
95+ } else {
96+ bin = join (i .path , ' bin/php' )
97+ }
8098 return {
81- bin: i ?. phpBin ?? join ( i . path , ' bin/php ' ) ,
99+ bin ,
82100 version: i .version
83101 }
84102 })
You can’t perform that action at this time.
0 commit comments