修复路径
This commit is contained in:
parent
d0fbc89012
commit
b0586cec23
2 changed files with 5 additions and 2 deletions
5
main.py
5
main.py
|
@ -1,5 +1,6 @@
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
import shlex
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from subprocess import PIPE, STDOUT, Popen
|
from subprocess import PIPE, STDOUT, Popen
|
||||||
|
|
||||||
|
@ -37,8 +38,10 @@ class Api:
|
||||||
config["page"] = page
|
config["page"] = page
|
||||||
|
|
||||||
def run(self, command, cwd=None):
|
def run(self, command, cwd=None):
|
||||||
|
command = shlex.split(command)
|
||||||
|
command[0] = os.path.normpath(command)
|
||||||
with Popen(
|
with Popen(
|
||||||
os.path.normpath(command),
|
command,
|
||||||
stdout=PIPE,
|
stdout=PIPE,
|
||||||
stderr=STDOUT,
|
stderr=STDOUT,
|
||||||
shell=True,
|
shell=True,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
const steps = ref([
|
const steps = ref([
|
||||||
{ title: '设置Git LFS', command: ['git/bin/git lfs install'] },
|
{ title: '设置Git LFS', command: ['git/bin/git lfs install'] },
|
||||||
{ title: '安装pip', command: ['../python/python -m ensurepip --default-pip'] },
|
{ title: '安装pip', command: ['python/python -m ensurepip --default-pip'] },
|
||||||
{
|
{
|
||||||
title: '下载代码',
|
title: '下载代码',
|
||||||
command: ['git/bin/git clone https://git.zhaozuohong.vip/mower-ng/mower-ng.git --branch slow']
|
command: ['git/bin/git clone https://git.zhaozuohong.vip/mower-ng/mower-ng.git --branch slow']
|
||||||
|
|
Loading…
Reference in a new issue