Closed jakoboo closed 5 years ago
This is probably caused by key
option because downloaded files (i managed to publish .exe for nsis-web, without .7z files tho) have names like publish%2F0.0.0-snapshot%2FAegisPack-win-Setup.exe
I've spotted the same issue, so I used DEBUG=electron-builder
flag to find some more detailed error and it looks, that it's not a problem with key
option.
node_modules/app-builder-bin/mac/app-builder publish-s3 --bucket BUCKET_NAME --key ARTIFACT_NAME --file PATH/ARTIFACT_NAME --acl public-read --endpoint http://storage.googleapis.com
So I've taken Wireshark and I found that .blockmap
file is uploaded by PUT
method. While uploading .exe
and .dmg
, app-builder uses POST
method. And then, receives error message from GCS:
POST object expects Content-Type multipart/form-data
Any idea how to fix that?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I followed gcloud storage migration guide and changed my publish config accordingly to:
The problem is that ONLY
.blockmap
file is uploaded correctly and i getInvalid argument.
error on both.exe
and.AppImage
Terminal output
``` INFO Building app with electron-builder: • electron-builder version=20.31.2 • writing effective config file=dist_electron/builder-effective-config.yaml • no native production dependencies • packaging platform=linux arch=x64 electron=3.0.7 appOutDir=dist_electron/linux-unpacked • building target=AppImage arch=x64 file=dist_electron/AegisPack-linux-x86_64.AppImage • application Linux category is set to default "Utility" reason=linux.category is not set and cannot map from macOS docs=https://electron.build/configuration/configuration#LinuxBuildOptions-category • no native production dependencies • packaging platform=win32 arch=x64 electron=3.0.7 appOutDir=dist_electron/win-unpacked • publishing publisher=S3 (bucket: download.aegispack.com, endpoint: https://storage.googleapis.com) • uploading file=AegisPack-linux-x86_64.AppImage provider=S3 ⨯ InvalidArgument: Invalid argument. status code: 400, request id: , host id: github.com/develar/app-builder/pkg/publisher.upload /Users/develar/go/src/github.com/develar/app-builder/pkg/publisher/s3.go:170 github.com/develar/app-builder/pkg/publisher.ConfigurePublishToS3Command.func1 /Users/develar/go/src/github.com/develar/app-builder/pkg/publisher/s3.go:56 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:74 runtime.main /usr/local/Cellar/go/1.11.1/libexec/src/runtime/proc.go:201 runtime.goexit /usr/local/Cellar/go/1.11.1/libexec/src/runtime/asm_amd64.s:1333 • default Electron icon is used reason=application icon is not set • no native production dependencies • packaging platform=win32 arch=ia32 electron=3.0.7 appOutDir=dist_electron/win-ia32-unpacked • building target=nsis file=dist_electron/AegisPack-win-Setup.exe archs=x64, ia32 oneClick=false • building block map blockMapFile=dist_electron/AegisPack-win-Setup.exe.blockmap • uploading file=AegisPack-win-Setup.exe.blockmap provider=S3 • uploading file=AegisPack-win-Setup.exe provider=S3 ERROR Error: /home/jakub/go/src/github.com/jakoboo/aegispack-launcher/launcher/node_modules/app-builder-bin/linux/x64/app-builder exited with code 1 Error: /home/jakub/go/src/github.com/jakoboo/aegispack-launcher/launcher/node_modules/app-builder-bin/linux/x64/app-builder exited with code 1 at ChildProcess.childProcess.once.code (/home/jakub/go/src/github.com/jakoboo/aegispack-launcher/launcher/node_modules/builder-util/src/util.ts:253:14) at Object.onceWrapper (events.js:272:13) at ChildProcess.emit (events.js:180:13) at ChildProcess.emit (domain.js:422:20) at maybeClose (internal/child_process.js:936:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5) From previous event: at CancellationToken.createPromise (/home/jakub/go/src/github.com/jakoboo/aegispack-launcher/launcher/node_modules/builder-util-runtime/src/CancellationToken.ts:51:12) at /home/jakub/go/src/github.com/jakoboo/aegispack-launcher/launcher/node_modules/electron-publish/src/s3/BaseS3Publisher.ts:49:36 at Generator.next (