Skip to content

Commit 84027db

Browse files
use current directory for path
1 parent ad5be68 commit 84027db

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async function run(): Promise<void> {
2525
const downloadUrls = core.getInput('cocos_download_url')
2626
const cocosVersion = core.getInput('cocos_version')
2727
const cocosType = core.getInput('cocos_type')
28-
const projectPath = core.getInput('project_path')
28+
// const projectPath = core.getInput('project_path')
2929
const configPath = core.getInput('build_config')
3030
try {
3131
await exec('npm', ['install', '--force'])
@@ -50,7 +50,7 @@ async function run(): Promise<void> {
5050
await exec(`open ./CocosCreator.app`)
5151
console.log('open CocosCreator.app success')
5252
await exec(
53-
`./CocosCreator.app/Contents/MacOS/CocosCreator --path "${projectPath}" --build "configPath=${configPath};"`
53+
`./CocosCreator.app/Contents/MacOS/CocosCreator --path "$(pwd)" --build "configPath=${configPath};"`
5454
)
5555
const artifactClient = artifact.create()
5656
const artifactName = 'cocos-build-package'

0 commit comments

Comments
 (0)