diff --git a/.github/workflows/electron-builder-win.yml b/.github/workflows/electron-builder-win.yml index 33c188146..4298d4926 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 b5dc9a9c2..362f33688 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 8cc093a25..e22b4d5ad 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 4aac7a2b8..81a34c55f 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 d758fe36e..78d8aa397 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 3471b4f16..36cc294cd 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 976d7bcfc..c5c7d7f67 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",