Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

Commit cfb93d2

Browse files
committed
Fix #2
1 parent 2d8e4dd commit cfb93d2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ function sendClientAddonInfo() {
9191
const bat = spawn(settings.get('gmodDirectory') + '\\bin\\gmpublish.exe', ['list']);
9292
bat.stdout.on('data', (data) => {
9393
var arrayOfOutput = data.toString().split('\n')
94-
var fixedArray = arrayOfOutput.slice(4, arrayOfOutput.length - 3)
94+
var fixedArray = arrayOfOutput.slice(5, arrayOfOutput.length - 3)
95+
console.log(fixedArray)
9596
for (var i = 0; i < fixedArray.length; i++) {
9697
fixedArray[i] = fixedArray[i].replace('/r', '');
9798
ADDON_IDS.push([fixedArray[i].substr(0, 11).replace(/\s/g, '').toString()])
@@ -139,6 +140,7 @@ ipcMain.on('uploadToWorkshop', (event, gmaDir, iconDir, addonId) => {
139140
const gmpublish = spawn(settings.get('gmodDirectory') + '\\bin\\gmpublish.exe', ['create', '-icon', iconDir, '-addon', gmaDir]);
140141
gmpublish.stdout.on('data', (data) => {
141142
var arrayOfOutput = data.toString().split('\n');
143+
console.log(data.toString);
142144
var fixedArray = arrayOfOutput.slice(arrayOfOutput.length - 8, arrayOfOutput.length - 7);
143145
fixedArray = fixedArray[0].replace(/\D/, '');
144146
fixedArray = fixedArray.substr(5, fixedArray.length);

src/js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ addonToCreateData = {
3131
"tags": [],
3232
"ignore": []
3333
}
34-
currentAppVersion = "v1.1";
34+
currentAppVersion = "v1.2";
3535

3636

3737

0 commit comments

Comments
 (0)