Skip to content

Commit

Permalink
formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
axellse committed Jul 28, 2024
1 parent 036caa5 commit a82b1d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions launch/launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@ const directory = path.join(path.dirname(fileURLToPath(import.meta.url)), '../',
const updateNotice = `${Magenta}There is a new version of termusic available (${Green}v{v}${Magenta}). To update, run ${Green}'npm update -g termusic'${Reset}`

export async function startLauncher() {
process.stdout.write('Checking for updates')
process.stdout.write('Checking for updates ')
const updateStatus = await checkForUpdates()
if (updateStatus) {
console.log(` [${PastelRed}UPDATES FOUND${Reset}]`)
console.log(updateNotice.replace('{v}', updateStatus))
} else {
console.log(` [${PastelGreen}DONE${Reset}]`)
console.log(`[${PastelGreen}DONE${Reset}]`)
}
process.stdout.write('Launching termusic in a seperate window')
process.stdout.write('Launching termusic in a seperate window ')
spawn(`${getCrossPlatformString("new-terminal-window")} node ${directory} launch`, [], {shell: true})
setTimeout(function() {
console.log(` [${Green}DONE${Reset}]`)
console.log(`[${Green}DONE${Reset}]`)
process.exit(0)
}, 400)
}

0 comments on commit a82b1d5

Please sign in to comment.