diff --git a/electron-builder.js b/electron-builder.js deleted file mode 100644 index 29835c5..0000000 --- a/electron-builder.js +++ /dev/null @@ -1,38 +0,0 @@ -/** - * @type {import('electron-builder').Configuration} - * @see https://www.electron.build/configuration/configuration - */ -module.exports = { - appId: "YourAppID", - productName: "YourAppName", - copyright: "Copyright © 2022 ${author}", - asar: true, - directories: { - output: "release/${version}", - buildResources: "resources", - }, - files: ["dist"], - win: { - target: [ - { - target: "nsis", - arch: ["x64"], - }, - ], - artifactName: "${productName}-${version}-Setup.${ext}", - }, - nsis: { - oneClick: false, - perMachine: false, - allowToChangeInstallationDirectory: true, - deleteAppDataOnUninstall: false, - }, - mac: { - target: ["dmg"], - artifactName: "${productName}-${version}-Installer.${ext}", - }, - linux: { - target: ["AppImage"], - artifactName: "${productName}-${version}-Installer.${ext}", - }, -} diff --git a/electron-builder.json b/electron-builder.json new file mode 100644 index 0000000..8285e58 --- /dev/null +++ b/electron-builder.json @@ -0,0 +1,34 @@ +{ + "appId": "YourAppID", + "productName": "YourAppName", + "copyright": "Copyright © 2022 ${author}", + "asar": true, + "directories": { + "output": "release/${version}", + "buildResources": "resources" + }, + "files": ["dist"], + "win": { + "target": [ + { + "target": "nsis", + "arch": ["x64"] + } + ], + "artifactName": "${productName}-${version}-Setup.${ext}" + }, + "nsis": { + "oneClick": false, + "perMachine": false, + "allowToChangeInstallationDirectory": true, + "deleteAppDataOnUninstall": false + }, + "mac": { + "target": ["dmg"], + "artifactName": "${productName}-${version}-Installer.${ext}" + }, + "linux": { + "target": ["AppImage"], + "artifactName": "${productName}-${version}-Installer.${ext}" + } +} \ No newline at end of file