diff --git a/.github/workflows/electron-builder-win.yml b/.github/workflows/electron-builder-win.yml index 33c18814..4298d492 100644 --- a/.github/workflows/electron-builder-win.yml +++ b/.github/workflows/electron-builder-win.yml @@ -44,7 +44,7 @@ jobs: md diagramly Move-Item "DesktopLibrary.js","ElectronApp.js" -Destination "diagramly" - name: Installing Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20 - name: Prepare for Windows Build diff --git a/.github/workflows/electron-builder.yml b/.github/workflows/electron-builder.yml index b5dc9a9c..362f3368 100644 --- a/.github/workflows/electron-builder.yml +++ b/.github/workflows/electron-builder.yml @@ -57,7 +57,7 @@ jobs: mkdir diagramly mv DesktopLibrary.js ElectronApp.js diagramly - name: Installing Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20 - name: Build for ${{ matrix.os}} diff --git a/build/fuses.js b/build/fuses.cjs similarity index 100% rename from build/fuses.js rename to build/fuses.cjs diff --git a/build/notarize.js b/build/notarize.cjs similarity index 100% rename from build/notarize.js rename to build/notarize.cjs diff --git a/electron-builder-appx.json b/electron-builder-appx.json index 8cc093a2..e22b4d5a 100644 --- a/electron-builder-appx.json +++ b/electron-builder-appx.json @@ -30,7 +30,7 @@ "identityName": "draw.io.draw.ioDiagrams", "publisher": "CN=9E628CCB-BE04-4557-A5A8-81EC34B09733" }, - "afterPack": "build/fuses.js", + "afterPack": "build/fuses.cjs", "fileAssociations": [ { "ext": "drawio", diff --git a/electron-builder-linux-mac.json b/electron-builder-linux-mac.json index 4aac7a2b..81a34c55 100644 --- a/electron-builder-linux-mac.json +++ b/electron-builder-linux-mac.json @@ -34,8 +34,8 @@ } ] }, - "afterSign": "build/notarize.js", - "afterPack": "build/fuses.js", + "afterSign": "build/notarize.cjs", + "afterPack": "build/fuses.cjs", "dmg": { }, "linux": { diff --git a/electron-builder-snap.json b/electron-builder-snap.json index d758fe36..78d8aa39 100644 --- a/electron-builder-snap.json +++ b/electron-builder-snap.json @@ -26,7 +26,7 @@ "removable-media" ] }, - "afterPack": "build/fuses.js", + "afterPack": "build/fuses.cjs", "fileAssociations": [ { "ext": "drawio", diff --git a/electron-builder-win.json b/electron-builder-win.json index 3471b4f1..36cc294c 100644 --- a/electron-builder-win.json +++ b/electron-builder-win.json @@ -48,7 +48,7 @@ "portable": { "artifactName": "${productName}-${version}-windows-no-installer.${ext}" }, - "afterPack": "build/fuses.js", + "afterPack": "build/fuses.cjs", "fileAssociations": [ { "ext": "drawio", diff --git a/electron-builder-win32.json b/electron-builder-win32.json index 976d7bcf..c5c7d7f6 100644 --- a/electron-builder-win32.json +++ b/electron-builder-win32.json @@ -39,7 +39,7 @@ "portable": { "artifactName": "${productName}-ia32-${version}-windows-32bit-no-installer.${ext}" }, - "afterPack": "build/fuses.js", + "afterPack": "build/fuses.cjs", "fileAssociations": [ { "ext": "drawio",