Comments (5)
@oxneat Please get the latest for the template, this release fixes your bug.
from secure-electron-template.
Yeah you are right , it didn't work because i did an "npm audit fix" command on the proj and it messed up a dependency .
overall thanks for your time this project is awesome.
from secure-electron-template.
Sorry for bothering you but it seems that there's a problem still
Here's the log again
DESKTOP@DESKTOP-IUPPNL4 MINGW64 ~/Desktop/Applications/secure-electron-template-5.1.7
$ npm run dist-windows
[email protected] dist-windows C:\Users\DESKTOP\Desktop\Applications\secure-electron-template-5.1.7
npm run prod-build && electron-builder --windows
[email protected] prod-build C:\Users\DESKTOP\Desktop\Applications\secure-electron-template-5.1.7
cross-env NODE_ENV=production npx webpack --mode=production --config ./webpack.production.js
Hash: 231ce7b22540a464be68
Version: webpack 4.44.2
Time: 58930ms
Built at: 2020-10-10 14:55:25
Asset Size Chunks Chunk Names
bundle.js 1.07 MiB 0 [emitted] [big] main
bundle.js.map 1.55 MiB 0 [emitted] [dev] main
index-prod.html 522 bytes [emitted]
main.css 1.99 KiB 0 [emitted] main
main.css.map 965 bytes 0 [emitted] [dev] main
Entrypoint main [big] = main.css bundle.js main.css.map bundle.js.map
[7] ./app/src/constants/routes.json 134 bytes {0} [built]
[8] (webpack)/buildin/global.js 472 bytes {0} [built]
[14] (webpack)/buildin/module.js 497 bytes {0} [built]
[17] ./node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js + 3 modules 70.8 KiB {0} [built]
| 4 modules
[70] ./node_modules/react-i18next/dist/es/index.js + 4 modules 15 KiB {0} [built]
| 5 modules
[133] ./app/localization/i18n.config.js 918 bytes {0} [built]
[138] multi ./app/src/index.jsx 28 bytes {0} [built]
[154] ./app/localization/whitelist.js 2.11 KiB {0} [built]
[159] ./app/src/pages/welcome/welcome.css 39 bytes {0} [built]
[267] ./app/src/pages/motd/motd.css 39 bytes {0} [built]
[268] ./app/src/pages/localization/localization.css 39 bytes {0} [built]
[270] ./app/src/pages/undoredo/undoredo.css 39 bytes {0} [built]
[272] ./app/src/core/root.css 39 bytes {0} [built]
[273] ./app/src/index.jsx + 52 modules 181 KiB {0} [built]
| ./app/src/index.jsx 530 bytes [built]
| ./app/src/core/root.jsx 3.74 KiB [built]
| ./app/src/redux/store/store.js 1.62 KiB [built]
| ./app/src/core/routes.jsx 4.24 KiB [built]
| ./app/src/redux/reducers/rootReducer.js 607 bytes [built]
| ./app/src/pages/welcome/welcome.jsx 4.32 KiB [built]
| ./app/src/pages/motd/motd.jsx 5.74 KiB [built]
| ./app/src/pages/localization/localization.jsx 3.95 KiB [built]
| ./app/src/pages/undoredo/undoredo.jsx 8.5 KiB [built]
| ./app/src/pages/contextmenu/contextmenu.jsx 5.07 KiB [built]
| + 43 hidden modules
[274] ./node_modules/i18next/dist/esm/i18next.js + 10 modules 76.7 KiB {0} [built]
| 11 modules
+ 266 hidden modules
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
bundle.js (1.07 MiB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
main (1.08 MiB)
main.css
bundle.js
WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
Child HtmlWebpackCompiler:
1 asset
Entrypoint HtmlWebpackPlugin_0 = __child-HtmlWebpackPlugin_0
[0] ./node_modules/html-webpack-plugin/lib/loader.js!./app/src/index-prod.html 232 bytes {0} [built]
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js!app/src/core/root.css:
Entrypoint mini-css-extract-plugin = *
[0] ./node_modules/css-loader/dist/cjs.js!./app/src/core/root.css 534 bytes {0} [built]
+ 1 hidden module
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js!app/src/pages/contextmenu/contextmenu.css:
Entrypoint mini-css-extract-plugin = *
[0] ./node_modules/css-loader/dist/cjs.js!./app/src/pages/contextmenu/contextmenu.css 594 bytes {0} [built]
+ 1 hidden module
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js!app/src/pages/localization/localization.css:
Entrypoint mini-css-extract-plugin = *
[0] ./node_modules/css-loader/dist/cjs.js!./app/src/pages/localization/localization.css 614 bytes {0} [built]
+ 1 hidden module
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js!app/src/pages/motd/motd.css:
Entrypoint mini-css-extract-plugin = *
[0] ./node_modules/css-loader/dist/cjs.js!./app/src/pages/motd/motd.css 689 bytes {0} [built]
+ 1 hidden module
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js!app/src/pages/undoredo/undoredo.css:
Entrypoint mini-css-extract-plugin = *
[0] ./node_modules/css-loader/dist/cjs.js!./app/src/pages/undoredo/undoredo.css 679 bytes {0} [built]
+ 1 hidden module
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js!app/src/pages/welcome/welcome.css:
Entrypoint mini-css-extract-plugin = *
[0] ./node_modules/css-loader/dist/cjs.js!./app/src/pages/welcome/welcome.css 449 bytes {0} [built]
+ 1 hidden module
ÔÇó electron-builder version=22.8.1 os=10.0.18362
ÔÇó loaded configuration file=package.json ("build" field)
ÔÇó packaging platform=win32 arch=x64 electron=10.1.3 appOutDir=dist\win-unpacked
ÔÇó building target=MSI arch=x64 file=dist\YourProductName 5.1.7.msi
ÔÇó building target=nsis file=dist\YourProductName Setup 5.1.7.exe archs=x64 oneClick=true perMachine=false
ÔÇó downloading url=https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.4.1/nsis-3.0.4.1.7z size=1.3 MB parts=1
ÔÇó downloading url=https://github.com/electron-userland/electron-builder-binaries/releases/download/wix-4.0.0.5512.2/wix-4.0.0.5512.2.7z size=2.2 MB parts=1
ÔÇó downloaded url=https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.4.1/nsis-3.0.4.1.7z duration=4.091s
ÔÇó downloaded url=https://github.com/electron-userland/electron-builder-binaries/releases/download/wix-4.0.0.5512.2/wix-4.0.0.5512.2.7z duration=4.876s
ÔÇó downloading url=https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-resources-3.4.1/nsis-resources-3.4.1.7z size=731 kB parts=1
Ô¿» Get "https://github-production-release-asset-2e65be.s3.amazonaws.com/65527128/64ac4a00-a87a-11e9-901b-f221c4fd0776?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20201010%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201010T125743Z&X-Amz-Expires=300&X-Amz-Signature=d62f3085a6c193e64fee9dbcd60c584d5776264ac3c00724dcc24b327a4a3cad&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=65527128&response-content-disposition=attachment%3B%20filename%3Dnsis-resources-3.4.1.7z&response-content-type=application%2Foctet-stream": dial tcp 52.217.32.60:443: connectex: Une tentative de connexion a ├®chou├® car le parti connect├® nÔÇÖa pas r├®pondu convenablement au-del├á dÔÇÖune certaine dur├®e ou une connexion ├®tablie a ├®chou├® car lÔÇÖh├┤te de connexion nÔÇÖa pas r├®pondu.
github.com/develar/app-builder/pkg/download.(*Part).doRequest
Y:/Documents/app-builder/pkg/download/Part.go:108
github.com/develar/app-builder/pkg/download.(*Part).download
Y:/Documents/app-builder/pkg/download/Part.go:47
github.com/develar/app-builder/pkg/download.(*Downloader).DownloadResolved.func1.1
Y:/Documents/app-builder/pkg/download/downloader.go:155
github.com/develar/app-builder/pkg/util.MapAsyncConcurrency.func2
Y:/Documents/app-builder/pkg/util/async.go:68
runtime.goexit
c:/go/src/runtime/asm_amd64.s:1373
Ô¿» C:\Users\DESKTOP\Desktop\Applications\secure-electron-template-5.1.7\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE stackTrace=
Error: C:\Users\DESKTOP\Desktop\Applications\secure-electron-template-5.1.7\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
at ChildProcess. (C:\Users\DESKTOP\Desktop\Applications\secure-electron-template-5.1.7\node_modules\builder-util\src\util.ts:243:14)
at Object.onceWrapper (events.js:422:26)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dist-windows: npm run prod-build && electron-builder --windows
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dist-windows script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\DESKTOP\AppData\Roaming\npm-cache_logs\2020-10-10T13_00_36_368Z-debug.log
from secure-electron-template.
@oxneat It still works on my machine. Can you try suggestions from this thread?
It also appears others have this issue. Looking at this stackoverflow answer, it may appear this is a longstanding issue with electron-builder.
I'll have you look into this, but I don't believe this is an issue with this repo, but a dependency :(
from secure-electron-template.
Sounds good @oxneat! I typically run npm audit fix
to bump dependencies, what was the dependency that broke the build?
from secure-electron-template.
Related Issues (20)
- integrating react v18 be default HOT 2
- React Devtools won't load in packaged app? HOT 5
- NPM Audit Fix --Force Breaks Template HOT 1
- How to update packges? HOT 1
- typescript imports should just work in vscode HOT 2
- How I can install Tailwind?
- Make a Worker on button click HOT 1
- Deploying an auto-updating after build HOT 1
- Requesting a Vue example, instead of React
- Requesting a SQLite example, instead of JSON
- Cannot use import statements outside a module HOT 1
- Is it ok to Import libraries like SortableJs directly into Renderer? or should it be done through preload as well? HOT 2
- electron + webpack + angular HOT 1
- how to access the .env variables ?
- Unable to use react-apexcharts with the template HOT 1
- Old electron & 28 vulnerabilities HOT 2
- Not secure app, able to content of files after building app HOT 1
- Browser route not working from index.tsx file by npm run prod
- App opens only when VSCode is started first time
- Protocol Path Sanitisation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from secure-electron-template.