diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9b401a8..af155b1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,6 +13,7 @@ on: - 30 - 31 - 32 + - 33 # test-version: # description: 'Electron version to test build' # required: true @@ -55,11 +56,11 @@ jobs: elif [[ ${{ inputs.build-version }} == '30' ]]; then echo "test-version=30.5.1" >> $GITHUB_OUTPUT elif [[ ${{ inputs.build-version }} == '31' ]]; then - echo "test-version=31.6.0" >> $GITHUB_OUTPUT + echo "test-version=31.7.2" >> $GITHUB_OUTPUT elif [[ ${{ inputs.build-version }} == '32' ]]; then - echo "test-version=32.2.0" >> $GITHUB_OUTPUT + echo "test-version=32.2.2" >> $GITHUB_OUTPUT elif [[ ${{ inputs.build-version }} == '33' ]]; then - echo "test-version=33.0.0" >> $GITHUB_OUTPUT + echo "test-version=33.0.2" >> $GITHUB_OUTPUT fi - name: Setup env diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4af52f4..cd9ad6c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,33 @@ name: Test on: + pull_request: + paths-ignore: + - 'samples/*' + - 'stress/*' + - 'performance/*' + - '.github/FUNDING.YML' + - '.github/workflows/build.yml' + - '**/*.md' + - '**/*.d.ts' + - '**/*.bat' + - '.travis.yml' + - 'Dockerfile' + - '.gitconfig' + - '.gitignore' + - 'appveyor*.*' + - 'LICENSE*' + - '.idea/**' + - '.vscode/**' + - '*.bat' + - '*.nuspec' + - 'tools/nuget/*' + - '.npmignore' + - 'test/config.json' + - 'test/double' + - '.circleci' + - '.circleci/*' + - 'README.md' push: branches-ignore: - 'circleci' @@ -45,7 +72,7 @@ jobs: os: [macos-13, macos-14, ubuntu-22.04, windows-2022] # os: [ macos-14, ubuntu-22.04] # electron: [32.1.2] - electron: [29.4.6, 30.5.1, 31.6.0, 32.2.0] + electron: [29.4.6, 30.5.1, 31.7.2, 32.2.2, 33.0.2] # electron: [31.6.0, 32.1.0] name: test-${{ matrix.os }}-v${{ matrix.electron }} diff --git a/README.md b/README.md index 2f38e4e..3ddca43 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,11 @@ | Electron | Node.Js | x86/x64 | arm64 | | --------------- | ---------------- | ------------------ | ------------------ | -| Electron 26.x | v18.16.1 | :heavy_check_mark: | :x: | -| Electron 27.x | v18.17.1 | :heavy_check_mark: | :x: | -| Electron 28.x | v18.18.2 | :heavy_check_mark: | :x: | -| Electron 29.x | v20.9.0 | :heavy_check_mark: | :heavy_check_mark: | +| Electron 29.x | v20.x | :heavy_check_mark: | :heavy_check_mark: | | Electron 30.x | v20.x | :heavy_check_mark: | :heavy_check_mark: | | Electron 31.x | v20.x | :heavy_check_mark: | :heavy_check_mark: | | Electron 32.x | v20.x | :heavy_check_mark: | :heavy_check_mark: | +| Electron 33.x | v20.x | :heavy_check_mark: | :heavy_check_mark: | - You do not need to use the same version of Node.js in your project as Electron Node.js version - On Linux and macOS `npm install` will compile binaries with correct Node.Js headers for a given Electron version. diff --git a/lib/native/win32/arm64/33.0.0/edge_coreclr.node b/lib/native/win32/arm64/33.0.0/edge_coreclr.node new file mode 100644 index 0000000..93a47db Binary files /dev/null and b/lib/native/win32/arm64/33.0.0/edge_coreclr.node differ diff --git a/lib/native/win32/arm64/33.0.0/edge_nativeclr.node b/lib/native/win32/arm64/33.0.0/edge_nativeclr.node new file mode 100644 index 0000000..339179b Binary files /dev/null and b/lib/native/win32/arm64/33.0.0/edge_nativeclr.node differ diff --git a/lib/native/win32/ia32/33.0.0/edge_coreclr.node b/lib/native/win32/ia32/33.0.0/edge_coreclr.node new file mode 100644 index 0000000..1d3fea0 Binary files /dev/null and b/lib/native/win32/ia32/33.0.0/edge_coreclr.node differ diff --git a/lib/native/win32/ia32/33.0.0/edge_nativeclr.node b/lib/native/win32/ia32/33.0.0/edge_nativeclr.node new file mode 100644 index 0000000..ff76299 Binary files /dev/null and b/lib/native/win32/ia32/33.0.0/edge_nativeclr.node differ diff --git a/lib/native/win32/x64/33.0.0/edge_coreclr.node b/lib/native/win32/x64/33.0.0/edge_coreclr.node new file mode 100644 index 0000000..d05494e Binary files /dev/null and b/lib/native/win32/x64/33.0.0/edge_coreclr.node differ diff --git a/lib/native/win32/x64/33.0.0/edge_nativeclr.node b/lib/native/win32/x64/33.0.0/edge_nativeclr.node new file mode 100644 index 0000000..ab07f8c Binary files /dev/null and b/lib/native/win32/x64/33.0.0/edge_nativeclr.node differ diff --git a/package-lock.json b/package-lock.json index 0741013..faf7be6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "electron-edge-js", - "version": "32.0.1", + "version": "33.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "electron-edge-js", - "version": "32.0.1", + "version": "33.0.0", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index de0f7f9..295fbe3 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "url": "http://tomasz.janczuk.org", "twitter": "tjanczuk" }, - "version": "32.0.1", + "version": "33.0.0", "description": "Edge.js: run .NET and Node.js in-process on Electron", "tags": [ "owin", @@ -61,7 +61,7 @@ "url": "http://github.com/agracio/electron-edge-js/issues" }, "scripts": { - "install": "node tools/install.js", + "install": "node tools/updatenan.js && node tools/install.js", "test": "node tools/test.js" } } diff --git a/tools/build.bat b/tools/build.bat index cbb8b4a..5ed74c2 100644 --- a/tools/build.bat +++ b/tools/build.bat @@ -41,26 +41,16 @@ exit /b 0 :build -if "%3" equ "23.0.0" ( - SET target=18.12.1 -) else if "%3" equ "24.0.0" ( - SET target=18.14.0 -) else if "%3" equ "25.0.0" ( - SET target=18.15.0 -) else if "%3" equ "26.0.0" ( - SET target=18.16.1 -) else if "%3" equ "27.0.0" ( - SET target=18.17.1 -) else if "%3" equ "28.0.0" ( - SET target=18.18.2 -) else if "%3" equ "29.0.0" ( +if "%3" equ "29.0.0" ( SET target=20.9.0 ) else if "%3" equ "30.0.0" ( SET target=20.16.0 ) else if "%3" equ "31.0.0" ( - SET target=20.17.0 + SET target=20.18.0 ) else if "%3" equ "32.0.0" ( SET target=20.18.0 +) else if "%3" equ "33.0.0" ( + SET target=20.18.0 ) else ( echo edge-electron-js does not support Electron %3. exit /b -1 diff --git a/tools/updatenan.js b/tools/updatenan.js new file mode 100644 index 0000000..bfef4cc --- /dev/null +++ b/tools/updatenan.js @@ -0,0 +1,9 @@ +const spawn = require('child_process').spawn + +if (process.platform === 'win32') { + spawn('powershell', ['-Command', "(Get-Content -Raw ./node_modules/nan/nan.h) -replace '#include \"nan_scriptorigin.h\"', '// #include \"nan_scriptorigin.h\"' | Out-File -Encoding Utf8 ./node_modules/nan/nan.h"], { stdio: 'inherit'}) +}else{ + spawn('sed', ['-i', '-e', 's/^#include .nan_scriptorigin\\.h./\\/\\/ #include nan_scriptorigin.h/', './node_modules/nan/nan.h'], { stdio: 'inherit'}) +} + +