@@ -4,7 +4,7 @@ import path from 'path';
4
4
import { S3Client } from '@aws-sdk/client-s3' ;
5
5
import { Progress , Upload } from '@aws-sdk/lib-storage' ;
6
6
import { Credentials } from '@aws-sdk/types' ;
7
- import { PublisherBase , PublisherOptions } from '@electron-forge/publisher-base ' ;
7
+ import { PublisherOptions , PublisherStatic } from '@electron-forge/publisher-static ' ;
8
8
import debug from 'debug' ;
9
9
10
10
import { PublisherS3Config } from './Config' ;
@@ -18,7 +18,7 @@ type S3Artifact = {
18
18
arch : string ;
19
19
} ;
20
20
21
- export default class PublisherS3 extends PublisherBase < PublisherS3Config > {
21
+ export default class PublisherS3 extends PublisherStatic < PublisherS3Config > {
22
22
name = 's3' ;
23
23
24
24
private s3KeySafe = ( key : string ) => {
@@ -84,14 +84,6 @@ export default class PublisherS3 extends PublisherBase<PublisherS3Config> {
84
84
) ;
85
85
}
86
86
87
- keyForArtifact ( artifact : S3Artifact ) : string {
88
- if ( this . config . keyResolver ) {
89
- return this . config . keyResolver ( path . basename ( artifact . path ) , artifact . platform , artifact . arch ) ;
90
- }
91
-
92
- return `${ artifact . keyPrefix } /${ artifact . platform } /${ artifact . arch } /${ path . basename ( artifact . path ) } ` ;
93
- }
94
-
95
87
generateCredentials ( ) : Credentials | undefined {
96
88
const accessKeyId = this . config . accessKeyId ;
97
89
const secretAccessKey = this . config . secretAccessKey ;
0 commit comments