Skip to content

Commit

Permalink
Include node license file in releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Suyooo committed Feb 15, 2024
1 parent 3948a81 commit f11c180
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions release/make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ linux () {
tar -xf "$DLDIR/node.tar.xz" -C "$DLDIR"

cp "$DLDIR/node-v$NODE_VERSION-linux-$1/bin/node" "dist/.cache/v$NODE_VERSION/linux-$1"
cp "$DLDIR/node-v$NODE_VERSION-linux-$1/LICENSE" "dist/.cache/v$NODE_VERSION/LICENSE"
rm -rf "$DLDIR"
fi

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

echo " Creating zip..."
Expand Down Expand Up @@ -57,6 +59,7 @@ mac () {
cp release/run_scripts/mac.command "$TMPDIR/run.command"
cp -r build "$TMPDIR/dist"
cp "dist/.cache/v$NODE_VERSION/darwin-$1" "$TMPDIR/dist/node"
cp "dist/.cache/v$NODE_VERSION/LICENSE" "$TMPDIR/dist/LICENSE_for_node"
chmod +x "$TMPDIR/run.command" "$TMPDIR/dist/node"

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

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

0 comments on commit f11c180

Please sign in to comment.