more tinkering with build
This commit is contained in:
@@ -2,6 +2,7 @@ Where I found to configure a custom build
|
||||
https://gist.github.com/layerssss/5d7b69c0f8c6e54e8b501e6e0fe36186
|
||||
|
||||
there is a bit of tooling to setup. there is also some things to consider
|
||||
- required to publish
|
||||
- required in location build/elctron-publish-custom.js
|
||||
- main.js autoUpdater.on methods
|
||||
|
||||
|
||||
@@ -12,4 +12,5 @@ module.exports = class CustomPublisher extends Publisher {
|
||||
path.join(__dirname, "../../publish", filename)
|
||||
);
|
||||
}
|
||||
toString() {return "Custom Publisher";}
|
||||
};
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "autoupdateproof",
|
||||
"productName": "Auto updater proof",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.6",
|
||||
"description": "Auto updater proof of concept",
|
||||
"main": "src/js/main.js",
|
||||
"scripts": {
|
||||
@@ -10,16 +10,31 @@
|
||||
},
|
||||
"build": {
|
||||
"appId": "com.tracypearson.autoupdateproof",
|
||||
"publish": {
|
||||
"provider": "custom"
|
||||
},
|
||||
"files": [
|
||||
"**/*",
|
||||
"!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme}",
|
||||
"!**/node_modules/*/{test,__tests__,tests,powered-test,example,examples}",
|
||||
"!**/node_modules/*.d.ts",
|
||||
"!**/node_modules/.bin",
|
||||
"!**/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj}",
|
||||
"!.editorconfig",
|
||||
"!**/._*",
|
||||
"!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}",
|
||||
"!**/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}",
|
||||
"!**/{appveyor.yml,.travis.yml,circle.yml}",
|
||||
"!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}",
|
||||
"!**/publish/*",
|
||||
"!**/dist/*"],
|
||||
"win": {
|
||||
"target": "nsis",
|
||||
"publish": {
|
||||
"provider": "custom"
|
||||
}
|
||||
"target": "nsis"
|
||||
},
|
||||
"nsis": {
|
||||
"oneClick": false,
|
||||
"perMachine": true,
|
||||
"allowToChangeInstallationDirectory": true,
|
||||
"oneClick": true,
|
||||
"perMachine": false,
|
||||
"allowToChangeInstallationDirectory": false,
|
||||
"installerIcon": null
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user