Skip to content

Commit

Permalink
Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
timur.ptashchenko committed Dec 16, 2022
1 parent 2b85956 commit 6423179
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
26 changes: 23 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# SteamDownloader-nodejs
NodeJS version of my steamCMD wrapper app for downloading steamworkshop assets
If you get errors building it try to use use latest version of NodeGUI, I`m using version 0.44.0 because of a bug related to dll files in version 0.45.0
# SteamDownloader
Simple application for downloading steam workshop items. This application is usefull for people who wants to play non-steam games with steam workshop addons installed. Simply put link to steam workshop addon and download it to your mods folder or whatever your game/app of choice uses to install addons.
## Tech part 👨‍💻
This app runs on [NodeJS](https://nodejs.org/) using [NodeGui](https://docs.nodegui.org/)
<br/>
### To build app yourself:
<br/>

Download and install [NodeJS](https://nodejs.org/)
<br/>
Clone repository
```
> cd ./SteamDownloader
> npm install
> npx nodegui-packer --init SteamDownloader
> npm run build
> npx nodegui-packer --pack ./dist
```
And it's gonna be inside deploy folder. <br/>
If you get errors building it try to use use latest version of NodeGUI, I`m using version 0.44.0 because of a bug related to dll files in version 0.45.0
<br/>

But anyway big thanks to [NodeGui](https://docs.nodegui.org/) team for providing such great and easy to use GUI library.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"debug": "webpack && qode --inspect ./dist/index.js"
},
"dependencies": {
"@nodegui/nodegui": "^0.57.1",
"@nodegui/nodegui": "0.44.0",
"axios": "^1.2.0",
"fs-extra": "^11.1.0"
},
Expand Down
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ downloadButton.addEventListener("clicked", async () => {
downloadFolderInput.setDisabled(true);
selectDownloadFolderButton.setDisabled(true);
infoLabel.setText("");
infoLabel.setInlineStyle(`
color: 'black';
`);
try {
const url = linkInput.text();
let appId: number = 0;
Expand Down Expand Up @@ -127,7 +130,7 @@ downloadButton.addEventListener("clicked", async () => {
}, 250);

const { stdout } = await execFile(
`${__dirname}/steamcmd/steamcmd.${process.platform == 'win32' ? 'exe' : 'sh'}`,
`${__dirname}\\steamcmd\\steamcmd.${process.platform == 'win32' ? 'exe' : 'sh'}`,
[`+login anonymous`, `+workshop_download_item ${appId} ${itemId}`, `+quit`]
);
console.log(stdout);
Expand Down

0 comments on commit 6423179

Please sign in to comment.