From 36e9825a5ab2e947c154a7cd22ec9ad5ab05f2b6 Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Mon, 5 May 2025 16:46:28 -0400 Subject: [PATCH 01/30] sign before packing the file so we sign the actual .node file --- .github/workflows/prebuild-main.yml | 27 ++++++++++++++++++++++++--- .github/workflows/prebuild-pr.yml | 27 ++++++++++++++++++++++++--- 2 files changed, 48 insertions(+), 6 deletions(-) diff --git a/.github/workflows/prebuild-main.yml b/.github/workflows/prebuild-main.yml index 0fbc3382..ba7677d5 100644 --- a/.github/workflows/prebuild-main.yml +++ b/.github/workflows/prebuild-main.yml @@ -60,11 +60,32 @@ jobs: - name: Build and sign macOS prebuild run: | - npx prebuild --backend node-gyp --target 20.3.0 --arch x64 --platform darwin --strip --pack + # Build the binary + npx prebuild --backend node-gyp --target 20.3.0 --arch x64 --platform darwin --strip + + # Create platform-specific directory mkdir -p lib/darwin-x64 cp lib/node_printer.node lib/darwin-x64/ - ls -la lib/darwin-x64/ || echo "Directory not found" - codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime lib/darwin-x64/node_printer.node || echo "File not found for signing" + + # Sign the binary - verbose output for debugging + echo "Signing binary with Team ID: ${{ vars.TEAM_ID }}" + codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --verbose lib/darwin-x64/node_printer.node + + # Verify the signature + echo "Verifying signature:" + codesign -vvv --deep --strict lib/darwin-x64/node_printer.node + + # Also sign the original binary that will be packaged + echo "Signing original binary:" + codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --verbose lib/node_printer.node + + # Verify the signature on the original binary + echo "Verifying original binary signature:" + codesign -vvv --deep --strict lib/node_printer.node + + # Now create the package with the signed binary + npx prebuild --backend node-gyp --target 20.3.0 --arch x64 --platform darwin --pack + # List directories to see where tar.gz files are echo "Checking for tar.gz files:" find . -name "*.tar.gz" -type f diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index 792f99f2..bbcd641f 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -58,11 +58,32 @@ jobs: - name: Build and sign macOS prebuild run: | - npx prebuild --backend node-gyp --target 20.3.0 --arch x64 --platform darwin --strip --pack + # Build the binary + npx prebuild --backend node-gyp --target 20.3.0 --arch x64 --platform darwin --strip + + # Create platform-specific directory mkdir -p lib/darwin-x64 cp lib/node_printer.node lib/darwin-x64/ - ls -la lib/darwin-x64/ || echo "Directory not found" - codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime lib/darwin-x64/node_printer.node || echo "File not found for signing" + + # Sign the binary - verbose output for debugging + echo "Signing binary with Team ID: ${{ vars.TEAM_ID }}" + codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --verbose lib/darwin-x64/node_printer.node + + # Verify the signature + echo "Verifying signature:" + codesign -vvv --deep --strict lib/darwin-x64/node_printer.node + + # Also sign the original binary that will be packaged + echo "Signing original binary:" + codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --verbose lib/node_printer.node + + # Verify the signature on the original binary + echo "Verifying original binary signature:" + codesign -vvv --deep --strict lib/node_printer.node + + # Now create the package with the signed binary + npx prebuild --backend node-gyp --target 20.3.0 --arch x64 --platform darwin --pack + # List directories to see where tar.gz files are echo "Checking for tar.gz files:" find . -name "*.tar.gz" -type f From 0913e7cd12ad4630dd4a9c87cb877fcfe78dddf1 Mon Sep 17 00:00:00 2001 From: Steven Lehn Date: Mon, 5 May 2025 16:08:21 -0500 Subject: [PATCH 02/30] pack the signed binary --- .github/workflows/prebuild-pr.yml | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index bbcd641f..1be35c04 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -58,35 +58,16 @@ jobs: - name: Build and sign macOS prebuild run: | - # Build the binary npx prebuild --backend node-gyp --target 20.3.0 --arch x64 --platform darwin --strip - # Create platform-specific directory - mkdir -p lib/darwin-x64 - cp lib/node_printer.node lib/darwin-x64/ - - # Sign the binary - verbose output for debugging - echo "Signing binary with Team ID: ${{ vars.TEAM_ID }}" - codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --verbose lib/darwin-x64/node_printer.node - - # Verify the signature - echo "Verifying signature:" - codesign -vvv --deep --strict lib/darwin-x64/node_printer.node - - # Also sign the original binary that will be packaged - echo "Signing original binary:" + echo "Signing binary:" codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --verbose lib/node_printer.node - # Verify the signature on the original binary - echo "Verifying original binary signature:" + echo "Verifying signature:" codesign -vvv --deep --strict lib/node_printer.node # Now create the package with the signed binary - npx prebuild --backend node-gyp --target 20.3.0 --arch x64 --platform darwin --pack - - # List directories to see where tar.gz files are - echo "Checking for tar.gz files:" - find . -name "*.tar.gz" -type f + tar -czf node-printer-v${{ needs.get-version.outputs.version }}-node-v115-darwin-x64.tar.gz lib - name: Upload macOS binary to GitHub release uses: softprops/action-gh-release@v2 From 4c4c8108005714c75f93ec8daf7b51d70c2983ea Mon Sep 17 00:00:00 2001 From: Steven Lehn Date: Mon, 5 May 2025 16:14:08 -0500 Subject: [PATCH 03/30] add debug output --- .github/workflows/prebuild-pr.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index 1be35c04..1f8a7bb6 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -67,7 +67,10 @@ jobs: codesign -vvv --deep --strict lib/node_printer.node # Now create the package with the signed binary - tar -czf node-printer-v${{ needs.get-version.outputs.version }}-node-v115-darwin-x64.tar.gz lib + tar -czfv node-printer-v${{ needs.get-version.outputs.version }}-node-v115-darwin-x64.tar.gz lib + + echo "Checking for tar.gz files:" + find . -name "*.tar.gz" -type f - name: Upload macOS binary to GitHub release uses: softprops/action-gh-release@v2 From eec5b9e6f88e43447ef93f31ef639875b5ccbe1e Mon Sep 17 00:00:00 2001 From: Steven Lehn Date: Mon, 5 May 2025 16:18:53 -0500 Subject: [PATCH 04/30] fix syntax --- .github/workflows/prebuild-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index 1f8a7bb6..05ea5210 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -67,7 +67,7 @@ jobs: codesign -vvv --deep --strict lib/node_printer.node # Now create the package with the signed binary - tar -czfv node-printer-v${{ needs.get-version.outputs.version }}-node-v115-darwin-x64.tar.gz lib + tar -czvf node-printer-v${{ needs.get-version.outputs.version }}-node-v115-darwin-x64.tar.gz lib echo "Checking for tar.gz files:" find . -name "*.tar.gz" -type f From 20ffc69295c985a45175b0c2a15eb78be4cc37f4 Mon Sep 17 00:00:00 2001 From: Steven Lehn Date: Mon, 5 May 2025 16:29:01 -0500 Subject: [PATCH 05/30] specify which archive to upload --- .github/workflows/prebuild-pr.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index 05ea5210..39823bfc 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -78,8 +78,7 @@ jobs: tag_name: v${{ needs.get-version.outputs.version }} draft: true files: | - *.tar.gz - **/*.tar.gz + node-printer-v${{ needs.get-version.outputs.version }}-node-v115-darwin-x64.tar.gz append_body: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From a69d799719979eb8efca4f659b465507814fae84 Mon Sep 17 00:00:00 2001 From: Steven Lehn Date: Mon, 5 May 2025 16:51:25 -0500 Subject: [PATCH 06/30] include TEAM_ID in echo output --- .github/workflows/prebuild-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index 39823bfc..829ac113 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -60,7 +60,7 @@ jobs: run: | npx prebuild --backend node-gyp --target 20.3.0 --arch x64 --platform darwin --strip - echo "Signing binary:" + echo "Signing binary with team ID ${{ vars.TEAM_ID }}:" codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --verbose lib/node_printer.node echo "Verifying signature:" From b9a3c6e27907cc88ef68662053190955c6e0c200 Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Tue, 6 May 2025 21:41:00 -0400 Subject: [PATCH 07/30] try to sign with one that works for notarized apps --- .github/workflows/prebuild-main.yml | 4 ++-- .github/workflows/prebuild-pr.yml | 6 ++++-- entitlements.plist | 16 ++++++++++++++++ 3 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 entitlements.plist diff --git a/.github/workflows/prebuild-main.yml b/.github/workflows/prebuild-main.yml index ba7677d5..39f0daf0 100644 --- a/.github/workflows/prebuild-main.yml +++ b/.github/workflows/prebuild-main.yml @@ -69,7 +69,7 @@ jobs: # Sign the binary - verbose output for debugging echo "Signing binary with Team ID: ${{ vars.TEAM_ID }}" - codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --verbose lib/darwin-x64/node_printer.node + codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime,hardened_runtime --force --entitlements=entitlements.plist --verbose lib/darwin-x64/node_printer.node # Verify the signature echo "Verifying signature:" @@ -77,7 +77,7 @@ jobs: # Also sign the original binary that will be packaged echo "Signing original binary:" - codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --verbose lib/node_printer.node + codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime,hardened_runtime --force --entitlements=entitlements.plist --verbose lib/node_printer.node # Verify the signature on the original binary echo "Verifying original binary signature:" diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index 829ac113..91739644 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -60,9 +60,11 @@ jobs: run: | npx prebuild --backend node-gyp --target 20.3.0 --arch x64 --platform darwin --strip - echo "Signing binary with team ID ${{ vars.TEAM_ID }}:" - codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --verbose lib/node_printer.node + # Sign the binary - verbose output for debugging + echo "Signing binary with Team ID: ${{ vars.TEAM_ID }}" + codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime,hardened_runtime --force --entitlements=entitlements.plist --verbose lib/node_printer.node + # Verify the signature echo "Verifying signature:" codesign -vvv --deep --strict lib/node_printer.node diff --git a/entitlements.plist b/entitlements.plist new file mode 100644 index 00000000..3a5e3558 --- /dev/null +++ b/entitlements.plist @@ -0,0 +1,16 @@ + + + + + com.apple.security.cs.allow-unsigned-executable-memory + + com.apple.security.cs.allow-dyld-environment-variables + + com.apple.security.cs.disable-library-validation + + com.apple.security.automation.apple-events + + com.apple.security.device.usb + + + From d76d896bcfd7e10d58a33f90a0d91b3abda9575b Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Tue, 6 May 2025 21:45:08 -0400 Subject: [PATCH 08/30] try to sign with one that works for notarized apps --- .github/workflows/prebuild-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index 91739644..d6244c3d 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -62,7 +62,7 @@ jobs: # Sign the binary - verbose output for debugging echo "Signing binary with Team ID: ${{ vars.TEAM_ID }}" - codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime,hardened_runtime --force --entitlements=entitlements.plist --verbose lib/node_printer.node + codesign --sign ${{ vars.TEAM_ID }} --timestamp --options runtime --force --entitlements=entitlements.plist --verbose lib/node_printer.node # Verify the signature echo "Verifying signature:" From b55c3b2d71f1deaac510a419a15e2836d0b648ba Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Tue, 6 May 2025 22:13:10 -0400 Subject: [PATCH 09/30] run only mac prebuild and use prebuild for all --- .github/workflows/prebuild-pr.yml | 113 ++++++++++++++---------------- 1 file changed, 51 insertions(+), 62 deletions(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index d6244c3d..0f941b3b 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -58,18 +58,7 @@ jobs: - name: Build and sign macOS prebuild run: | - npx prebuild --backend node-gyp --target 20.3.0 --arch x64 --platform darwin --strip - - # Sign the binary - verbose output for debugging - echo "Signing binary with Team ID: ${{ vars.TEAM_ID }}" - codesign --sign ${{ vars.TEAM_ID }} --timestamp --options runtime --force --entitlements=entitlements.plist --verbose lib/node_printer.node - - # Verify the signature - echo "Verifying signature:" - codesign -vvv --deep --strict lib/node_printer.node - - # Now create the package with the signed binary - tar -czvf node-printer-v${{ needs.get-version.outputs.version }}-node-v115-darwin-x64.tar.gz lib + npx prebuild --target 20.3.0 --arch x64 --platform darwin -r electron --strip -c 'codesign --sign ${{ vars.TEAM_ID }} --timestamp --options runtime --force --entitlements=entitlements.plist --verbose lib/node_printer.node' echo "Checking for tar.gz files:" find . -name "*.tar.gz" -type f @@ -85,59 +74,59 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - prebuild-windows: - name: Prebuild Binaries for Windows - needs: get-version - runs-on: windows-latest - timeout-minutes: 30 - steps: - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: 20 - - - name: Checkout - uses: actions/checkout@v4 - - - name: Install dependencies - run: npm i - - - name: Prebuild Windows binaries - run: | - # Create platform-specific directories - mkdir -p lib/win32-x64 - mkdir -p lib/win32-ia32 - - # Build x64 version - npx prebuild --backend node-gyp --target 20.3.0 --arch x64 --platform win32 --strip --pack - # Copy to platform-specific directory - copy lib\node_printer.node lib\win32-x64\ - - # Build ia32 version - npx prebuild --backend node-gyp --target 20.3.0 --arch ia32 --platform win32 --strip --pack - # Copy to platform-specific directory - copy lib\node_printer.node lib\win32-ia32\ - - # List the directories to verify - dir lib - dir lib\win32-x64 || echo "x64 directory not found" - dir lib\win32-ia32 || echo "ia32 directory not found" - - - name: Upload Windows binaries to GitHub release - uses: softprops/action-gh-release@v2 - with: - tag_name: v${{ needs.get-version.outputs.version }} - draft: true - files: | - *.tar.gz - **/*.tar.gz - append_body: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# prebuild-windows: +# name: Prebuild Binaries for Windows +# needs: get-version +# runs-on: windows-latest +# timeout-minutes: 30 +# steps: +# - name: Setup Node +# uses: actions/setup-node@v4 +# with: +# node-version: 20 +# +# - name: Checkout +# uses: actions/checkout@v4 +# +# - name: Install dependencies +# run: npm i +# +# - name: Prebuild Windows binaries +# run: | +# # Create platform-specific directories +# mkdir -p lib/win32-x64 +# mkdir -p lib/win32-ia32 +# +# # Build x64 version +# npx prebuild --backend node-gyp --target 20.3.0 --arch x64 --platform win32 --strip --pack +# # Copy to platform-specific directory +# copy lib\node_printer.node lib\win32-x64\ +# +# # Build ia32 version +# npx prebuild --backend node-gyp --target 20.3.0 --arch ia32 --platform win32 --strip --pack +# # Copy to platform-specific directory +# copy lib\node_printer.node lib\win32-ia32\ +# +# # List the directories to verify +# dir lib +# dir lib\win32-x64 || echo "x64 directory not found" +# dir lib\win32-ia32 || echo "ia32 directory not found" +# +# - name: Upload Windows binaries to GitHub release +# uses: softprops/action-gh-release@v2 +# with: +# tag_name: v${{ needs.get-version.outputs.version }} +# draft: true +# files: | +# *.tar.gz +# **/*.tar.gz +# append_body: true +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} publish-release: name: Publish GitHub Release - needs: [get-version, prebuild-macos, prebuild-windows] + needs: [get-version, prebuild-macos] runs-on: ubuntu-latest steps: - name: Publish Release From 55a88a74d10dc883ea806d7a42213b209bcf8b2f Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Tue, 6 May 2025 22:28:00 -0400 Subject: [PATCH 10/30] try building for electron and skipping target, just to see --- .github/workflows/prebuild-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index 0f941b3b..afed558d 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -58,7 +58,7 @@ jobs: - name: Build and sign macOS prebuild run: | - npx prebuild --target 20.3.0 --arch x64 --platform darwin -r electron --strip -c 'codesign --sign ${{ vars.TEAM_ID }} --timestamp --options runtime --force --entitlements=entitlements.plist --verbose lib/node_printer.node' + npx prebuild --arch x64 --platform darwin -r electron --strip -c 'codesign --sign ${{ vars.TEAM_ID }} --timestamp --options runtime --force --entitlements=entitlements.plist --verbose lib/node_printer.node' echo "Checking for tar.gz files:" find . -name "*.tar.gz" -type f @@ -69,7 +69,7 @@ jobs: tag_name: v${{ needs.get-version.outputs.version }} draft: true files: | - node-printer-v${{ needs.get-version.outputs.version }}-node-v115-darwin-x64.tar.gz + node-printer-v${{ needs.get-version.outputs.version }}-electron-v107-darwin-x64.tar.gz append_body: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 25b28afd871da1afbdce6c9f8ab5714ab98e3728 Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Tue, 6 May 2025 22:32:39 -0400 Subject: [PATCH 11/30] try building for electron --- .github/workflows/prebuild-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index afed558d..5483c04e 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -58,7 +58,7 @@ jobs: - name: Build and sign macOS prebuild run: | - npx prebuild --arch x64 --platform darwin -r electron --strip -c 'codesign --sign ${{ vars.TEAM_ID }} --timestamp --options runtime --force --entitlements=entitlements.plist --verbose lib/node_printer.node' + npx prebuild -t 33.0.2 --arch x64 --platform darwin -r electron --strip -c 'codesign --sign ${{ vars.TEAM_ID }} --timestamp --options runtime --force --entitlements=entitlements.plist --verbose lib/node_printer.node' echo "Checking for tar.gz files:" find . -name "*.tar.gz" -type f From ceb9e9cc0e5fdaf0888cf397b396819d9eb7e4d3 Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Tue, 6 May 2025 22:36:01 -0400 Subject: [PATCH 12/30] try building for electron --- .github/workflows/prebuild-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index 5483c04e..c73cfbcf 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -69,7 +69,7 @@ jobs: tag_name: v${{ needs.get-version.outputs.version }} draft: true files: | - node-printer-v${{ needs.get-version.outputs.version }}-electron-v107-darwin-x64.tar.gz + node-printer-*.tar.gz append_body: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 49559797bc1c750b14ff415954e506186a95b775 Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Tue, 6 May 2025 22:39:07 -0400 Subject: [PATCH 13/30] try building for electron --- .github/workflows/prebuild-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index c73cfbcf..ed8e94f5 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -69,7 +69,7 @@ jobs: tag_name: v${{ needs.get-version.outputs.version }} draft: true files: | - node-printer-*.tar.gz + **/node-printer-*darwin-x64.tar.gz append_body: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From e1f52380627837dea89bfd62d18c46563c463d35 Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Tue, 6 May 2025 22:48:10 -0400 Subject: [PATCH 14/30] try building for electron and node --- .github/workflows/prebuild-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index ed8e94f5..0d5587ea 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -58,7 +58,7 @@ jobs: - name: Build and sign macOS prebuild run: | - npx prebuild -t 33.0.2 --arch x64 --platform darwin -r electron --strip -c 'codesign --sign ${{ vars.TEAM_ID }} --timestamp --options runtime --force --entitlements=entitlements.plist --verbose lib/node_printer.node' + npx prebuild -t 20.18.1 --arch x64 --platform darwin -r electron --strip -c 'codesign --sign ${{ vars.TEAM_ID }} --timestamp --options runtime --force --entitlements=entitlements.plist --verbose lib/node_printer.node' echo "Checking for tar.gz files:" find . -name "*.tar.gz" -type f From 30d7eea83a988c3c199d070d0844701d87bec51d Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Tue, 6 May 2025 22:55:02 -0400 Subject: [PATCH 15/30] try building for electron and node --- .github/workflows/prebuild-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index 0d5587ea..4fb88278 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -58,7 +58,7 @@ jobs: - name: Build and sign macOS prebuild run: | - npx prebuild -t 20.18.1 --arch x64 --platform darwin -r electron --strip -c 'codesign --sign ${{ vars.TEAM_ID }} --timestamp --options runtime --force --entitlements=entitlements.plist --verbose lib/node_printer.node' + npx prebuild -t 20.18.0 --arch x64 --platform darwin -r electron --strip -c 'codesign --sign ${{ vars.TEAM_ID }} --timestamp --options runtime --force --entitlements=entitlements.plist --verbose lib/node_printer.node' echo "Checking for tar.gz files:" find . -name "*.tar.gz" -type f From 0729ba0ca8d3d2a8b6ddf8f638dd3d41ec9975cc Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Wed, 7 May 2025 10:32:43 -0400 Subject: [PATCH 16/30] try building x64 and arm64 for macos --- .github/workflows/prebuild-pr.yml | 106 +++++++++++++++--------------- 1 file changed, 54 insertions(+), 52 deletions(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index 4fb88278..eb66d33c 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -58,7 +58,14 @@ jobs: - name: Build and sign macOS prebuild run: | - npx prebuild -t 20.18.0 --arch x64 --platform darwin -r electron --strip -c 'codesign --sign ${{ vars.TEAM_ID }} --timestamp --options runtime --force --entitlements=entitlements.plist --verbose lib/node_printer.node' + mkdir -p lib\darwin-x64\ + mkdir -p lib\darwin-arm64\ + + npx prebuild -t 20.18.0 --arch x64 --platform darwin -r electron --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' + copy lib\node_printer.node lib\darwin-x64\ + + npx prebuild -t 20.18.0 --arch arm64 --platform darwin -r electron --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' + copy lib\node_printer.node lib\darwin-arm64\ echo "Checking for tar.gz files:" find . -name "*.tar.gz" -type f @@ -69,64 +76,59 @@ jobs: tag_name: v${{ needs.get-version.outputs.version }} draft: true files: | - **/node-printer-*darwin-x64.tar.gz + *.tar.gz + **/*.tar.gz append_body: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# prebuild-windows: -# name: Prebuild Binaries for Windows -# needs: get-version -# runs-on: windows-latest -# timeout-minutes: 30 -# steps: -# - name: Setup Node -# uses: actions/setup-node@v4 -# with: -# node-version: 20 -# -# - name: Checkout -# uses: actions/checkout@v4 -# -# - name: Install dependencies -# run: npm i -# -# - name: Prebuild Windows binaries -# run: | -# # Create platform-specific directories -# mkdir -p lib/win32-x64 -# mkdir -p lib/win32-ia32 -# -# # Build x64 version -# npx prebuild --backend node-gyp --target 20.3.0 --arch x64 --platform win32 --strip --pack -# # Copy to platform-specific directory -# copy lib\node_printer.node lib\win32-x64\ -# -# # Build ia32 version -# npx prebuild --backend node-gyp --target 20.3.0 --arch ia32 --platform win32 --strip --pack -# # Copy to platform-specific directory -# copy lib\node_printer.node lib\win32-ia32\ -# -# # List the directories to verify -# dir lib -# dir lib\win32-x64 || echo "x64 directory not found" -# dir lib\win32-ia32 || echo "ia32 directory not found" -# -# - name: Upload Windows binaries to GitHub release -# uses: softprops/action-gh-release@v2 -# with: -# tag_name: v${{ needs.get-version.outputs.version }} -# draft: true -# files: | -# *.tar.gz -# **/*.tar.gz -# append_body: true -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + prebuild-windows: + name: Prebuild Binaries for Windows + needs: get-version + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Checkout + uses: actions/checkout@v4 + + - name: Install dependencies + run: npm i + + - name: Prebuild Windows binaries + run: | + mkdir -p lib/win32-x64 + mkdir -p lib/win32-ia32 + + npx prebuild --backend node-gyp --target 20.3.0 --arch x64 --platform win32 --strip --pack + copy lib\node_printer.node lib\win32-x64\ + + npx prebuild --backend node-gyp --target 20.3.0 --arch ia32 --platform win32 --strip --pack + copy lib\node_printer.node lib\win32-ia32\ + + dir lib + dir lib\win32-x64 || echo "x64 directory not found" + dir lib\win32-ia32 || echo "ia32 directory not found" + + - name: Upload Windows binaries to GitHub release + uses: softprops/action-gh-release@v2 + with: + tag_name: v${{ needs.get-version.outputs.version }} + draft: true + files: | + *.tar.gz + **/*.tar.gz + append_body: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} publish-release: name: Publish GitHub Release - needs: [get-version, prebuild-macos] + needs: [get-version, prebuild-macos, prebuild-windows] runs-on: ubuntu-latest steps: - name: Publish Release From a544ff246e477e4ac366b464da6af83c4964d1ff Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Wed, 7 May 2025 10:34:58 -0400 Subject: [PATCH 17/30] try building x64 and arm64 for macos --- .github/workflows/prebuild-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index eb66d33c..55283dc2 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -61,10 +61,10 @@ jobs: mkdir -p lib\darwin-x64\ mkdir -p lib\darwin-arm64\ - npx prebuild -t 20.18.0 --arch x64 --platform darwin -r electron --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' + npx prebuild -t 20.3.0 --arch x64 --platform darwin -r electron --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' copy lib\node_printer.node lib\darwin-x64\ - npx prebuild -t 20.18.0 --arch arm64 --platform darwin -r electron --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' + npx prebuild -t 20.3.0 --arch arm64 --platform darwin -r electron --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' copy lib\node_printer.node lib\darwin-arm64\ echo "Checking for tar.gz files:" From 8d23f4a9dd1c76a0b436e56246bd616e6c02ca20 Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Wed, 7 May 2025 10:43:15 -0400 Subject: [PATCH 18/30] try building x64 and arm64 for macos --- .github/workflows/prebuild-pr.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index 55283dc2..436e29d5 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -3,6 +3,11 @@ name: Prebuild Binaries on: pull_request: +# Add concurrency configuration to ensure only one workflow runs at a time +concurrency: + group: prebuild-pr + cancel-in-progress: true + jobs: get-version: name: Get Package Version @@ -61,10 +66,10 @@ jobs: mkdir -p lib\darwin-x64\ mkdir -p lib\darwin-arm64\ - npx prebuild -t 20.3.0 --arch x64 --platform darwin -r electron --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' + npx prebuild --backend node-gyp -t 20.3.0 --arch x64 --platform darwin --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' copy lib\node_printer.node lib\darwin-x64\ - npx prebuild -t 20.3.0 --arch arm64 --platform darwin -r electron --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' + npx prebuild --backend node-gyp -t 20.3.0 --arch arm64 --platform darwin --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' copy lib\node_printer.node lib\darwin-arm64\ echo "Checking for tar.gz files:" From fff9a6178465f4b37575b10a2aae66c343b956c5 Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Wed, 7 May 2025 10:45:29 -0400 Subject: [PATCH 19/30] fix copy doh --- .github/workflows/prebuild-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index 436e29d5..1a38fe2d 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -67,10 +67,10 @@ jobs: mkdir -p lib\darwin-arm64\ npx prebuild --backend node-gyp -t 20.3.0 --arch x64 --platform darwin --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' - copy lib\node_printer.node lib\darwin-x64\ + cp lib\node_printer.node lib\darwin-x64\ npx prebuild --backend node-gyp -t 20.3.0 --arch arm64 --platform darwin --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' - copy lib\node_printer.node lib\darwin-arm64\ + cp lib\node_printer.node lib\darwin-arm64\ echo "Checking for tar.gz files:" find . -name "*.tar.gz" -type f From e288bfb38a0de31be10ba354b0bcf6c19ac294bd Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Wed, 7 May 2025 10:47:18 -0400 Subject: [PATCH 20/30] fix copy again --- .github/workflows/prebuild-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index 1a38fe2d..06dd3ece 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -67,10 +67,10 @@ jobs: mkdir -p lib\darwin-arm64\ npx prebuild --backend node-gyp -t 20.3.0 --arch x64 --platform darwin --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' - cp lib\node_printer.node lib\darwin-x64\ + cp lib/node_printer.node lib/darwin-x64/ npx prebuild --backend node-gyp -t 20.3.0 --arch arm64 --platform darwin --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' - cp lib\node_printer.node lib\darwin-arm64\ + cp lib/node_printer.node lib/darwin-arm64/ echo "Checking for tar.gz files:" find . -name "*.tar.gz" -type f From 2631aa39a30e6055e1084c86f5533b8e075dd8ff Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Wed, 7 May 2025 10:49:14 -0400 Subject: [PATCH 21/30] fix mkdir --- .github/workflows/prebuild-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index 06dd3ece..86c0a636 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -63,8 +63,8 @@ jobs: - name: Build and sign macOS prebuild run: | - mkdir -p lib\darwin-x64\ - mkdir -p lib\darwin-arm64\ + mkdir -p lib/darwin-x64/ + mkdir -p lib/darwin-arm64/ npx prebuild --backend node-gyp -t 20.3.0 --arch x64 --platform darwin --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' cp lib/node_printer.node lib/darwin-x64/ From e49737ca7204d7dc01bd4df64d9ac5664f7a3d08 Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Wed, 7 May 2025 11:07:21 -0400 Subject: [PATCH 22/30] build for electron --- .github/workflows/prebuild-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index 86c0a636..d246fd2e 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -66,10 +66,10 @@ jobs: mkdir -p lib/darwin-x64/ mkdir -p lib/darwin-arm64/ - npx prebuild --backend node-gyp -t 20.3.0 --arch x64 --platform darwin --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' + npx prebuild --backend node-gyp -t 20.3.0 --arch x64 --platform darwin --strip -r electron -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' cp lib/node_printer.node lib/darwin-x64/ - npx prebuild --backend node-gyp -t 20.3.0 --arch arm64 --platform darwin --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' + npx prebuild --backend node-gyp -t 20.3.0 --arch arm64 --platform darwin --strip -r electron -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' cp lib/node_printer.node lib/darwin-arm64/ echo "Checking for tar.gz files:" From 7f92433a267f246fcc055cc56fb630d6c4ad18b2 Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Wed, 7 May 2025 11:57:32 -0400 Subject: [PATCH 23/30] fix package_name so prebuilds match --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0a7b75f3..6cd83301 100644 --- a/package.json +++ b/package.json @@ -35,11 +35,11 @@ "test": "nodeunit test" }, "binary": { - "module_name": "node_printer", + "module_name": "node-printer", "module_path": "lib", "host": "https://github.com/casechek/node-printer/releases/download/", "remote_path": "v{version}", - "package_name": "{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz" + "package_name": "{module_name}-v{version}-{runtime}-v{node_abi}-{platform}-{arch}.tar.gz" }, "license": "MIT", "main": "./lib/printer", From 2e21f998af50cd0468fee2753682edae8be9a630 Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Wed, 7 May 2025 14:30:40 -0400 Subject: [PATCH 24/30] build node and electron --- .github/workflows/prebuild-pr.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index d246fd2e..04a0118a 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -63,13 +63,21 @@ jobs: - name: Build and sign macOS prebuild run: | + mkdir -p lib/electron/darwin-x64/ + mkdir -p lib/electron/darwin-arm64/ mkdir -p lib/darwin-x64/ mkdir -p lib/darwin-arm64/ npx prebuild --backend node-gyp -t 20.3.0 --arch x64 --platform darwin --strip -r electron -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' - cp lib/node_printer.node lib/darwin-x64/ + cp lib/node_printer.node lib/electron/darwin-x64/ npx prebuild --backend node-gyp -t 20.3.0 --arch arm64 --platform darwin --strip -r electron -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' + cp lib/node_printer.node lib/electron/darwin-arm64/ + + npx prebuild --backend node-gyp -t 20.3.0 --arch x64 --platform darwin --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' + cp lib/node_printer.node lib/darwin-x64/ + + npx prebuild --backend node-gyp -t 20.3.0 --arch arm64 --platform darwin --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' cp lib/node_printer.node lib/darwin-arm64/ echo "Checking for tar.gz files:" From 6009e1decdea460ce95e823ecd17e812895e6689 Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Wed, 7 May 2025 14:38:22 -0400 Subject: [PATCH 25/30] build node and electron --- .github/workflows/prebuild-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index 04a0118a..ce6bd032 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -68,10 +68,10 @@ jobs: mkdir -p lib/darwin-x64/ mkdir -p lib/darwin-arm64/ - npx prebuild --backend node-gyp -t 20.3.0 --arch x64 --platform darwin --strip -r electron -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' + npx prebuild --backend node-gyp -t 33.0.2 --arch x64 --platform darwin --strip -r electron -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' cp lib/node_printer.node lib/electron/darwin-x64/ - npx prebuild --backend node-gyp -t 20.3.0 --arch arm64 --platform darwin --strip -r electron -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' + npx prebuild --backend node-gyp -t 33.0.2 --arch arm64 --platform darwin --strip -r electron -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' cp lib/node_printer.node lib/electron/darwin-arm64/ npx prebuild --backend node-gyp -t 20.3.0 --arch x64 --platform darwin --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' From 26e75666d82412d3ed17228f47ab5aaad646f6ab Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Wed, 7 May 2025 15:13:45 -0400 Subject: [PATCH 26/30] build node and electron --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6cd83301..5045645d 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "test": "nodeunit test" }, "binary": { - "module_name": "node-printer", + "module_name": "node_printer", "module_path": "lib", "host": "https://github.com/casechek/node-printer/releases/download/", "remote_path": "v{version}", From 935ee5eeac31a4cb5aef15e1760c47d57c30bdca Mon Sep 17 00:00:00 2001 From: Stephen Carlin Date: Wed, 7 May 2025 17:42:13 -0400 Subject: [PATCH 27/30] fix the codesign sign value --- .github/workflows/prebuild-pr.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild-pr.yml index ce6bd032..61542915 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild-pr.yml @@ -68,16 +68,16 @@ jobs: mkdir -p lib/darwin-x64/ mkdir -p lib/darwin-arm64/ - npx prebuild --backend node-gyp -t 33.0.2 --arch x64 --platform darwin --strip -r electron -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' + npx prebuild --backend node-gyp -t 33.0.2 --arch x64 --platform darwin --strip -r electron -c 'codesign --sign "Developer ID Application: Incompass Medical Solutions LLC (${{ vars.TEAM_ID }})" --timestamp --options runtime --force --verbose lib/node_printer.node' cp lib/node_printer.node lib/electron/darwin-x64/ - npx prebuild --backend node-gyp -t 33.0.2 --arch arm64 --platform darwin --strip -r electron -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' + npx prebuild --backend node-gyp -t 33.0.2 --arch arm64 --platform darwin --strip -r electron -c 'codesign --sign "Developer ID Application: Incompass Medical Solutions LLC (${{ vars.TEAM_ID }})" --timestamp --options runtime --force --verbose lib/node_printer.node' cp lib/node_printer.node lib/electron/darwin-arm64/ - npx prebuild --backend node-gyp -t 20.3.0 --arch x64 --platform darwin --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' + npx prebuild --backend node-gyp -t 20.3.0 --arch x64 --platform darwin --strip -c 'codesign --sign "Developer ID Application: Incompass Medical Solutions LLC (${{ vars.TEAM_ID }})" --timestamp --options runtime --force --verbose lib/node_printer.node' cp lib/node_printer.node lib/darwin-x64/ - npx prebuild --backend node-gyp -t 20.3.0 --arch arm64 --platform darwin --strip -c 'codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime --force --verbose lib/node_printer.node' + npx prebuild --backend node-gyp -t 20.3.0 --arch arm64 --platform darwin --strip -c 'codesign --sign "Developer ID Application: Incompass Medical Solutions LLC (${{ vars.TEAM_ID }})" --timestamp --options runtime --force --verbose lib/node_printer.node' cp lib/node_printer.node lib/darwin-arm64/ echo "Checking for tar.gz files:" From 38eaef7570dd0129a95aba9fa71d07090b997ba1 Mon Sep 17 00:00:00 2001 From: Steven Lehn Date: Mon, 19 May 2025 11:16:36 -0500 Subject: [PATCH 28/30] feat: merge CI files --- .github/workflows/prebuild-main.yml | 167 ------------------ .../{prebuild-pr.yml => prebuild.yml} | 12 +- 2 files changed, 10 insertions(+), 169 deletions(-) delete mode 100644 .github/workflows/prebuild-main.yml rename .github/workflows/{prebuild-pr.yml => prebuild.yml} (92%) diff --git a/.github/workflows/prebuild-main.yml b/.github/workflows/prebuild-main.yml deleted file mode 100644 index 39f0daf0..00000000 --- a/.github/workflows/prebuild-main.yml +++ /dev/null @@ -1,167 +0,0 @@ -name: Main Prebuild Binaries - -on: - push: - branches: - - main - -jobs: - get-version: - name: Get Package Version - runs-on: ubuntu-latest - outputs: - version: ${{ steps.set-version.outputs.version }} - release_id: ${{ steps.create-release.outputs.id }} - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Get package version - id: package-version - uses: martinbeentjes/npm-get-version-action@v1.3.1 - - - name: Set release version - id: set-version - run: echo "version=${{ steps.package-version.outputs.current-version }}" >> $GITHUB_OUTPUT - - - name: Create GitHub Release - id: create-release - uses: softprops/action-gh-release@v2 - with: - tag_name: v${{ steps.set-version.outputs.version }} - draft: true - name: Release v${{ steps.set-version.outputs.version }} - generate_release_notes: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - prebuild-macos: - name: Prebuild Binaries for macOS - needs: get-version - runs-on: macos-latest - timeout-minutes: 30 - steps: - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: 20 - - - name: Checkout - uses: actions/checkout@v4 - - - name: Install dependencies - run: npm i - - - name: Extract certificate - uses: apple-actions/import-codesign-certs@v3 - with: - p12-file-base64: ${{ secrets.APPLICATION_CERTIFICATE_P12 }} - p12-password: ${{ secrets.APPLICATION_CERTIFICATE_P12_PASSWORD }} - - - name: Build and sign macOS prebuild - run: | - # Build the binary - npx prebuild --backend node-gyp --target 20.3.0 --arch x64 --platform darwin --strip - - # Create platform-specific directory - mkdir -p lib/darwin-x64 - cp lib/node_printer.node lib/darwin-x64/ - - # Sign the binary - verbose output for debugging - echo "Signing binary with Team ID: ${{ vars.TEAM_ID }}" - codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime,hardened_runtime --force --entitlements=entitlements.plist --verbose lib/darwin-x64/node_printer.node - - # Verify the signature - echo "Verifying signature:" - codesign -vvv --deep --strict lib/darwin-x64/node_printer.node - - # Also sign the original binary that will be packaged - echo "Signing original binary:" - codesign --sign "${{ vars.TEAM_ID }}" --timestamp --options runtime,hardened_runtime --force --entitlements=entitlements.plist --verbose lib/node_printer.node - - # Verify the signature on the original binary - echo "Verifying original binary signature:" - codesign -vvv --deep --strict lib/node_printer.node - - # Now create the package with the signed binary - npx prebuild --backend node-gyp --target 20.3.0 --arch x64 --platform darwin --pack - - # List directories to see where tar.gz files are - echo "Checking for tar.gz files:" - find . -name "*.tar.gz" -type f - - - name: Upload macOS binary to GitHub release - uses: softprops/action-gh-release@v2 - with: - tag_name: v${{ needs.get-version.outputs.version }} - draft: true - files: | - *.tar.gz - **/*.tar.gz - append_body: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - prebuild-windows: - name: Prebuild Binaries for Windows - needs: get-version - runs-on: windows-latest - timeout-minutes: 30 - steps: - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: 20 - - - name: Checkout - uses: actions/checkout@v4 - - - name: Install dependencies - run: npm i - - - name: Prebuild Windows binaries - run: | - # Create platform-specific directories - mkdir -p lib/win32-x64 - mkdir -p lib/win32-ia32 - - # Build x64 version - npx prebuild --backend node-gyp --target 20.3.0 --arch x64 --platform win32 --strip --pack - # Copy to platform-specific directory - copy lib\node_printer.node lib\win32-x64\ - - # Build ia32 version - npx prebuild --backend node-gyp --target 20.3.0 --arch ia32 --platform win32 --strip --pack - # Copy to platform-specific directory - copy lib\node_printer.node lib\win32-ia32\ - - # List the directories to verify - dir lib - dir lib\win32-x64 || echo "x64 directory not found" - dir lib\win32-ia32 || echo "ia32 directory not found" - - - name: Upload Windows binaries to GitHub release - uses: softprops/action-gh-release@v2 - with: - tag_name: v${{ needs.get-version.outputs.version }} - draft: true - files: | - *.tar.gz - **/*.tar.gz - append_body: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - publish-release: - name: Publish GitHub Release - needs: [get-version, prebuild-macos, prebuild-windows] - runs-on: ubuntu-latest - steps: - - name: Publish Release - uses: softprops/action-gh-release@v2 - with: - tag_name: v${{ needs.get-version.outputs.version }} - draft: false - append_body: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/prebuild-pr.yml b/.github/workflows/prebuild.yml similarity index 92% rename from .github/workflows/prebuild-pr.yml rename to .github/workflows/prebuild.yml index 61542915..2df4e077 100644 --- a/.github/workflows/prebuild-pr.yml +++ b/.github/workflows/prebuild.yml @@ -1,11 +1,14 @@ name: Prebuild Binaries on: + push: + branches: + - main pull_request: # Add concurrency configuration to ensure only one workflow runs at a time concurrency: - group: prebuild-pr + group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: @@ -25,7 +28,12 @@ jobs: - name: Set release version id: set-version - run: echo "version=${{ steps.package-version.outputs.current-version }}-pr${{ github.event.pull_request.number }}" >> $GITHUB_OUTPUT + run: | + if [ -n "${{ github.event.pull_request.number }}" ]; then + echo "version=${{ steps.package-version.outputs.current-version }}-pr${{ github.event.pull_request.number }}" >> $GITHUB_OUTPUT + else + echo "version=${{ steps.package-version.outputs.current-version }}" >> $GITHUB_OUTPUT + fi - name: Create GitHub Release id: create-release From 9e7788103f5b0905b04a4f2b05b19eb032fba407 Mon Sep 17 00:00:00 2001 From: Steven Lehn Date: Mon, 19 May 2025 11:17:42 -0500 Subject: [PATCH 29/30] chore: upgrade version to 1.0.0 --- package-lock.json | 782 +--------------------------------------------- package.json | 2 +- 2 files changed, 3 insertions(+), 781 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7b52294b..2340d914 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@casechek/node-printer", - "version": "0.6.2", + "version": "1.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@casechek/node-printer", - "version": "0.6.2", + "version": "1.0.0", "hasInstallScript": true, "license": "MIT", "dependencies": { @@ -16,7 +16,6 @@ "devDependencies": { "node-abi": "^3.56.0", "nodeunit": "^0.11.3", - "patch-package": "^8.0.0", "prebuild": "^13.0.1", "prebuild-ci": "^4.0.0" }, @@ -368,12 +367,6 @@ "node": ">=14" } }, - "node_modules/@yarnpkg/lockfile": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", - "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==", - "dev": true - }, "node_modules/abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", @@ -586,16 +579,6 @@ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", "dev": true }, - "node_modules/at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">= 4.0.0" - } - }, "node_modules/aws-sign2": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", @@ -725,18 +708,6 @@ "concat-map": "0.0.1" } }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/browser-process-hrtime": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", @@ -918,25 +889,6 @@ "node": ">=6" } }, - "node_modules/call-bind": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", - "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.0", - "es-define-property": "^1.0.0", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/call-bind-apply-helpers": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", @@ -951,23 +903,6 @@ "node": ">= 0.4" } }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/capture-stack-trace": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.1.tgz", @@ -1002,22 +937,6 @@ "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==" }, - "node_modules/ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/clean-stack": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", @@ -1462,24 +1381,6 @@ "node": ">=4" } }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -1866,18 +1767,6 @@ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "dev": true }, - "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/find-cache-dir": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz", @@ -1904,15 +1793,6 @@ "node": ">=6" } }, - "node_modules/find-yarn-workspace-root": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz", - "integrity": "sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==", - "dev": true, - "dependencies": { - "micromatch": "^4.0.2" - } - }, "node_modules/follow-redirects": { "version": "1.15.9", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", @@ -1988,22 +1868,6 @@ "integrity": "sha1-zyVVTKBQ3EmuZla0HeQiWJidy84=", "dev": true }, - "node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/fs-minipass": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", @@ -2323,19 +2187,6 @@ "node": ">=4" } }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/has-symbols": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", @@ -2588,21 +2439,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "dev": true, - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -2620,15 +2456,6 @@ "dev": true, "license": "MIT" }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, "node_modules/is-stream": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", @@ -2644,18 +2471,6 @@ "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", "dev": true }, - "node_modules/is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "dev": true, - "dependencies": { - "is-docker": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", @@ -2847,33 +2662,6 @@ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, - "node_modules/json-stable-stringify": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.3.0.tgz", - "integrity": "sha512-qtYiSSFlwot9XHtF9bD9c7rwKjr+RecWT//ZnPvSmEjpV5mmPOCN4j8UjY5hbjNkOwZ/jQv3J6R1/pL7RwgMsg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "isarray": "^2.0.5", - "jsonify": "^0.0.1", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/json-stable-stringify/node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true, - "license": "MIT" - }, "node_modules/json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", @@ -2893,16 +2681,6 @@ "graceful-fs": "^4.1.6" } }, - "node_modules/jsonify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", - "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", - "dev": true, - "license": "Public Domain", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/jsonist": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/jsonist/-/jsonist-2.1.2.tgz", @@ -2930,15 +2708,6 @@ "node": ">=0.6.0" } }, - "node_modules/klaw-sync": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz", - "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.1.11" - } - }, "node_modules/lcov-parse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/lcov-parse/-/lcov-parse-1.0.0.tgz", @@ -3125,19 +2894,6 @@ "source-map": "^0.6.1" } }, - "node_modules/micromatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", - "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", - "dev": true, - "dependencies": { - "braces": "^3.0.1", - "picomatch": "^2.2.3" - }, - "engines": { - "node": ">=8.6" - } - }, "node_modules/mime-db": { "version": "1.51.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz", @@ -4153,16 +3909,6 @@ "node": ">=0.10.0" } }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -4171,22 +3917,6 @@ "wrappy": "1" } }, - "node_modules/open": { - "version": "7.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", - "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", - "dev": true, - "dependencies": { - "is-docker": "^2.0.0", - "is-wsl": "^2.1.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/opener": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", @@ -4326,126 +4056,6 @@ "node": ">=4" } }, - "node_modules/patch-package": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-8.0.0.tgz", - "integrity": "sha512-da8BVIhzjtgScwDJ2TtKsfT5JFWz1hYoBl9rUQ1f38MC2HwnEIkK8VN3dKMKcP7P7bvvgzNDbfNHtx3MsQb5vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@yarnpkg/lockfile": "^1.1.0", - "chalk": "^4.1.2", - "ci-info": "^3.7.0", - "cross-spawn": "^7.0.3", - "find-yarn-workspace-root": "^2.0.0", - "fs-extra": "^9.0.0", - "json-stable-stringify": "^1.0.2", - "klaw-sync": "^6.0.0", - "minimist": "^1.2.6", - "open": "^7.4.2", - "rimraf": "^2.6.3", - "semver": "^7.5.3", - "slash": "^2.0.0", - "tmp": "^0.0.33", - "yaml": "^2.2.2" - }, - "bin": { - "patch-package": "index.js" - }, - "engines": { - "node": ">=14", - "npm": ">5" - } - }, - "node_modules/patch-package/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/patch-package/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/patch-package/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/patch-package/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/patch-package/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/patch-package/node_modules/semver": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", - "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/patch-package/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/path-array": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-array/-/path-array-1.0.1.tgz", @@ -4549,18 +4159,6 @@ "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", "dev": true }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, "node_modules/pify": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", @@ -5083,24 +4681,6 @@ "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "dev": true }, - "node_modules/set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -5181,15 +4761,6 @@ "node >= 0.2.0" ] }, - "node_modules/slash": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", - "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/smart-buffer": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", @@ -5875,18 +5446,6 @@ "integrity": "sha512-Ynn2Gsp+oCvYScQXeV+cCs7citRDilq0qDXA6tuvFwDgiYyyaq7D5vKUlAPezzZR5NDobc/QMeN6e5guOYmvxg==", "dev": true }, - "node_modules/tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", - "dev": true, - "dependencies": { - "os-tmpdir": "~1.0.2" - }, - "engines": { - "node": ">=0.6.0" - } - }, "node_modules/to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", @@ -5896,18 +5455,6 @@ "node": ">=4" } }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, "node_modules/tough-cookie": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", @@ -6359,19 +5906,6 @@ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", "dev": true }, - "node_modules/yaml": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.1.tgz", - "integrity": "sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==", - "dev": true, - "license": "ISC", - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14" - } - }, "node_modules/yapool": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/yapool/-/yapool-1.0.0.tgz", @@ -6684,12 +6218,6 @@ "dev": true, "optional": true }, - "@yarnpkg/lockfile": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", - "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==", - "dev": true - }, "abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", @@ -6877,12 +6405,6 @@ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", "dev": true }, - "at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", - "dev": true - }, "aws-sign2": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", @@ -6987,15 +6509,6 @@ "concat-map": "0.0.1" } }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "requires": { - "fill-range": "^7.0.1" - } - }, "browser-process-hrtime": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", @@ -7120,18 +6633,6 @@ "write-file-atomic": "^2.4.2" } }, - "call-bind": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", - "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", - "dev": true, - "requires": { - "call-bind-apply-helpers": "^1.0.0", - "es-define-property": "^1.0.0", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.2" - } - }, "call-bind-apply-helpers": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", @@ -7142,16 +6643,6 @@ "function-bind": "^1.1.2" } }, - "call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, - "requires": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - } - }, "capture-stack-trace": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.1.tgz", @@ -7180,12 +6671,6 @@ "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==" }, - "ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", - "dev": true - }, "clean-stack": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", @@ -7514,17 +6999,6 @@ "strip-bom": "^3.0.0" } }, - "define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "dev": true, - "requires": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - } - }, "delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -7841,15 +7315,6 @@ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "dev": true }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, "find-cache-dir": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz", @@ -7870,15 +7335,6 @@ "locate-path": "^3.0.0" } }, - "find-yarn-workspace-root": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz", - "integrity": "sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==", - "dev": true, - "requires": { - "micromatch": "^4.0.2" - } - }, "follow-redirects": { "version": "1.15.9", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", @@ -7935,18 +7391,6 @@ "integrity": "sha1-zyVVTKBQ3EmuZla0HeQiWJidy84=", "dev": true }, - "fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "dev": true, - "requires": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - }, "fs-minipass": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", @@ -8186,15 +7630,6 @@ "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", "dev": true }, - "has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "dev": true, - "requires": { - "es-define-property": "^1.0.0" - } - }, "has-symbols": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", @@ -8380,12 +7815,6 @@ "has": "^1.0.3" } }, - "is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "dev": true - }, "is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -8398,12 +7827,6 @@ "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==", "dev": true }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, "is-stream": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", @@ -8416,15 +7839,6 @@ "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", "dev": true }, - "is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "dev": true, - "requires": { - "is-docker": "^2.0.0" - } - }, "isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", @@ -8581,27 +7995,6 @@ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, - "json-stable-stringify": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.3.0.tgz", - "integrity": "sha512-qtYiSSFlwot9XHtF9bD9c7rwKjr+RecWT//ZnPvSmEjpV5mmPOCN4j8UjY5hbjNkOwZ/jQv3J6R1/pL7RwgMsg==", - "dev": true, - "requires": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "isarray": "^2.0.5", - "jsonify": "^0.0.1", - "object-keys": "^1.1.1" - }, - "dependencies": { - "isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true - } - } - }, "json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", @@ -8618,12 +8011,6 @@ "universalify": "^2.0.0" } }, - "jsonify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", - "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", - "dev": true - }, "jsonist": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/jsonist/-/jsonist-2.1.2.tgz", @@ -8648,15 +8035,6 @@ "verror": "1.10.0" } }, - "klaw-sync": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz", - "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.11" - } - }, "lcov-parse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/lcov-parse/-/lcov-parse-1.0.0.tgz", @@ -8815,16 +8193,6 @@ "source-map": "^0.6.1" } }, - "micromatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", - "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", - "dev": true, - "requires": { - "braces": "^3.0.1", - "picomatch": "^2.2.3" - } - }, "mime-db": { "version": "1.51.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz", @@ -9597,12 +8965,6 @@ "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "dev": true }, - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true - }, "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -9611,16 +8973,6 @@ "wrappy": "1" } }, - "open": { - "version": "7.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", - "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", - "dev": true, - "requires": { - "is-docker": "^2.0.0", - "is-wsl": "^2.1.1" - } - }, "opener": { "version": "1.5.2", "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", @@ -9725,86 +9077,6 @@ "json-parse-better-errors": "^1.0.1" } }, - "patch-package": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-8.0.0.tgz", - "integrity": "sha512-da8BVIhzjtgScwDJ2TtKsfT5JFWz1hYoBl9rUQ1f38MC2HwnEIkK8VN3dKMKcP7P7bvvgzNDbfNHtx3MsQb5vA==", - "dev": true, - "requires": { - "@yarnpkg/lockfile": "^1.1.0", - "chalk": "^4.1.2", - "ci-info": "^3.7.0", - "cross-spawn": "^7.0.3", - "find-yarn-workspace-root": "^2.0.0", - "fs-extra": "^9.0.0", - "json-stable-stringify": "^1.0.2", - "klaw-sync": "^6.0.0", - "minimist": "^1.2.6", - "open": "^7.4.2", - "rimraf": "^2.6.3", - "semver": "^7.5.3", - "slash": "^2.0.0", - "tmp": "^0.0.33", - "yaml": "^2.2.2" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "semver": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", - "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, "path-array": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-array/-/path-array-1.0.1.tgz", @@ -9885,12 +9157,6 @@ "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", "dev": true }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true - }, "pify": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", @@ -10258,20 +9524,6 @@ "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "dev": true }, - "set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "dev": true, - "requires": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - } - }, "shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -10314,12 +9566,6 @@ "integrity": "sha1-lfUXxPRm18/1YacfydqyWW6p7y4=", "dev": true }, - "slash": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", - "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", - "dev": true - }, "smart-buffer": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", @@ -10882,30 +10128,12 @@ "integrity": "sha512-Ynn2Gsp+oCvYScQXeV+cCs7citRDilq0qDXA6tuvFwDgiYyyaq7D5vKUlAPezzZR5NDobc/QMeN6e5guOYmvxg==", "dev": true }, - "tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", - "dev": true, - "requires": { - "os-tmpdir": "~1.0.2" - } - }, "to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", "dev": true }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { - "is-number": "^7.0.0" - } - }, "tough-cookie": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", @@ -11244,12 +10472,6 @@ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", "dev": true }, - "yaml": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.1.tgz", - "integrity": "sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==", - "dev": true - }, "yapool": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/yapool/-/yapool-1.0.0.tgz", diff --git a/package.json b/package.json index 5045645d..b72be3be 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@casechek/node-printer", "description": "Node.js printer bindings", - "version": "0.7.0", + "version": "1.0.0", "homepage": "https://github.com/casechek/node-printer", "author": { "name": "Ion Lupascu", From 2f3d561238a9386d46500038b617205c30a5546d Mon Sep 17 00:00:00 2001 From: Steven Lehn Date: Mon, 19 May 2025 11:22:21 -0500 Subject: [PATCH 30/30] feat: create variable for signing identity --- .github/workflows/prebuild.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/prebuild.yml b/.github/workflows/prebuild.yml index 2df4e077..4d97d1f4 100644 --- a/.github/workflows/prebuild.yml +++ b/.github/workflows/prebuild.yml @@ -76,16 +76,16 @@ jobs: mkdir -p lib/darwin-x64/ mkdir -p lib/darwin-arm64/ - npx prebuild --backend node-gyp -t 33.0.2 --arch x64 --platform darwin --strip -r electron -c 'codesign --sign "Developer ID Application: Incompass Medical Solutions LLC (${{ vars.TEAM_ID }})" --timestamp --options runtime --force --verbose lib/node_printer.node' + npx prebuild --backend node-gyp -t 33.0.2 --arch x64 --platform darwin --strip -r electron -c 'codesign --sign "${{ vars.CERTIFICATE_IDENTITY }}" --timestamp --options runtime --force --verbose lib/node_printer.node' cp lib/node_printer.node lib/electron/darwin-x64/ - npx prebuild --backend node-gyp -t 33.0.2 --arch arm64 --platform darwin --strip -r electron -c 'codesign --sign "Developer ID Application: Incompass Medical Solutions LLC (${{ vars.TEAM_ID }})" --timestamp --options runtime --force --verbose lib/node_printer.node' + npx prebuild --backend node-gyp -t 33.0.2 --arch arm64 --platform darwin --strip -r electron -c 'codesign --sign "${{ vars.CERTIFICATE_IDENTITY }}" --timestamp --options runtime --force --verbose lib/node_printer.node' cp lib/node_printer.node lib/electron/darwin-arm64/ - npx prebuild --backend node-gyp -t 20.3.0 --arch x64 --platform darwin --strip -c 'codesign --sign "Developer ID Application: Incompass Medical Solutions LLC (${{ vars.TEAM_ID }})" --timestamp --options runtime --force --verbose lib/node_printer.node' + npx prebuild --backend node-gyp -t 20.3.0 --arch x64 --platform darwin --strip -c 'codesign --sign "${{ vars.CERTIFICATE_IDENTITY }}" --timestamp --options runtime --force --verbose lib/node_printer.node' cp lib/node_printer.node lib/darwin-x64/ - npx prebuild --backend node-gyp -t 20.3.0 --arch arm64 --platform darwin --strip -c 'codesign --sign "Developer ID Application: Incompass Medical Solutions LLC (${{ vars.TEAM_ID }})" --timestamp --options runtime --force --verbose lib/node_printer.node' + npx prebuild --backend node-gyp -t 20.3.0 --arch arm64 --platform darwin --strip -c 'codesign --sign "${{ vars.CERTIFICATE_IDENTITY }}" --timestamp --options runtime --force --verbose lib/node_printer.node' cp lib/node_printer.node lib/darwin-arm64/ echo "Checking for tar.gz files:"