Replies: 2 comments 11 replies
-
I think it's unnecessary. It is already hosted on Steam. Can be faster to access the link direct than to execute commands By code, f you are not logged into partner.steamgames.com, it will give an error. Then, as you need login, I think I would not use code If you are going to do this with code, need add the information that you first have to login. The last sdk link can be updated in a txt or URL
Then you can download with node/curl Create a file
Edit the output folder const cp = require('child_process');
var fs = require('fs');
let getLink = (sdk_link) => {
try {
var data = fs.readFileSync(sdk_link, 'utf8');
console.log(data.toString());
return data
} catch(e) {
console.log('Error:', e.stack);
}
}
let download = async (uri, filename) => {
let command = `curl -o ${filename} ${uri}`;
let result = cp.execSync(command);
};
var sdk_link = "./sdk_link.txt"
var output = "./sdk.zip"
async function start() {
await download( getLink(sdk_link), output )
}
start() Run
|
Beta Was this translation helpful? Give feedback.
-
The steamworks SDK is downloadable from steamcmd using an anonymous authentication: https://steamdb.info/app/1007/ I think we can use it. |
Beta Was this translation helpful? Give feedback.
-
I'd like not to store the steam sdk in the repo for multiple reasons:
In the previous repository, I zipped the sdk and added a password. But that's not ideal.
Does anyone know a way of
Beta Was this translation helpful? Give feedback.
All reactions