fix: rename the executable

This commit is contained in:
Amin Yahyaabadi 2021-09-17 13:19:10 -05:00
parent 3ea0053fe7
commit 8a23537c88
7 changed files with 14 additions and 10 deletions

4
.gitignore vendored
View File

@ -12,7 +12,7 @@ temp-*
# Build directories
./dist/
!./dist/main.js
!./dist/main.js.map
!./dist/setup_cpp.js
!./dist/setup_cpp.js.map
.parcel-cache
exe

View File

@ -27,7 +27,7 @@ function main() {
return Promise.all(
exes.map((exe) =>
exec(
`./node_modules/.bin/caxa --input ./dist --output ./exe/setup_cpp_${getPlatformName()}${exe} -- "{{caxa}}/node_modules/.bin/node${exe}" "{{caxa}}/main.js"`
`./node_modules/.bin/caxa --input ./dist --output ./exe/setup_cpp_${getPlatformName()}${exe} -- "{{caxa}}/node_modules/.bin/node${exe}" "{{caxa}}/setup_cpp.js"`
)
)
)

1
dist/main.js.map vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/setup_cpp.js.map vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -22,7 +22,11 @@
"engines": {
"node": ">=12.x"
},
"main": "./dist/main.js",
"main": "./dist/setup_cpp.js",
"bin": {
"setup_cpp": "./dist/setup_cpp.js",
"setup-cpp": "./dist/setup_cpp.js"
},
"source": "./src/main.ts",
"targets": {
"main": {

View File

@ -174,7 +174,7 @@ export async function main(args: string[]): Promise<number> {
successMessages.forEach((tool) => core.info(tool))
errorMessages.forEach((tool) => core.error(tool))
core.info("setup-cpp finished")
core.info("setup_cpp finished")
return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message
}
// Run main
@ -190,8 +190,8 @@ main(process.argv)
function printHelp() {
core.info(`
setup-cpp [options]
setup-cpp --compiler llvm --cmake true --ninja true --ccache true --conan "1.40.1"
setup_cpp [options]
setup_cpp --compiler llvm --cmake true --ninja true --ccache true --conan "1.40.1"
Install all the tools required for building and testing C++/C projects.