Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Electron build configuration file #3601

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified build/icons/icon.icns
Binary file not shown.
File renamed without changes
59 changes: 59 additions & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
@@ -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
60 changes: 0 additions & 60 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down