megahertz / electron-simple-publisher

Simple way to publish releases for electron-simple-updater
MIT License
66 stars 25 forks source link

Error "Unknown build type publisher.js-x64" #31

Closed SimplyAhmazing closed 6 years ago

SimplyAhmazing commented 6 years ago

I get this error,

{ command: 'publish',
  builds: [ 'publisher.js' ],
  fields: {},
  transport: {} }
Unknown build type publisher.js-x64

After reading the source code and placing cosole.log, The error occurs here:

function addAssetsInfo(build, options) {
  const name = `${build.platform}-${build.arch}`;
  const meta = ASSETS_DATA[name];
  if (!meta) {
    throw new Error(`Unknown build type ${name}`);
  }

And I traced the build.platform containing the name of the config file to this location:

options.builds = args.filter(a => Boolean(a));

Where a is the list of command line arguments.

megahertz commented 6 years ago

You can find command line arguments description in README.md. How do you run publish command?

SimplyAhmazing commented 6 years ago

I ran it with ./node_modules/.bin/publish publishers.js

megahertz commented 6 years ago

Try ./node_modules/.bin/publish publish publishers.js

megahertz commented 6 years ago

Feel free to reopen this issue if your problem is not solved.