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
|
# Build directories
|
||||||
./dist/
|
./dist/
|
||||||
!./dist/main.js
|
!./dist/setup_cpp.js
|
||||||
!./dist/main.js.map
|
!./dist/setup_cpp.js.map
|
||||||
.parcel-cache
|
.parcel-cache
|
||||||
exe
|
exe
|
|
@ -27,7 +27,7 @@ function main() {
|
||||||
return Promise.all(
|
return Promise.all(
|
||||||
exes.map((exe) =>
|
exes.map((exe) =>
|
||||||
exec(
|
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": {
|
"engines": {
|
||||||
"node": ">=12.x"
|
"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",
|
"source": "./src/main.ts",
|
||||||
"targets": {
|
"targets": {
|
||||||
"main": {
|
"main": {
|
||||||
|
|
|
@ -174,7 +174,7 @@ export async function main(args: string[]): Promise<number> {
|
||||||
successMessages.forEach((tool) => core.info(tool))
|
successMessages.forEach((tool) => core.info(tool))
|
||||||
errorMessages.forEach((tool) => core.error(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
|
return errorMessages.length === 0 ? 0 : 1 // exit with non-zero if any error message
|
||||||
}
|
}
|
||||||
// Run main
|
// Run main
|
||||||
|
@ -190,8 +190,8 @@ main(process.argv)
|
||||||
|
|
||||||
function printHelp() {
|
function printHelp() {
|
||||||
core.info(`
|
core.info(`
|
||||||
setup-cpp [options]
|
setup_cpp [options]
|
||||||
setup-cpp --compiler llvm --cmake true --ninja true --ccache true --conan "1.40.1"
|
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.
|
Install all the tools required for building and testing C++/C projects.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue