fix: replace to tt-ide-cli

This commit is contained in:
seepine 2024-08-16 12:07:05 +08:00
parent 73e3fda388
commit 53aca87be0
4 changed files with 25 additions and 1508 deletions

View File

@ -28,8 +28,7 @@
"@actions/core": "1.10.0",
"jimp": "0.22.10",
"jsqr": "1.4.0",
"qrcode-terminal": "0.12.0",
"tt-ide-cli": "0.1.27"
"qrcode-terminal": "0.12.0"
},
"devDependencies": {
"@types/node": "18.16.3",

View File

@ -9,7 +9,7 @@ export const preview = async (option: Preview): Promise<string> => {
cp.execSync(
[
'npx',
`tma@${option.ciVersion || '0.1.27'}`,
`tt-ide-cli@${option.ciVersion || '0.1.27'}`,
'set-app-config',
option.appid,
'--token',
@ -19,7 +19,7 @@ export const preview = async (option: Preview): Promise<string> => {
const command = [
'npx',
`tma@${option.ciVersion || '0.1.27'}`,
`tt-ide-cli@${option.ciVersion || '0.1.27'}`,
'preview',
...getArgs(option),
'--qrcode-output',
@ -29,7 +29,7 @@ export const preview = async (option: Preview): Promise<string> => {
core.info('Command:')
core.info(` ${command}`)
cp.execSync(command)
cp.execSync('npx tma logout')
cp.execSync(`npx ${`tt-ide-cli@${option.ciVersion || '0.1.27'}`} logout`)
if (option.qrcodeFormat === 'terminal') {
const qrcodeData = await getQrCode(option.qrcodeOutputDest)
const qrcode = await generate(qrcodeData)

View File

@ -7,7 +7,7 @@ export const upload = async (option: Upload): Promise<void> => {
cp.execSync(
[
'npx',
`tma@${option.ciVersion || '0.1.27'}`,
`tt-ide-cli@${option.ciVersion || '0.1.27'}`,
'set-app-config',
option.appid,
'--token',
@ -16,7 +16,7 @@ export const upload = async (option: Upload): Promise<void> => {
)
const command = [
'npx',
`tma@${option.ciVersion || '0.1.27'}`,
`tt-ide-cli@${option.ciVersion || '0.1.27'}`,
'upload',
...getArgs(option),
option.projectPath
@ -24,5 +24,5 @@ export const upload = async (option: Upload): Promise<void> => {
core.info('Command:')
core.info(` ${command}`)
cp.execSync(command)
cp.execSync('npx tma logout')
cp.execSync(`npx ${`tt-ide-cli@${option.ciVersion || '0.1.27'}`} logout`)
}

1518
yarn.lock

File diff suppressed because it is too large Load Diff