Comments (14)
Hi. Do you run your app through installer?
from electron-simple-updater.
Hello megahertz,
Yes I'm package the app using squirrel-windows.
from electron-simple-updater.
It's strange.
Please print the output of
const updater = require('electron-simple-updater');
console.log(updater.options);
from electron-simple-updater.
Hey,
I got Below Response to log the options
{"autoDownload":true,"build":"","channel":"prod","checkUpdateOnStart":true,"disabled":false,"empty":true,"logger":{},
"version":"","url":""}
from electron-simple-updater.
Thanks. And please print the output after initialization
const updater = require('electron-simple-updater');
updater.init({
console,
checkUpdateOnStart: true,
autoDownload: false,
url:"urlHere"
});
console.log(updater.options);
from electron-simple-updater.
I got same response but also got new log is Update is disabled
Platform and Version is
win32_x64
0.0.1
from electron-simple-updater.
and what is the result of app.getName()
?
from electron-simple-updater.
yeah its print Electron but in my package.json i'll given its my name is Digi****
{
"name": "digi***",
"productName": "Digi888",
"description": "Dig******",
"version": "0.0.1",
"license": "MIT",
"author": "Vijay Ijardar",
"main": "dist/main.js",
lot more
}
from electron-simple-updater.
In the most cases it happens when an application is not built correctly through electron-builder
from electron-simple-updater.
yes but i think the application successfully build with like name with Digi***-win32-ai32/Digi***.exe and its run without error. i dont know what is going wrong.
from electron-simple-updater.
it should be Digi*** Setup ***.exe. The app you run is not a squirrel-installed application
from electron-simple-updater.
No I'm package the app using eletron-packger after that i'll use the eletron winstaller in package.json
Have a Look
"build-electron": "ng build --base-href . && copy main.js dist",
"start": "npm run build-electron && electron dist/main.js",
"package-windows": "npm run build-electron && electron-packager . --overwrite --asar=true --platform=win32 --arch=ia32 --prune=true --out=release-builds Digirecord --icon=assets/icons/win/icon.ico --win32metadata.CompanyName='Digiscribe Technology Pvt Ltd' --win32metadata.ProductName=Digirecord --win32metadata.FileDescription='Digiscrice Technology ' --appCopyright='Copyright © 2017 Digirecords Powerd by Digiscribe Technology Pvt Ltd Inc. All rights reserved.'",
"create-installer-windows": "node installer/windows/createinstaller.js",
"full-build-windows": "npm run build-electron && npm run package-windows && npm run create-installer-windows",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
and installer is
const createWindowsInstaller = require('electron-winstaller').createWindowsInstaller
const path = require('path')
getInstallerConfig()
.then(createWindowsInstaller)
.catch((error) => {
console.error(error.message || error)
process.exit(1)
})
function getInstallerConfig () {
console.log('creating windows installer')
const rootPath = path.join('./')
const outPath = path.join(rootPath, 'release-builds')
console.log("root"+rootPath);
return Promise.resolve({
appDirectory: path.join(outPath, 'Digirecord-win32-ia32/'),
title:'Digirecords',
authors: 'Digiscribe Technology Pvt Ltd',
noMsi: false,
// loading_gif: path.join(rootPath, 'loader.gif'),
outputDirectory: path.join(outPath, 'windows-installer'),
exe: 'Digirecord.exe',
setupExe: 'Digirecord.exe',
setupIcon: path.join(rootPath, 'assets', 'icons', 'win', 'icon.ico')
})
}
I think so that is error is coming from electron-packager .
So solution is build using Electron-builder its not working with electron-packager .
from electron-simple-updater.
Yes, I didn't use electron-packager with electron-winstaller and I don't know if that build can use ESU. Just to be sure:
- add code which prints app.getName() in your app
- build a distributive
- install through DigirecordsSetup.msi on your computer
- run installed version and check what app.getName() prints, 'Electron' or 'Digirecords'.
from electron-simple-updater.
hey Megahertz,
I'm trying to build using Electron-builder and Run updater after that. and Let u know if any issue i'm getting in updater. ill back after 1 week. i'll close its right now.
Thanks for support.
from electron-simple-updater.
Related Issues (20)
- NSIS Support HOT 3
- checkForUpdates not responding HOT 7
- Could not create temporary directory HOT 2
- Squirrel.Windows DEPRECATED :( HOT 6
- Enable downgrading/rollback HOT 1
- Events 'update-not-available', 'update-available', etc. not firing Render HOT 6
- Update often fails on Raspberry Pi HOT 4
- Update is disabled because the app is not packaged HOT 4
- opt.logger.debug is not a function HOT 1
- What should be path of update for windows HOT 2
- Add User agent to request HOT 5
- Simple Updater: The Request was Aborted HOT 6
- Empty warning text HOT 2
- Support for download progress (important for slow connections) HOT 3
- Linux App image HOT 1
- cannot perform update "Update is disabled because the app is not packaged" HOT 3
- Where can i locate the downlaoded electron packages? HOT 2
- Stuck at downloading windows squirrel HOT 3
- Documentation for updates.json ? HOT 8
- File downloaded file gets truncated in linux if calling quitAndInstall. HOT 12
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 electron-simple-updater.