electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.73k stars 1.74k forks source link

Not Publishing latest.yml, latest-mac.yml, or latest-linux.yml #5747

Closed kidsonfilms-python-rules closed 3 years ago

kidsonfilms-python-rules commented 3 years ago

When I run the following command:

npm run publish

package.json

{
"scripts": {
    "start": "electron .",
    "pack": "electron-builder --dir",
    "dist": "electron-builder -mwl",
    "publish": "electron-builder -mwl --publish always"
  },
 .....
  "build": {
    "asar": true,
    "appId": "redacted",
    "files": [
      "list",
      "of",
      "files",
    ],
    "publish": [
      {
        "provider": "github",
        "owner": "kidsonfilms-python-rules",
        "repo": "redacted"
      }
    ],
    "mac": {
      "category": "public.app-category.music",
      "icon": "assets/appIcons/redacted Logo.icns"
    },
    "dmg": {
      "background": null,
      "icon": "assets/appIcons/redacted Logo.icns",
      "backgroundColor": "#202020",
      "window": {
        "width": "400",
        "height": "300"
      },
      "contents": [
        {
          "x": 100,
          "y": 100
        },
        {
          "x": 300,
          "y": 100,
          "type": "link",
          "path": "/Applications"
        }
      ]
    },
    "nsis": {
      "oneClick": false,
      "perMachine": false
    }
  }
}

It builds only the zip/unpacked folders/executables and not the latest.yml file of any OS.

I read in another issue that they don't make the file locally but do publish it but I cannot find it published (see image 1)

I waited for 3 hours just in case my web browser is running cached data but it is not showing up.

My question is, am I using the wrong command or is it something wrong in my config?

stale[bot] commented 3 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

eden-lane commented 2 years ago

Have the same problem :(

AxelTerizaki commented 2 years ago

I have the same issue actually. When I build, no app-latest.yml (or latest-mac.yml) are generated even though I use --publish always. I'm just creating a dmg file.

LoveCodingOnGithub commented 2 years ago

I have the same issue actually. When I build, no app-latest.yml (or latest-mac.yml) are generated even though I use --publish always. I'm just creating a dmg file.

Same problem here , have you solved it ?

AxelTerizaki commented 2 years ago

I don't remember the issue exactly but I think you need to also generate a zip file in order for the yml to be generated. Try adding zip to your targets for mac.

coloz commented 2 years ago

Have the same problem