1
0
Fork 0
mirror of https://github.com/VueTorrent/VueTorrent.git synced 2025-04-16 13:43:09 +03:00
VueTorrent/write-version.cjs
2024-08-25 00:19:18 -05:00

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)