Giter Club home page Giter Club logo

Comments (14)

megahertz avatar megahertz commented on July 20, 2024

Hi. Do you run your app through installer?

from electron-simple-updater.

ervijjusty avatar ervijjusty commented on July 20, 2024

Hello megahertz,
Yes I'm package the app using squirrel-windows.

from electron-simple-updater.

megahertz avatar megahertz commented on July 20, 2024

It's strange.

Please print the output of

const updater = require('electron-simple-updater');
console.log(updater.options);

from electron-simple-updater.

vjijardar avatar vjijardar commented on July 20, 2024

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.

megahertz avatar megahertz commented on July 20, 2024

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.

vjijardar avatar vjijardar commented on July 20, 2024

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.

megahertz avatar megahertz commented on July 20, 2024

and what is the result of app.getName()?

from electron-simple-updater.

vjijardar avatar vjijardar commented on July 20, 2024

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.

megahertz avatar megahertz commented on July 20, 2024

In the most cases it happens when an application is not built correctly through electron-builder

from electron-simple-updater.

vjijardar avatar vjijardar commented on July 20, 2024

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.

megahertz avatar megahertz commented on July 20, 2024

it should be Digi*** Setup ***.exe. The app you run is not a squirrel-installed application

from electron-simple-updater.

vjijardar avatar vjijardar commented on July 20, 2024

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')
   })
}

and the output are
screenshot 34
screenshot 35

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.

megahertz avatar megahertz commented on July 20, 2024

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.

vjijardar avatar vjijardar commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.