Skip to content

Commit 3c76794

Browse files
committed
Rebranding, build script, 7za now included in repo (for development)
1 parent 0843056 commit 3c76794

File tree

7 files changed

+20
-22
lines changed

7 files changed

+20
-22
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node_modules/
22
steam/
33
cssource/
4-
7za.exe
54
bin/

7za.exe

796 KB
Binary file not shown.

build.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const child_process = require('child_process')
2+
const fs = require('fs')
3+
4+
child_process.execSync("pkg -t node12-win-x64 main.js --config package.json --out-path bin/")
5+
fs.copyFileSync("7za.exe", "bin/")

main.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
let i;
1212

1313
figlet.parseFont('Slant2', fs.readFileSync(__dirname + '/assets/Slant.flf', 'utf8'))
14-
console.log(chalk.green(figlet.textSync('CSSource installer', {
14+
console.log(chalk.green(figlet.textSync('CSSTI+', {
1515
font: 'Slant2',
1616
horizontalLayout: 'fitted',
1717
verticalLayout: 'fitted'
18-
}) + chalk.blueBright('v1.1.0 stable')))
19-
console.log(chalk.magenta(`A utility designed to help make installing CSSource textures into Garry's Mod ${chalk.blue('safe')} while also using the ${chalk.blue('legal method')} by utilizing steamcmd.`))
20-
console.log(chalk.hex('#7289DA')(`Have any questions? Join my discord: https://discord.gg/kb4KREA`))
18+
}) + chalk.blueBright('v1.2.0 stable')))
19+
console.log(chalk.magenta(`A utility designed to make installing CSSource textures into Garry's Mod ${chalk.blue('easy, safe, and legal')}, by scripting SteamCMD.`))
20+
console.log(chalk.hex('#7289DA')(`Have any questions? Join my discord: https://discord.gg/UEb6VB2gqu`))
2121
progress.start('Verifying steam directory...')
2222

2323
let steamIPath = await (async () => {
@@ -61,10 +61,10 @@
6161
} else resolve(false)
6262
})
6363
})()
64-
if (!gmodIPath) {
65-
return progress.fail('Garrys Mod could not be found on your computer.\nAutomatically closing window in 10 seconds.', 10000)
64+
if (!gmodIPath || !fs.existsSync(gmodIPath)) {
65+
return progress.fail('Garry\'s Mod could not be found on your computer.\nAutomatically closing window in 10 seconds.', 10000)
6666
}
67-
progress.succeed(`Garrys Mod installation directory found: ${gmodIPath}`)
67+
progress.succeed(`Garry's Mod installation directory found: ${gmodIPath}`)
6868
progress.start('Checking for steamcmd...')
6969
if (!fs.existsSync(appDirectory + '/steam/steamcmd.exe')) {
7070
await (async () => {
@@ -146,7 +146,7 @@
146146
})
147147
})()
148148
if (typeof i !== 'boolean') return progress.fail(`Error: ${i}.\nAutomatically closing window in 10 seconds.`, 10000)
149-
progress.start('Moving Counter-Strike Source textures into Garrys Mod... The console may freeze, this is normal.')
149+
progress.start('Moving Counter-Strike Source textures into Garry\'s Mod... The console may freeze, this is normal.')
150150
if (fs.existsSync(`${gmodIPath}/addons/css_content`)) {
151151
progress.update('Deleting old css_content folder...')
152152
fs.removeSync(`${gmodIPath}/addons/css_content`)
@@ -163,7 +163,7 @@
163163
for (let folder of removeSet) {
164164
if (fs.existsSync(`${appDirectory}/${folder}`)) fs.removeSync(`${appDirectory}/${folder}`)
165165
}
166-
progress.succeed(`The Counter-Strike Source textures have been successfully installed into Garrys Mod.\nInstallation path: ${gmodIPath}/addons/css_content`)
166+
progress.succeed(`The Counter-Strike Source textures have been successfully installed into Garry's Mod.\nInstallation path: ${gmodIPath}/addons/css_content`)
167167
progress.log('You may now close this console window.')
168168
})
169169
})()

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "main.js",
66
"scripts": {
77
"start": "node main.js",
8-
"build": "pkg -t node12-win-x64 main.js --config package.json --out-path bin/",
8+
"build": "node build.js",
99
"test": "echo \"Error: no test specified\" && exit 1"
1010
},
1111
"author": "ITS_N1GH7OWL",

readme.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
1-
# Counter Strike: Source Texture Installer v1.1.0
2-
![Installer Screenshot](https://raw.githubusercontent.com/ITS-NIGHTOWL/CSSource-Texture-Installer/master/screenshots/Capture.PNG?token=AMLZAQJ2DRJT277TXZUV34K6V5442)
1+
# CSS Texture Installer Plus (v1.2.0)
2+
![Installer Screenshot](https://github.com/zulc22/CSS-Texture-Installer-Plus/blob/master/screenshots/Capture.PNG?raw=true)
33

4-
### An easy to use, straight forward Counter Strike: Source texture installer for `Garrys Mod`. Utilizies steamcmd under the hood to obtain resources legally, and from an official valve source, making the experience safer for users alike.
4+
### An easy to use, straight forward Counter Strike: Source texture installer for Garry's Mod. Utilizies steamcmd under the hood to obtain resources legally, direct from Valve.
55

6-
__**Current Platform Support**__
7-
- Windows 10 64-bit
8-
- Windows 7 64-bit
9-
10-
__**Planned Platform Support**__
11-
- Ubuntu/Debian (in development)
6+
[Contact me on Discord.](https://discord.gg/UEb6VB2gqu)
127

138
## How to install
14-
1. Download the zip file [here](https://github.com/ITS-NIGHTOWL/CSSource-Texture-Installer/releases/download/1.1.0/installer.zip)
15-
(You can also get zip file from [releases page](https://github.com/ITS-NIGHTOWL/CSSource-Texture-Installer/releases)).
9+
1. Download the zip file from the [releases page](https://github.com/zulc22/CSS-Texture-Installer-Plus/releases).
1610
2. Extract the ZIP file and run the executable inside called `cssource-installer.exe`.
1711
3. Wait until the installer gets to the prompt asking `Would you like to start installing the CSSource textures?`. Press `y` on your keyboard.
1812
4. From there, the installer should automatically start downloading the needed dependecies such as `steamcmd`. Everything from this point is automated, so as long as your computer doesn't automtically go into rest mode, feel free to let it do its thing for 5-10 minutes (time may vary depending on connection speeds)

screenshots/Capture.PNG

-3.67 KB
Loading

0 commit comments

Comments
 (0)