mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-27 04:31:27 +08:00
refactor: improve installation scripts for bun and uv with success logging
- Updated the installation scripts for bun and uv to log success messages upon successful completion. - Enhanced error handling to maintain existing functionality while providing clearer feedback during installation.
This commit is contained in:
parent
64319447e4
commit
8b7288b9d5
@ -194,7 +194,12 @@ async function installBun() {
|
||||
}
|
||||
|
||||
// Run the installation
|
||||
installBun().catch((error) => {
|
||||
console.error('Installation failed:', error)
|
||||
process.exit(1)
|
||||
})
|
||||
installBun()
|
||||
.then(() => {
|
||||
console.log('Installation successful')
|
||||
process.exit(0)
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error('Installation failed:', error)
|
||||
process.exit(1)
|
||||
})
|
||||
|
||||
@ -204,7 +204,12 @@ async function installUv() {
|
||||
}
|
||||
|
||||
// Run the installation
|
||||
installUv().catch((error) => {
|
||||
console.error('Installation failed:', error)
|
||||
process.exit(1)
|
||||
})
|
||||
installUv()
|
||||
.then(() => {
|
||||
console.log('Installation successful')
|
||||
process.exit(0)
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error('Installation failed:', error)
|
||||
process.exit(1)
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user