After encountering an error while attempting to package my Angular app on Windows 10, I'm looking for help in resolving the issue:
https://i.stack.imgur.com/yByZf.jpg
The command I am using is:
"package-win": "electron-packager . qlocktwo-app --overwrite --asar=true --platform=win32 --arch=ia32 --icon=src/assets/icons/win/icon.ico --prune=true --out=release-builds --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName=\"QlockTwo App\"",
Modifications made during Electron conversion
index.html
I replaced <base href="/">
with <base href="./">
electron-main.js
const setupEvents = require('./installers/setupEvents');
if (setupEvents.handleSquirrelEvent()) {
return;
}
// Rest of the electron-main.js code
installers/setupEvents.ts
// Content of installers/setupEvents.ts file
installers/windows/createinstaller.js
// Content of installers/windows/createinstaller.js file
This is the structure of my files: