Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSIS build fails to find 7z archive #3047

Closed
cdriehuys opened this issue Jun 26, 2018 · 2 comments
Closed

NSIS build fails to find 7z archive #3047

cdriehuys opened this issue Jun 26, 2018 · 2 comments
Labels

Comments

@cdriehuys
Copy link

  • Version: 20.16.2
  • Target: Windows x64 (NSIS)

I am trying to build the app using the script

build -c.extraMetadata.main=build/electron.js

The build then fails with the error message below. The error indicates that it is failing to find a .7z archive. If I view the folder after the build fails, I only see a folder with the same name as the archive the builder is looking for.

  • electron-builder version=20.16.2
  • loaded configuration file=package.json ("build" field)
  • writing effective config file=dist\electron-builder-effective-config.yaml
  • no native production dependencies
  • packaging       platform=win32 arch=x64 electron=2.0.3 appOutDir=dist\win-unpacked
(node:14516) ExperimentalWarning: The fs.promises API is experimental
  • default Electron icon is used reason=application icon is not set
  • building        target=nsis file=dist\<project> Setup 0.4.0.exe archs=x64 oneClick=true
  • downloading               path=C:\Users\<user>\AppData\Local\electron-builder\cache\nsis\nsis-3.0.3.0 url=https://github.com/electron-userland/electron-builder-binaries/releases/download/nsis-3.0.3.0/nsis-3.0.3.0.7z
  ⨯ remove C:\Users\<user>\AppData\Local\electron-builder\cache\nsis\111127175.7z: The system cannot find the file specified.
github.com/develar/app-builder/pkg/download.DownloadArtifact
        /Users/develar/go/src/github.com/develar/app-builder/pkg/download/artifactDownloader.go:142
github.com/develar/app-builder/pkg/download.ConfigureArtifactCommand.func1
        /Users/develar/go/src/github.com/develar/app-builder/pkg/download/artifactDownloader.go:25
github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin.(*actionMixin).applyActions
        /Users/develar/go/src/github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin/actions.go:28
github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin.(*Application).applyActions
        /Users/develar/go/src/github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin/app.go:557
github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin.(*Application).execute
        /Users/develar/go/src/github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin/app.go:390
github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin.(*Application).Parse
        /Users/develar/go/src/github.com/develar/app-builder/vendor/github.com/alecthomas/kingpin/app.go:222
main.main
        /Users/develar/go/src/github.com/develar/app-builder/main.go:60
runtime.main
        /usr/local/Cellar/go/1.10.3/libexec/src/runtime/proc.go:198
runtime.goexit
        /usr/local/Cellar/go/1.10.3/libexec/src/runtime/asm_amd64.s:2361
@cdriehuys cdriehuys changed the title NSIS build fails to find file NSIS build fails to find 7z archive Jun 26, 2018
@develar develar added the bug label Jun 26, 2018
develar added a commit to develar/electron-builder that referenced this issue Jun 26, 2018
@cdriehuys
Copy link
Author

cdriehuys commented Jun 26, 2018

Wow. That is the fastest resolution to an issue I think I've ever seen. Thanks for the quick response. Installing electron-builder@next fixed my issue.

@googleson78
Copy link

googleson78 commented Jan 17, 2019

@develar, I am encountering a similar trace on CentOS 6. Help! ;_;

github.com/develar/app-builder/pkg/download.DownloadArtifact
        /Volumes/data/Documents/app-builder/pkg/download/artifactDownloader.go:121
github.com/develar/app-builder/pkg/linuxTools.GetAppImageToolDir
        /Volumes/data/Documents/app-builder/pkg/linuxTools/tool.go:17
github.com/develar/app-builder/pkg/package-format/appimage.AppImage
        /Volumes/data/Documents/app-builder/pkg/package-format/appimage/appImage.go:105
github.com/develar/app-builder/pkg/package-format/appimage.ConfigureCommand.func1
        /Volumes/data/Documents/app-builder/pkg/package-format/appimage/appImage.go:75
github.com/alecthomas/kingpin.(*actionMixin).applyActions
        /Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/actions.go:28
github.com/alecthomas/kingpin.(*Application).applyActions
        /Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/app.go:557
github.com/alecthomas/kingpin.(*Application).execute
        /Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/app.go:390
github.com/alecthomas/kingpin.(*Application).Parse
        /Volumes/data/go/pkg/mod/github.com/alecthomas/[email protected]+incompatible/app.go:222
main.main
        /Volumes/data/Documents/app-builder/main.go:73
runtime.main
        /usr/local/Cellar/go/1.11.2/libexec/src/runtime/proc.go:201
runtime.goexit
        /usr/local/Cellar/go/1.11.2/libexec/src/runtime/asm_amd64.s:1333

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants