Skip to content

Commit

Permalink
fix: rename the executable
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Sep 17, 2021
1 parent 3ea0053 commit 8a23537
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion building/pack-exe.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
)
)
)
Expand Down
1 change: 0 additions & 1 deletion dist/main.js.map

This file was deleted.

4 changes: 2 additions & 2 deletions dist/main.js → dist/setup_cpp.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/setup_cpp.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit 8a23537

Please sign in to comment.