@@ -71,12 +71,16 @@ async function updateAtlasTheme() {
71
71
72
72
rm ( "-rf" , "tests/testProject/theme" ) ;
73
73
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" ) ;
74
+ // Fetch the specific release by tag from GitHub API
75
+ const tag = "atlasui-theme-files-2024-01-25" ;
76
+ const releaseResponse = await fetchGithubRestAPI ( `${ config . atlasCoreReleaseUrl } /tags/${ tag } ` ) ;
77
+ if ( ! releaseResponse . ok ) {
78
+ throw new Error ( `Can't fetch release for tag: ${ tag } ` ) ;
79
+ }
80
+ const release = await releaseResponse . json ( ) ;
81
+ if ( ! release . assets || release . assets . length === 0 ) {
82
+ throw new Error ( `No assets found for release tag: ${ tag } ` ) ;
78
83
}
79
-
80
84
const [ { browser_download_url } ] = release . assets ;
81
85
const downloadedPath = join ( await usetmp ( ) , config . nameForDownloadedAtlasTheme ) ;
82
86
const outPath = await usetmp ( ) ;
@@ -94,6 +98,10 @@ async function updateAtlasTheme() {
94
98
cp ( "-r" , nativePath , themePath ) ;
95
99
96
100
cp ( "-r" , themePath , config . testProjectDir ) ;
101
+ // Fix file permissions to ensure Docker can write to theme files
102
+ // The Atlas theme files are copied with read-only permissions
103
+ // but mxbuild needs to write to some generated files during build
104
+ sh . exec ( `chmod -R +w "${ config . testProjectDir } /themesource"` , { silent : true } ) ;
97
105
}
98
106
99
107
async function runReleaseScript ( ) {
0 commit comments