Skip to content

rizwan92 #0247 i am facing System.aggregate Exception 81513513 is notvalid string error while checking for update. #154

Open
@rizwan92

Description

@rizwan92

I have electron.js file

const path = require("path");
const { app, BrowserWindow, ipcMain, autoUpdater } = require("electron");
const isDev = require("electron-is-dev");

if (!isDev) {
  if (require("electron-squirrel-startup")) return app.quit();
}

const server = "https://random-server.com";
const updateUrl = `${server}/update/${process.platform}/${app.getVersion()}`;

autoUpdater.setFeedURL({ url: updateUrl });

if (!isDev) {
  setTimeout(() => {
    autoUpdater.checkForUpdates();
  }, 60000);
}

function createWindow() {
  const win = new BrowserWindow({
    width: 800,
    height: 600,
    icon: "desktop-icons/icon.png",
    webPreferences: {
      preload: path.join(__dirname, "preload.js"),
      nodeIntegration: false,
      contextIsolation: true,
      enableRemoteModule: false,
    },
  });

  win.loadURL(
    isDev
      ? "http://localhost:3001"
      : `file://${path.join(__dirname, "./index.html")}`
  );

}

and hazel server running in vercel fetching my release from github repostitory image is attched .

after 60 seconds i am facing an error image is attached
i am usinf electron forge with gihub publish package to publish my release

module.exports = {
  packagerConfig: {
    icon: "desktop-icons/icon",
    name: "chikupos",
    appBundleId: "billing.chikupos.com",
    asar: true,
    hardenedRuntime: true,
  },
  makers: [
    {
      name: "@electron-forge/maker-squirrel",
      config: {
        iconUrl: "https://billing.chikupos.com/desktop-icons/icon.png",
        setupIcon: "desktop-icons/icon.ico",
      },
    },
    {
      name: "@electron-forge/maker-zip",
    },
  ],
  publishers: [
    {
      name: "@electron-forge/publisher-github",
      config: {
        repository: {
          owner: "myusernam",
          name: "my-repository",
        },
        authToken: "my token",
      },
    },
  ],
  buildIdentifier: "billing.chikupos.com",
};

Screenshot 2022-10-19 135834
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions