Unofficial steam drm for node.js desktop apps
This package is deprecated, if you are looking for DRM, Just use steamwork.js (NPM)
node-gyp build
or
node-gyp rebuild
Prop | Requirement |
---|---|
Node.js | It has not been tested. But i believe it would work with version 12+. However a published package is built with Node.js version 16+. |
OS | Windows 10+. A published package is built and tested in Windows 10. Please try build a sdrm module yourself for other OS. You can try publishing a sdrm module with the name like "sdrm-mac", "sdrm-linux" so other people can find it. |
.dll file | steam_api64.dll from steam sdk. It does not come withe the npm package. |
Prop | Requirement |
---|---|
Build tool | node-gyp and anything that is needed for building NAPI |
This example will be the case where filename is just name of dll file eg."steam_api64.dll"
For development, steam_api64.dll can be placed next to package.json.
For production, place steam_api64.dll next to .exe file.
// it will throw error if it fails.
// or it may return boolean true/false
try
{
// SDRM(filename;file path as a string, app id number)
SDRM("steam_api64.dll", 00000000);
// it will throw error if it fails.
}
catch(e)
{
console.log(e);
}
app.on('ready',()=>{
try
{
// SDRM(filename;file path as a string, app id number)
SDRM("steam_api64.dll", 00000000);
// it will throw error if it fails.
createWindow();
}
catch(e)
{
console.log(e);
if (process.platform !== 'darwin') app.quit();
// or just app.quit() without if statement.
}
});
MIT, See LICENSE.