Skip to content

Why is $(ElectronPackageId) mapped to different electron builder items or am I confused how this works #1004

@markatosi

Description

@markatosi
  • Version: 4.0
  • Target: .net 10.0.1

ElectronPackageId seems to be mapped to: (according to the wiki) multiple items from electron builder config that should be separate values. I may be confused on this point though but this is what the wiki implies.

This is problematic. For instance Apple wants the appId value to conform to
com.companyname.appname

{
  "name": "$(ElectronPackageId)", <== HERE
  "productName": "$(ElectronTitle)",
  "build": {
    "appId": "$(ElectronPackageId)", <== HERE
    "linux": {
      "desktop": {
        "entry": { "Name": "$(Title)" }
      },
      "executableName": "$(ElectronPackageId)" <== HERE
    },
    "deb": {
      "desktop": {
        "entry": { "Name": "$(Title)" }
      }
    }
  },
  "description": "$(Description)",
  "version": "$(Version)",
  "main": "main.js",
  "author": {
    "name": "$(Company)"
  },
  "license": "$(License)",
  "executable": "$(TargetName)",
  "singleInstance": "$(ElectronSingleInstance)",
  "homepage": "$(ProjectUrl)",
  "splashscreen": {
    "imageFile": "$(ElectronSplashScreen)"
  }
}

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