Skip to content

Commit 0b6350d

Browse files
committed
use package.json version
1 parent 6dd5205 commit 0b6350d

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@
99
const appDirectory = require('path').dirname(process.pkg ? process.execPath : (require.main ? require.main.filename : process.argv[0])).replace(/\\/g, '/')
1010
let i;
1111

12+
const package = require('./package.json')
13+
14+
1215
figlet.parseFont('Slant2', fs.readFileSync(__dirname + '/assets/Slant.flf', 'utf8'))
1316
console.log(chalk.green(figlet.textSync('CSSource installer', {
1417
font: 'Slant2',
1518
horizontalLayout: 'fitted',
1619
verticalLayout: 'fitted'
17-
}) + chalk.blueBright('v1.1.0 stable')))
20+
}) + chalk.blueBright('v' + package.version + ' stable')))
1821
console.log(chalk.magenta(`A utility designed to help make installing CSSource textures into Garry\s Mod ${chalk.blue('safe')} while also doing it the ${chalk.blue('legal method')} by utilizing steamcmd.`))
1922
console.log(chalk.hex('#7289DA')(`Have any questions? Join my discord: https://discord.gg/kb4KREA`))
2023
progress.start('Verifying steam directory...')

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cssource-installer",
3-
"version": "1.0.0",
3+
"version": "1.2.0",
44
"description": "A simple utility tool to install CSSource textures into Garrys Mod from an official steam source.",
55
"main": "main.js",
66
"scripts": {

0 commit comments

Comments
 (0)