mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-04-16 13:43:09 +03:00
8 lines
297 B
JavaScript
8 lines
297 B
JavaScript
const { execSync } = require('child_process')
|
|
const fs = require('fs')
|
|
const path = require('path')
|
|
|
|
const version = execSync('git describe --tags --exclude nightly_release').toString().trim()
|
|
|
|
const filePath = path.join(__dirname, 'vuetorrent', 'version.txt')
|
|
fs.writeFileSync(filePath, version)
|