Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"name": "example",
"version": "1.0.0",
"description": "Building and Publishing a React Based Electron App From Scratch",
"private": false,
"author": "Nick Parsons <nparsons08@gmail.com>",
"license": "MIT",
"homepage": "./",
"main": "public/electron.js",
"keywords": [
"Example",
"React",
"Electron"
],
"scripts": {
"dev": "yarn react-scripts start",
"build": "react-scripts build",
"start": "concurrently \"cross-env BROWSER=none yarn react-scripts start\" \"wait-on http://localhost:3000 && electron .\"",
"pack": "electron-builder --dir",
"dist": "npx build --x64 --macos --win --linux --c.extraMetadata.main=build/electron.js -p always"
},
"dependencies": {
"electron-is-dev": "^0.3.0",
"electron-publisher-s3": "^20.17.2",
"react": "^16.4.1",
"react-dev-utils": "^5.0.1"
},
"devDependencies": {
"react-scripts": "1.1.4",
"concurrently": "^3.6.0",
"cross-env": "^5.2.0",
"electron": "^2.0.3",
"electron-builder": "^20.18.0",
"version-bump-prompt": "^4.1.0"
},
"build": {
"appId": "com.your-domain",
"compression": "normal",
"productName": "Example",
"directories": {
"buildResources": "build",
"output": "dist"
},
"mac": {
"icon": "assets/icon.icns",
"type": "distribution",
"target": [
"pkg",
"dmg",
"mas"
],
"publish": {
"provider": "s3",
"bucket": "example-releases",
"path": "releases"
},
"category": "public.app-category.news"
},
"mas": {
"entitlements": "assets/entitlements.mas.plist",
"entitlementsInherit": "assets/entitlements.mas.inherit.plist",
"provisioningProfile": "assets/embedded.provisionprofile"
},
"win": {
"target": "nsis",
"icon": "assets/icon.ico",
"publish": {
"provider": "s3",
"bucket": "example-releases",
"path": "releases"
}
},
"linux": {
"icon": "assets/icon.png",
"target": [
"snap",
"AppImage"
],
"description": "Example",
"category": "Network;Feed",
"publish": {
"provider": "s3",
"bucket": "example-releases",
"path": "releases"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment