-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore - add build-dll Chore - readme details Chore - put dll file at top level of addon Add trigger tag and result data tag Update gitignore
- Loading branch information
Showing
29 changed files
with
397 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"files.associations": { | ||
"unordered_map": "cpp", | ||
"xstring": "cpp", | ||
"algorithm": "cpp", | ||
"array": "cpp", | ||
"atomic": "cpp", | ||
"bit": "cpp", | ||
"cctype": "cpp", | ||
"cmath": "cpp", | ||
"compare": "cpp", | ||
"concepts": "cpp", | ||
"cstddef": "cpp", | ||
"cstdint": "cpp", | ||
"cstdio": "cpp", | ||
"cstdlib": "cpp", | ||
"cstring": "cpp", | ||
"ctime": "cpp", | ||
"cwchar": "cpp", | ||
"deque": "cpp", | ||
"exception": "cpp", | ||
"initializer_list": "cpp", | ||
"iosfwd": "cpp", | ||
"iterator": "cpp", | ||
"limits": "cpp", | ||
"list": "cpp", | ||
"map": "cpp", | ||
"memory": "cpp", | ||
"new": "cpp", | ||
"optional": "cpp", | ||
"queue": "cpp", | ||
"ranges": "cpp", | ||
"set": "cpp", | ||
"span": "cpp", | ||
"string": "cpp", | ||
"tuple": "cpp", | ||
"type_traits": "cpp", | ||
"typeinfo": "cpp", | ||
"utility": "cpp", | ||
"vector": "cpp", | ||
"xhash": "cpp", | ||
"xmemory": "cpp", | ||
"xtr1common": "cpp", | ||
"xtree": "cpp", | ||
"xutility": "cpp" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
const { exec, execSync } = require('child_process'); | ||
const fs = require('fs'); | ||
|
||
function findMSBuildPath() { | ||
// Common paths for various versions of Visual Studio | ||
const potentialPaths = [ | ||
'C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/', | ||
'C:/Program Files/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/', | ||
'C:/Program File/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/', | ||
// Add more paths as necessary | ||
]; | ||
|
||
for (const path of potentialPaths) { | ||
console.log('Checking ' + path); | ||
if (fs.existsSync(path + 'MSBuild.exe')) { | ||
console.log('Found MSBuild at ' + path); | ||
return path + 'MSBuild.exe'; | ||
} | ||
} | ||
|
||
// If none of the paths work, try using the 'where' command (Windows) | ||
try { | ||
return execSync('where MSBuild.exe', { encoding: 'utf8', stdio: 'pipe' }).trim(); | ||
} catch (e) { | ||
console.warn('MSBuild path not found in common directories. Please add it manually to the system PATH.'); | ||
return null; | ||
} | ||
} | ||
|
||
const msbuildPath = findMSBuildPath(); | ||
const projectPath = "wrapper-extension/SteamExt.sln" | ||
|
||
if (msbuildPath) { | ||
exec(`"${msbuildPath}" ${projectPath} /t:Build /p:Configuration=Release`, (error, stdout, stderr) => { | ||
if (error) { | ||
console.error(`exec error: ${error}`); | ||
return; | ||
} | ||
|
||
console.log(`stdout: ${stdout}`); | ||
if (stderr) { | ||
console.error(`stderr: ${stderr}`); | ||
} | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.