2024-12-20 19:33:28 +00:00
|
|
|
|
const { execSync } =require('child_process');
|
|
|
|
|
|
|
|
|
|
// Get git hash with fallback
|
|
|
|
|
const getGitHash = () => {
|
|
|
|
|
try {
|
|
|
|
|
return execSync('git rev-parse --short HEAD').toString().trim();
|
|
|
|
|
} catch {
|
|
|
|
|
return 'no-git-info';
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
let commitJson = {
|
|
|
|
|
hash: JSON.stringify(getGitHash()),
|
|
|
|
|
version: JSON.stringify(process.env.npm_package_version),
|
|
|
|
|
};
|
2024-12-12 18:43:11 +00:00
|
|
|
|
|
|
|
|
|
console.log(`
|
|
|
|
|
★═══════════════════════════════════════★
|
|
|
|
|
B O L T . D I Y
|
|
|
|
|
⚡️ Welcome ⚡️
|
|
|
|
|
★═══════════════════════════════════════★
|
|
|
|
|
`);
|
2024-12-20 19:33:28 +00:00
|
|
|
|
console.log('📍 Current Version Tag:', `v${commitJson.version}`);
|
|
|
|
|
console.log('📍 Current Commit Version:', commitJson.hash);
|
|
|
|
|
console.log(' Please wait until the URL appears here');
|
|
|
|
|
console.log('★═══════════════════════════════════════★');
|