From 388979d16787b6fea81474880185a823ed0139d7 Mon Sep 17 00:00:00 2001 From: Rick Clark Date: Sun, 29 Apr 2018 13:14:34 +0100 Subject: [PATCH] Set up electron builder publishing --- .gitignore | 3 ++- LICENSE | 2 +- README.md | 2 +- electron-builder.example.env | 1 + package.json | 9 ++++++--- 5 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 electron-builder.example.env diff --git a/.gitignore b/.gitignore index f8730d3..c810c52 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,5 @@ jest_0 /dist -.env \ No newline at end of file +.env +electron-builder.env \ No newline at end of file diff --git a/LICENSE b/LICENSE index e6ce2f0..9e654c1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2018 Richard Kingsley Clark +Copyright (c) 2018 Rick Clark Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 321b7a1..974b326 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ Run `npm test`. ### Other developer scripts - `npm run serve`: Run a server that hosts the production files -- `npm run build`: Build the React/CSS production files +- `npm run react-build`: Build the React/CSS production files - `npm run style`: Run the linter report - `npm run style-fix`: Fix all auto-fixable lint errors - `npm run precommit`: Runs the linter and test suite - used by Husky whenever a git commit is created diff --git a/electron-builder.example.env b/electron-builder.example.env new file mode 100644 index 0000000..52d1ba0 --- /dev/null +++ b/electron-builder.example.env @@ -0,0 +1 @@ +GH_TOKEN=**YOURGITHUBTOKEN** \ No newline at end of file diff --git a/package.json b/package.json index 83dcade..65e6595 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "author": "Rick Clark ", "description": "Pull request monitoring app for Github", "homepage": "./", + "repository": "https://github.com/rkclark/pullp", "dependencies": { "body-parser": "^1.17.2", "cors": "^2.8.4", @@ -87,15 +88,16 @@ "scripts": { "start": "BROWSER=none node scripts/start.js", "serve": "npm run build && node server", - "build": "node scripts/build.js", + "react-build": "node scripts/build.js", "test": "node scripts/test.js --config .jestrc.json --env=jsdom", "style": "eslint '**/*.js'", "style-fix": "eslint --fix '**/*.js'", "precommit": "npm run style && CI=true npm run test", "electron": "NODE_ENV=production electron .", "electron-dev": "ELECTRON_START_URL=http://localhost:3333 electron .", - "pack": "build --dir", - "dist": "npm run build && build" + "pack": "npm run react-build && build --dir", + "dist": "npm run react-build && build", + "ship": "npm run react-build && build --publish always" }, "build": { "appId": "com.rkclark.pullp", @@ -103,6 +105,7 @@ "directories": { "buildResources": "public" }, + "copyright": "Copyright © year ${author}", "dmg": { "contents": [ {