@@ -64,19 +64,28 @@ async function updateAtlasThemeSource() {
64
64
}
65
65
66
66
cp ( "-r" , themeSourcePath , config . testProjectDir ) ;
67
+
68
+ // Fix file permissions to ensure Docker can write to theme files
69
+ // The Atlas theme files are copied with read-only permissions
70
+ // but mxbuild needs to write to some generated files during build
71
+ sh . exec ( `chmod -R +w "${ config . testProjectDir } /themesource"` , { silent : true } ) ;
67
72
}
68
73
69
74
async function updateAtlasTheme ( ) {
70
75
console . log ( "Copying Atlas theme files from latest Atlas UI theme release" ) ;
71
76
72
77
rm ( "-rf" , "tests/testProject/theme" ) ;
73
78
74
- const release = await getLatestReleaseByName ( "Atlas UI - Theme Folder Files" , config . atlasCoreReleaseUrl ) ;
75
-
76
- if ( ! release ) {
77
- throw new Error ( "Can't fetch latest Atlas UI theme release" ) ;
79
+ // Fetch the specific release by tag from GitHub API
80
+ const tag = "atlasui-theme-files-2024-01-25" ;
81
+ const releaseResponse = await fetchGithubRestAPI ( `${ config . atlasCoreReleaseUrl } /tags/${ tag } ` ) ;
82
+ if ( ! releaseResponse . ok ) {
83
+ throw new Error ( `Can't fetch release for tag: ${ tag } ` ) ;
84
+ }
85
+ const release = await releaseResponse . json ( ) ;
86
+ if ( ! release . assets || release . assets . length === 0 ) {
87
+ throw new Error ( `No assets found for release tag: ${ tag } ` ) ;
78
88
}
79
-
80
89
const [ { browser_download_url } ] = release . assets ;
81
90
const downloadedPath = join ( await usetmp ( ) , config . nameForDownloadedAtlasTheme ) ;
82
91
const outPath = await usetmp ( ) ;
0 commit comments