Skip to content

Commit f11c180

Browse files
committed
Include node license file in releases
1 parent 3948a81 commit f11c180

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

release/make.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ linux () {
1717
tar -xf "$DLDIR/node.tar.xz" -C "$DLDIR"
1818

1919
cp "$DLDIR/node-v$NODE_VERSION-linux-$1/bin/node" "dist/.cache/v$NODE_VERSION/linux-$1"
20+
cp "$DLDIR/node-v$NODE_VERSION-linux-$1/LICENSE" "dist/.cache/v$NODE_VERSION/LICENSE"
2021
rm -rf "$DLDIR"
2122
fi
2223

@@ -28,6 +29,7 @@ linux () {
2829
cp release/run_scripts/linux.sh "$TMPDIR/run.sh"
2930
cp -r build "$TMPDIR/dist"
3031
cp "dist/.cache/v$NODE_VERSION/linux-$1" "$TMPDIR/dist/node"
32+
cp "dist/.cache/v$NODE_VERSION/LICENSE" "$TMPDIR/dist/LICENSE_for_node"
3133
chmod +x "$TMPDIR/run.sh" "$TMPDIR/dist/node"
3234

3335
echo " Creating zip..."
@@ -57,6 +59,7 @@ mac () {
5759
cp release/run_scripts/mac.command "$TMPDIR/run.command"
5860
cp -r build "$TMPDIR/dist"
5961
cp "dist/.cache/v$NODE_VERSION/darwin-$1" "$TMPDIR/dist/node"
62+
cp "dist/.cache/v$NODE_VERSION/LICENSE" "$TMPDIR/dist/LICENSE_for_node"
6063
chmod +x "$TMPDIR/run.command" "$TMPDIR/dist/node"
6164

6265
echo " Creating zip..."
@@ -81,6 +84,7 @@ win () {
8184
cp release/run_scripts/win.bat "$TMPDIR/run.bat"
8285
cp -r build "$TMPDIR/dist"
8386
cp "dist/.cache/v$NODE_VERSION/win-$1.exe" "$TMPDIR/dist/node.exe"
87+
cp "dist/.cache/v$NODE_VERSION/LICENSE" "$TMPDIR/dist/LICENSE_for_node"
8488

8589
echo " Creating zip..."
8690
rm -f "dist/tgar-twitch-rating-v$APP_VERSION-win-$1.zip"

0 commit comments

Comments
 (0)