Windows路径修复

This commit is contained in:
zhbaor 2024-09-23 18:08:21 +08:00
parent c374f288b0
commit d9f1aae27c
4 changed files with 15 additions and 16 deletions

View file

@ -11,22 +11,22 @@ watch(branch, () => {
pywebview.api.set_branch(branch.value)
})
const steps = ref([
const steps = computed(() => [
{
title: '下载源码',
command: [
'../git/bin/git fetch',
`../git/bin/git switch -f ${branch.value}`,
`../git/bin/git reset --hard origin/${branch.value}`
'..\\git\\bin\\git fetch',
`..\\git\\bin\\git switch -f ${branch.value}`,
`..\\git\\bin\\git reset --hard origin/${branch.value}`
],
cwd: './mower-ng'
cwd: 'mower-ng'
},
{
title: '安装依赖',
command: [
'../python/Scripts/pip install -i https://mirror.sjtu.edu.cn/pypi/web/simple -r requirements.txt --no-warn-script-location'
'..\\python\\Scripts\\pip install -i https://mirror.sjtu.edu.cn/pypi/web/simple -r requirements.txt --no-warn-script-location'
],
cwd: './mower-ng'
cwd: 'mower-ng'
}
])
provide('steps', steps)