Skip to content

Commit 3823832

Browse files
committed
Upload Linux Support
1 parent 45a02c4 commit 3823832

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

build/linux.build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 12
1+
version: 13

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

src/render/components/ServiceManager/EXT/aliasEdit.vue

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,28 @@
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
})

0 commit comments

Comments
 (0)