Skip to content

Commit

Permalink
log progress for easier debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-kasibhatla committed Nov 19, 2022
1 parent ec85cff commit 4cba8c9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ async function run(): Promise<void> {
const configPath = core.getInput('build_config')
try {
await exec('npm', ['install', '--force'])
console.log('npm install success')
const {data} = await (await axios.get(downloadUrls)).data
console.log('downloadUrls success')
const urlList = data[cocosType] as CCDownloadType[]
const {version, darwin} =
cocosVersion === '0.0.0'
Expand All @@ -41,8 +43,12 @@ async function run(): Promise<void> {
darwin,
`CocosCreator_V${version}.zip`
)
console.log('Downloading cocos from ', `CocosCreator_V${version}.zip`)
console.log('ccZipPath', ccZipPath)
await extractZip(`${ccZipPath}`, './')
console.log('extractZip success')
await exec(`open ./CocosCreator.app`)
console.log('open CocosCreator.app success')
await exec(
`./CocosCreator.app/Contents/MacOS/CocosCreator --path ${projectPath} --build "configPath=${configPath}"`
)
Expand Down

0 comments on commit 4cba8c9

Please sign in to comment.