From 7ffd10a998cf1f78761e517db9a6398d36841838 Mon Sep 17 00:00:00 2001 From: Tracy Pearson Date: Mon, 13 Feb 2023 09:19:09 -0500 Subject: [PATCH] more tinkering with build --- Proof/README.md | 1 + Proof/build/electron-publisher-custom.js | 1 + Proof/package.json | 31 ++++++++++++++++++------ 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/Proof/README.md b/Proof/README.md index 020a427..100e895 100644 --- a/Proof/README.md +++ b/Proof/README.md @@ -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 diff --git a/Proof/build/electron-publisher-custom.js b/Proof/build/electron-publisher-custom.js index fdc3920..e113084 100644 --- a/Proof/build/electron-publisher-custom.js +++ b/Proof/build/electron-publisher-custom.js @@ -12,4 +12,5 @@ module.exports = class CustomPublisher extends Publisher { path.join(__dirname, "../../publish", filename) ); } + toString() {return "Custom Publisher";} }; \ No newline at end of file diff --git a/Proof/package.json b/Proof/package.json index e24524b..61f54af 100644 --- a/Proof/package.json +++ b/Proof/package.json @@ -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 } },