Skip to content

Commit c82db22

Browse files
committed
feat: add node16 target and use it in the exe and on github
1 parent 9d1119e commit c82db22

24 files changed

+105
-19
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ inputs:
8080
required: false
8181

8282
runs:
83-
using: "node12"
84-
main: "dist/setup_cpp.js"
83+
using: "node16"
84+
main: "dist/node16/setup_cpp.js"
8585

8686
branding:
8787
icon: "award"

dev/docker/arch_node.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN pacman -S --noconfirm --needed nodejs
1111
RUN pacman -S --noconfirm --needed curl
1212

1313
# add setup_cpp.js
14-
COPY "./dist/" "/"
14+
COPY "./dist/node12" "/"
1515
WORKDIR "/"
1616

1717
# run installation

dev/docker/fedora_node.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN dnf -y install nodejs
88
RUN dnf -y install curl
99

1010
# add setup_cpp.js
11-
COPY "./dist/" "/"
11+
COPY "./dist/node12" "/"
1212
WORKDIR "/"
1313

1414
# run installation

dev/docker/ubuntu_20.04_node.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
1212
RUN apt-get install -y --no-install-recommends nodejs
1313

1414
# add setup_cpp.js
15-
ADD "./dist/" "/"
15+
COPY "./dist/node12" "/"
1616
WORKDIR "/"
1717

1818
# run installation

dev/docker/ubuntu_node.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ RUN apt-get update -qq
44
RUN apt-get install -y --no-install-recommends nodejs
55

66
# add setup_cpp.js
7-
COPY "./dist/" "/"
7+
COPY "./dist/node12" "/"
88
WORKDIR "/"
99

1010
# run installation

dev/scripts/pack-exe.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function main() {
2727
return Promise.all(
2828
exes.map((exe) =>
2929
exec(
30-
`./node_modules/.bin/caxa --input ./dist --output ./exe/setup_cpp_${getPlatformName()}${exe} -- "{{caxa}}/node_modules/.bin/node${exe}" "{{caxa}}/setup_cpp.js"`
30+
`./node_modules/.bin/caxa --input ./dist/node16 --output ./exe/setup_cpp_${getPlatformName()}${exe} -- "{{caxa}}/node_modules/.bin/node${exe}" "{{caxa}}/setup_cpp.js"`
3131
)
3232
)
3333
)

dist/actions_python.815c8aab.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

dist/node12/actions_python.54e91387.js

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

dist/actions_python.815c8aab.js.map renamed to dist/node12/actions_python.54e91387.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.
File renamed without changes.

0 commit comments

Comments
 (0)