Electron-builder: error while publishing to s3

Created on 3 Nov 2017  Â·  3Comments  Â·  Source: electron-userland/electron-builder


  • Version:
    "electron-builder": "19.41.0",
    "electron-publisher-s3": "19.30.0",

  • Target:
    Mac
Publishing to S3 (bucket: xxx-updates-dev)
Error: Cannot cleanup: 

Error #1 --------------------------------------------------------------------------------
TypeError: Path must be a string. Received { file: '/Users/acharantimath/Desktop/xxx/dist/xxx-xxx-99.0.2.pkg',
  safeArtifactName: null,
  target: 
   PkgTarget {
     name: 'pkg',
     isAsyncSupported: true,
     packager: 
      MacPackager {
        info: [Object],
        _resourceList: [Object],
        config: [Object],
        platformSpecificBuildOptions: [Object],
        appInfo: [Object],
        packagerOptions: [Object],
        projectDir: '/Users/acharantimath/Desktop/xxx',
        buildResourcesDir: '/Users/acharantimath/Desktop/xxx/build',
        codeSigningInfo: [Object] },
     outDir: '/Users/acharantimath/Desktop/xxx/dist',
     options: 
      { allowAnywhere: false,
        allowCurrentUserHome: false,
        allowRootDirectory: true,
        artifactName: 'xxx-${version}.pkg' } },
  arch: 1,
  packager: 
   MacPackager {

question

All 3 comments

"electron-publisher-s3": "19.30.0",

Must be 19.43.0

"electron-builder": "19.41.0",

Please use 19.43.4

That fixed it. How would one be aware to keep both the libs in sync?

Btw, thanks for the quick response @develar. You'r awesome \m/

How would one be aware to keep both the libs in sync?

You need to use or ^ or if you prefer to use exact version, — always update both packages. You cannot update electron-builder to 19.43.0, but leave electron-publisher-s3 13 versions behind :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iklemm picture iklemm  Â·  3Comments

JohnWeisz picture JohnWeisz  Â·  3Comments

omarkilani picture omarkilani  Â·  3Comments

ccorcos picture ccorcos  Â·  3Comments

AidanNichol picture AidanNichol  Â·  3Comments