more tinkering with build

This commit is contained in:
Tracy Pearson
2023-02-13 09:19:09 -05:00
parent 3bbb94cacf
commit 7ffd10a998
3 changed files with 25 additions and 8 deletions

View File

@@ -2,6 +2,7 @@ Where I found to configure a custom build
https://gist.github.com/layerssss/5d7b69c0f8c6e54e8b501e6e0fe36186 https://gist.github.com/layerssss/5d7b69c0f8c6e54e8b501e6e0fe36186
there is a bit of tooling to setup. there is also some things to consider 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 - required in location build/elctron-publish-custom.js
- main.js autoUpdater.on methods - main.js autoUpdater.on methods

View File

@@ -12,4 +12,5 @@ module.exports = class CustomPublisher extends Publisher {
path.join(__dirname, "../../publish", filename) path.join(__dirname, "../../publish", filename)
); );
} }
toString() {return "Custom Publisher";}
}; };

View File

@@ -1,7 +1,7 @@
{ {
"name": "autoupdateproof", "name": "autoupdateproof",
"productName": "Auto updater proof", "productName": "Auto updater proof",
"version": "1.0.5", "version": "1.0.6",
"description": "Auto updater proof of concept", "description": "Auto updater proof of concept",
"main": "src/js/main.js", "main": "src/js/main.js",
"scripts": { "scripts": {
@@ -10,16 +10,31 @@
}, },
"build": { "build": {
"appId": "com.tracypearson.autoupdateproof", "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": { "win": {
"target": "nsis", "target": "nsis"
"publish": {
"provider": "custom"
}
}, },
"nsis": { "nsis": {
"oneClick": false, "oneClick": true,
"perMachine": true, "perMachine": false,
"allowToChangeInstallationDirectory": true, "allowToChangeInstallationDirectory": false,
"installerIcon": null "installerIcon": null
} }
}, },