Skip to content

Ability to replace the repository from package.json to allow github publishing #448

Open
@stonkie

Description

@stonkie

I used electron.net to build a Blazor sample that runs on a Raspberry Pi. I automated the CI/CD pipeline using AWS CodeBuild.

Everything works fine and my artifacts are correctly available through S3, but I cannot get electron-builder to publish to github.

It keeps trying to publish to Electron.Net's github repository which is configured in the package.json file although I configured the correct repository in electron.manifest.json .

I believe the electron-builder's documentation is clear that it will always do this (so the repo field is not changeable from electron.manifest.json, but that leaves no way to use github publishing with electron.net .

Would it make sense for electron.net to support some way of configuring the package.json or is this more of an electron-builder issue?

electron.manifest.json

{
  "executable": "RaspberrySour",
  "splashscreen": {
    "imageFile": ""
  },
  "name": "RaspberrySour",
  "author": "Kevin Coulombe",
  "singleInstance": true,
  "environment": "Production",
  "build": {
    "appId": "com.stonkie.RaspberrySour",
    "productName": "RaspberrySour",
    "copyright": "Copyright © 2020 ${author}",
    "buildVersion": "0.0.5-dev",
    "compression": "maximum",
    "directories": {
      "output": "../../../bin/package"
    },
    "extraResources": [
      {
        "from": "./bin",
        "to": "bin",
        "filter": [ "**/*" ]
      }
    ],
    "files": [
      {
        "from": "./ElectronHostHook/node_modules",
        "to": "ElectronHostHook/node_modules",
        "filter": [ "**/*" ]
      },
      "**/*"
    ],
    "linux": {
      "target": ["AppImage"],
      "category": "Science",
      "publish": ["github"]
    },
    "appImage": 
    {
      "artifactName": "RaspberrySour.AppImage"
    }
  },
  "publish": [{
    "provider": "github",
    "owner": "stonkie",
    "repo" : "RaspberrySour",
    "publishAutoUpdate": true,
    "releaseType": "prerelease",
    "url" : "https://github.com/stonkie/RaspberrySour.git",
    "private": false
  }]
}

Relevant logs.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions