Skip to content

Commit

Permalink
Replace import path for release
Browse files Browse the repository at this point in the history
  • Loading branch information
porsager committed Nov 28, 2024
1 parent 1083827 commit 164b179
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build-windows:
strategy:
matrix:
os: [windows-latest, windows-arm64]
os: [windows-arm64, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: ilammy/msvc-dev-cmd@v1
Expand All @@ -25,7 +25,7 @@ jobs:
git status
git config --global user.email "[email protected]"
git config --global user.name "Alex Hultman"
git commit -a -m "[GitHub Actions] Updated windows-latest binaries"
git commit -a -m "[GitHub Actions] Updated ${{ matrix.os }} binaries"
git push "https://unetworkingab:${{ secrets.SECRET }}@github.com/${{ github.repository }}" binaries
git checkout master -- tests/smoke.js
npm install ws
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
sed -i "s|\"optionalDependencies\": {}|\"optionalDependencies\": {\n $deps\n}|" package.json
sed -i "s|\"version\": \"[^\"]*\"|\"version\": \"${version}\"|g" package.json
sed -i "s|./uws_|@uws/uws_|g" uws.js
git checkout --detach
git add package.json
Expand Down
2 changes: 1 addition & 1 deletion src/uws.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

module.exports = (() => {
try {
return require('@uws/uws_' + process.platform + '_' + process.arch + '_' + process.versions.modules);
return require('./uws_' + process.platform + '_' + process.arch + '_' + process.versions.modules);
} catch (e) {
throw new Error('This version of uWS.js (v20.51.0) supports only Node.js versions 18, 20, 22 and 23 on (glibc) Linux, macOS and Windows, on Tier 1 platforms (https://github.com/nodejs/node/blob/master/BUILDING.md#platform-list).\n\n' + e.toString());
}
Expand Down

0 comments on commit 164b179

Please sign in to comment.