mirror of https://github.com/aminya/setup-cpp
fix: rename the executable
This commit is contained in:
parent
3ea0053fe7
commit
8a23537c88
|
@ -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
|
|
@ -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"`
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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": {
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue