@@ -56,8 +56,12 @@ async function copyFilesToReleaseDir({
56
56
requireGitData ?: boolean ;
57
57
} ) : Promise < void > {
58
58
for ( const variantProps of packagesToBuildProps ) {
59
-
60
- await copyVariantFilesToReleaseDir ( { variantProps, rootDir, variantsDirPath, composeFileName } ) ;
59
+ await copyVariantFilesToReleaseDir ( {
60
+ variantProps,
61
+ rootDir,
62
+ variantsDirPath,
63
+ composeFileName
64
+ } ) ;
61
65
62
66
// Verify avatar (throws)
63
67
const avatarPath = path . join (
@@ -82,14 +86,24 @@ async function copyVariantFilesToReleaseDir({
82
86
variantsDirPath : string ;
83
87
composeFileName : string ;
84
88
} ) : Promise < void > {
85
- const { manifest, manifestFormat, releaseDir, compose, variant } = variantProps ;
89
+ const {
90
+ manifest,
91
+ manifestFormat,
92
+ releaseDir,
93
+ compose,
94
+ variant
95
+ } = variantProps ;
86
96
87
97
// In case of single variant packages, the targets are in the root dir
88
- const variantDirPath = variant ? path . join ( variantsDirPath , variant ) : rootDir ;
98
+ const variantDirPath = variant
99
+ ? path . join ( variantsDirPath , variant )
100
+ : rootDir ;
89
101
90
102
for ( const [ fileId , fileConfig ] of Object . entries ( releaseFiles ) ) {
91
103
// For single variant packages, the targets are in the root dir
92
- const dirsToCopy = fs . existsSync ( variantDirPath ) ? [ rootDir , variantDirPath ] : [ rootDir ] ;
104
+ const dirsToCopy = fs . existsSync ( variantDirPath )
105
+ ? [ rootDir , variantDirPath ]
106
+ : [ rootDir ] ;
93
107
94
108
switch ( fileId as keyof typeof releaseFiles ) {
95
109
case "manifest" :
@@ -111,6 +125,17 @@ async function copyVariantFilesToReleaseDir({
111
125
}
112
126
break ;
113
127
128
+ case "notifications" :
129
+ // Copy the notifications in root and in the variant dir
130
+ for ( const dir of dirsToCopy ) {
131
+ copyReleaseFile ( {
132
+ fileConfig : { ...fileConfig , id : fileId } ,
133
+ fromDir : dir ,
134
+ toDir : releaseDir
135
+ } ) ;
136
+ }
137
+ break ;
138
+
114
139
default :
115
140
copyReleaseFile ( {
116
141
fileConfig : { ...fileConfig , id : fileId } ,
0 commit comments