Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: use dirname for s3 path
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 8, 2018
1 parent be00971 commit 69d5e2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ export class Config implements IConfig {
s3.bucket = this.scopedEnvVar('S3_BUCKET') || s3.bucket
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 %>',
platformTarball: '<%- name %>/channels/<%- channel %>/<%- dirname %>-v<%- version %>/<%- dirname %>-v<%- version %>-<%- platform %>-<%- arch %>',
vanillaTarball: '<%- name %>/channels/<%- channel %>/<%- dirname %>-v<%- version %>/<%- dirname %>-v<%- version %>',
platformManifest: '<%- name %>/channels/<%- channel %>/<%- platform %>-<%- arch %>',
vanillaManifest: '<%- name %>/channels/<%- channel %>/version',
...s3.templates,
Expand Down

0 comments on commit 69d5e2d

Please sign in to comment.