mirror of
https://github.com/Novattz/creamlinux-installer.git
synced 2025-12-06 03:55:37 -05:00
chore: bug fixes
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user