mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-22 17:00:14 +08:00
ci(after-build): move renameFilesWithSpaces call to the end of the process
This commit is contained in:
parent
f8eaf2ad5f
commit
bf037829f6
@ -23,9 +23,6 @@ async function afterBuild() {
|
||||
console.log('[After build] hook started...')
|
||||
|
||||
try {
|
||||
// First rename files with spaces
|
||||
await renameFilesWithSpaces()
|
||||
|
||||
// Read the latest.yml file
|
||||
const latestYmlPath = path.join('dist', 'latest.yml')
|
||||
const yamlContent = fs.readFileSync(latestYmlPath, 'utf8')
|
||||
@ -62,6 +59,9 @@ async function afterBuild() {
|
||||
|
||||
fs.writeFileSync(latestYmlPath, newYamlContent, 'utf8')
|
||||
|
||||
// Rename files with spaces
|
||||
await renameFilesWithSpaces()
|
||||
|
||||
console.log('Successfully cleaned up latest.yml data')
|
||||
} catch (error) {
|
||||
console.error('Error processing latest.yml:', error)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user