@@ -64,19 +64,28 @@ async function updateAtlasThemeSource() {
6464 }
6565
6666 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 } ) ;
6772}
6873
6974async function updateAtlasTheme ( ) {
7075 console . log ( "Copying Atlas theme files from latest Atlas UI theme release" ) ;
7176
7277 rm ( "-rf" , "tests/testProject/theme" ) ;
7378
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 } ` ) ;
7888 }
79-
8089 const [ { browser_download_url } ] = release . assets ;
8190 const downloadedPath = join ( await usetmp ( ) , config . nameForDownloadedAtlasTheme ) ;
8291 const outPath = await usetmp ( ) ;
0 commit comments