feat: patch cs2 gameinfo after metamod install

This commit is contained in:
2026-02-26 21:21:27 +00:00
parent 2a3ad5e78f
commit c7d1627e18
5 changed files with 174 additions and 15 deletions
+12
View File
@@ -19,6 +19,7 @@ export type ServerAutomationEvent =
export type ServerAutomationActionType =
| 'github_release_extract'
| 'http_directory_extract'
| 'insert_before_line'
| 'write_file'
| 'send_command';
@@ -51,6 +52,16 @@ export interface ServerAutomationHttpDirectoryExtractAction {
maxBytes?: number;
}
export interface ServerAutomationInsertBeforeLineAction {
id: string;
type: 'insert_before_line';
path: string;
line: string;
beforePattern: string;
existsPattern?: string;
skipIfExists?: boolean;
}
export interface ServerAutomationSendCommandAction {
id: string;
type: 'send_command';
@@ -60,6 +71,7 @@ export interface ServerAutomationSendCommandAction {
export type ServerAutomationAction =
| ServerAutomationGitHubReleaseExtractAction
| ServerAutomationHttpDirectoryExtractAction
| ServerAutomationInsertBeforeLineAction
| ServerAutomationWriteFileAction
| ServerAutomationSendCommandAction;