diff --git a/build/icons/icon.icns b/build/icons/icon.icns index 21d64775..9e8cde32 100644 Binary files a/build/icons/icon.icns and b/build/icons/icon.icns differ diff --git a/build/icons/256x256.png b/build/icons/icon.png similarity index 100% rename from build/icons/256x256.png rename to build/icons/icon.png diff --git a/electron-builder.yml b/electron-builder.yml new file mode 100644 index 00000000..e6a304c5 --- /dev/null +++ b/electron-builder.yml @@ -0,0 +1,59 @@ +productName: Thermal +appId: net.codecarrot.thermal +artifactName: ${name}-${os}-${arch}-${version}.${ext} +copyright: Copyright © year Yashu Mittal +directories: + output: dist +files: + - dist/electron/**/* +detectUpdateChannel: true +buildDependenciesFromSource: true +nodeGypRebuild: true + +mac: + icon: build/icons/icon.icns + category: public.app-category.developer-tools + electronLanguages: + - en_us + target: + - dmg + CFBundleVersion: ${version} + darkModeSupport: false + +dmg: + title: ${name} + background: build/appDmgBackground.png + contents: + - x: 410 + y: 150 + type: link + path: /Applications + - x: 130 + y: 150 + type: file + +win: + publisherName: CodeCarrot, Inc. + FileVersion: ${version} + icon: build/icons/icon.ico + target: nsis + +nsis: + installerIcon: build/icons/icon.ico + uninstallerIcon: build/icons/icon.ico + uninstallDisplayName: ${name} + license: LICENCE + deleteAppDataOnUninstall: true + installerLanguages: + - en_US + createDesktopShortcut: always + createStartMenuShortcut: true + +linux: + synopsis: ${description} + category: development + target: + - deb + - AppImage + - snap + icon: build/icons/icon.png diff --git a/package.json b/package.json index e5a57a8b..6edec672 100644 --- a/package.json +++ b/package.json @@ -28,66 +28,6 @@ "pack:renderer": "cross-env NODE_ENV=production webpack --progress --colors --config .electron-vue/webpack.renderer.config.js", "postinstall": "electron-builder install-app-deps" }, - "build": { - "productName": "Thermal", - "appId": "com.netlify.thermal", - "artifactName": "${name}-${os}-${arch}-${version}.${ext}", - "directories": { - "output": "dist" - }, - "files": [ - "dist/electron/**/*" - ], - "dmg": { - "title": "${name}", - "background": "build/appDmgBackground.png", - "icon": "build/icons/icon.icns", - "contents": [ - { - "x": 410, - "y": 150, - "type": "link", - "path": "/Applications" - }, - { - "x": 130, - "y": 150, - "type": "file" - } - ] - }, - "mac": { - "category": "public.app-category.developer-tools", - "icon": "build/icons/icon.icns", - "electronLanguages": [ - "en" - ] - }, - "win": { - "target": [ - { - "target": "nsis", - "arch": [ - "x64", - "ia32" - ] - } - ], - "publisherName": "CodeCarrot, Inc.", - "icon": "build/icons/icon.ico" - }, - "linux": { - "synopsis": "One stop. Git repository", - "category": "development;git;gui", - "target": [ - "deb", - "zip", - "AppImage", - "snap" - ], - "icon": "build/icons" - } - }, "dependencies": { "@sentry/electron": "^0.17.3", "axios": "^0.19.0",