diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index e766547..5d21228 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -93,6 +93,13 @@ jobs: run: ${{ matrix.settings.build }} if: ${{ !matrix.settings.docker }} shell: bash + - name: Rename If Darwin + run: | + if [[ ${{ matrix.settings.target }} == "x86_64-apple-darwin" ]]; then + mv binarystream.darwin-arm64.node binarystream.darwin-x64.node + fi + shell: bash + - name: Upload artifact uses: actions/upload-artifact@v4 with: diff --git a/npm/darwin-x64/package.json b/npm/darwin-x64/package.json index 4bcde72..ba2525a 100644 --- a/npm/darwin-x64/package.json +++ b/npm/darwin-x64/package.json @@ -8,9 +8,9 @@ "cpu": [ "x64" ], - "main": "binarystream.darwin-x64.node", + "main": "binarystream.darwin-arm64.node", "files": [ - "binarystream.darwin-x64.node" + "binarystream.darwin-arm64.node" ], "license": "MIT", "engines": {