-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpostinstall.js
More file actions
34 lines (32 loc) · 1.36 KB
/
postinstall.js
File metadata and controls
34 lines (32 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env node
/**
* Post-installation script for steamworks-ffi-node
*
* This script provides guidance to users after package installation
* about setting up the Steamworks SDK redistributables.
*/
console.log('');
console.log('🎉 steamworks-ffi-node installed successfully!');
console.log('');
console.log('📋 Next Steps:');
console.log('==============');
console.log('');
console.log('1. 📥 Download Steamworks SDK redistributables');
console.log(' - Get them from: https://partner.steamgames.com/');
console.log(' - Extract and copy "redistributable_bin" to "steamworks_sdk/" in your project');
console.log('');
console.log('2. 🔧 Configure your Steam App ID');
console.log(' - Option A: Create steam_appid.txt with your App ID');
console.log(' - Option B: Pass App ID to steam.init(yourAppId)');
console.log(' - For testing: Use App ID 480 (Spacewar)');
console.log('');
console.log('3. ✅ Verify setup');
console.log(' Run: npm run verify-sdk');
console.log('');
console.log('📖 Complete setup guide:');
console.log('https://github.com/ArtyProf/steamworks-ffi-node/blob/main/docs/STEAMWORKS_SDK_SETUP.md');
console.log('');
console.log('⚠️ Legal Notice:');
console.log('Due to Valve\'s licensing terms, the Steamworks SDK redistributables');
console.log('cannot be bundled with this package and must be downloaded separately.');
console.log('');