chore: bug fixes

This commit is contained in:
Tickbase
2025-05-18 21:21:44 +02:00
parent 3f5e1c3fd7
commit 429370cad0
3 changed files with 21 additions and 3 deletions

View File

@@ -1,6 +1,11 @@
import fs from 'node:fs'
import path from 'node:path'
import { execSync } from 'node:child_process'
import { fileURLToPath } from 'node:url'
// Recreate __dirname
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
// Define paths
const rustFilesPath = path.join(__dirname, '..', 'src-tauri')
@@ -103,7 +108,8 @@ function updateChangelog(changes) {
}
// Get the current version and date
const packageJson = require(path.join(__dirname, '..', 'package.json'))
const packageJsonPath = path.join(__dirname, '..', 'package.json')
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'))
const version = packageJson.version
const date = new Date().toISOString().split('T')[0]