From 29503dd1fb7ebceb7812ce9cc23607aa47a9fe31 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Sun, 8 Apr 2018 09:26:03 -0700 Subject: [PATCH] fix: set s3Host automatically --- src/plugin.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugin.ts b/src/plugin.ts index 37bfe998..89f0e93b 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -111,6 +111,7 @@ export class Plugin implements IPlugin { this.pjson.oclif.update = this.pjson.oclif.update || {} this.pjson.oclif.update.node = this.pjson.oclif.update.node || {} const s3 = this.pjson.oclif.update.s3 = this.pjson.oclif.update.s3 || {} + if (s3.bucket && !s3.host) s3.host = `https://${s3.bucket}.s3.amazonaws.com` s3.templates = { platformTarball: '<%- name %>/channels/<%- channel %>/<%- bin %>-v<%- version %>/<%- bin %>-v<%- version %>-<%- platform %>-<%- arch %>', vanillaTarball: '<%- name %>/channels/<%- channel %>/<%- bin %>-v<%- version %>/<%- bin %>-v<%- version %>',