Skip to content

Electron Updater changes file name top updater.appImage. GH_Token not found when set in enviroment #7022

@kamranRNS

Description

@kamranRNS

Node.js Version 16.14.2,
Chromium 102.0.5005.148
Electron 19.0.8.
OS:Linux

  1. After the auto-update is successfully installed it changes appImage file name to update.AppImage. Whereas it should only change version number rather than the whole name as its not possible to identify files after an update

  2. Secondly, auto update works fine when the token is set in electron-builder.json but when set in terminal it logs error of 404 of invalid token
    i-e when set gh_token using the following command in terminal
    export GH_TOKEN="my_token"

Our team Is building co-operate level desktop app for Korean company we faced these issues while doing RND
It will help us a lot if these issues are resolved so we may move forward for the project

Electron-builder.json

{
"productName": "sot-dev",
"appId": "com.example.sot",
"asar": false,
"directories": {
"output": "build/${version}"
},
"npmRebuild": false,
"mac": {
"hardenedRuntime": false,
"provisioningProfile": "build/embedded_mas.provisionprofile",
"extendInfo": {
"NSMicrophoneUsageDescription": "I need access to your microphone to send your voice to others in the session room.",
"NSCameraUsageDescription": "I need access to your camera so that others can see you in the session room."
}
},
"dmg": {
"background": "build/background.png",
"iconSize": 80,
"iconTextSize": 34,
"window": {
"x": 0,
"y": 0
}
},
"win": {
"target": [
{
"target": "nsis",
"arch": ["x64", "ia32"]
}
]
},
"linux": {
"target": "AppImage",
"artifactName": "SoT.${version}.${ext}"
},
"publish": [
{
"provider": "github",
"private": true,
"owner": "kamranRNS",
"repo": "SoT-desktop-app",
"token": "my token"
}
]
}
after update
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions