Start adding support to run scripts in 64 bit
This commit is contained in:
parent
749a430217
commit
a2e471fc72
7 changed files with 1223 additions and 0 deletions
|
@ -11,6 +11,7 @@ namespace LANCommander.SDK.Models
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
public bool RequiresAdmin { get; set; }
|
public bool RequiresAdmin { get; set; }
|
||||||
|
public bool Requires64Bit { get; set; }
|
||||||
public string Contents { get; set; }
|
public string Contents { get; set; }
|
||||||
public virtual Game Game { get; set; }
|
public virtual Game Game { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,7 @@ namespace LANCommander.Data.Models
|
||||||
public ScriptType Type { get; set; }
|
public ScriptType Type { get; set; }
|
||||||
public string Contents { get; set; }
|
public string Contents { get; set; }
|
||||||
public bool RequiresAdmin { get; set; }
|
public bool RequiresAdmin { get; set; }
|
||||||
|
public bool Requires64Bit { get; set; }
|
||||||
|
|
||||||
public Guid? GameId { get; set; }
|
public Guid? GameId { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|
1180
LANCommander/Migrations/20230121023958_Add64BitFlagForScripts.Designer.cs
generated
Normal file
1180
LANCommander/Migrations/20230121023958_Add64BitFlagForScripts.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,26 @@
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace LANCommander.Migrations
|
||||||
|
{
|
||||||
|
public partial class Add64BitFlagForScripts : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<bool>(
|
||||||
|
name: "Requires64Bit",
|
||||||
|
table: "Scripts",
|
||||||
|
type: "INTEGER",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: false);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "Requires64Bit",
|
||||||
|
table: "Scripts");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -552,6 +552,9 @@ namespace LANCommander.Migrations
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("TEXT");
|
.HasColumnType("TEXT");
|
||||||
|
|
||||||
|
b.Property<bool>("Requires64Bit")
|
||||||
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
b.Property<bool>("RequiresAdmin")
|
b.Property<bool>("RequiresAdmin")
|
||||||
.HasColumnType("INTEGER");
|
.HasColumnType("INTEGER");
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,12 @@
|
||||||
<span class="form-check-label">Requires Admin Privileges</span>
|
<span class="form-check-label">Requires Admin Privileges</span>
|
||||||
<span class="form-check-description">Marks the script as needing admin privileges. Recommended for any changes to the system e.g. Windows Registry.</span>
|
<span class="form-check-description">Marks the script as needing admin privileges. Recommended for any changes to the system e.g. Windows Registry.</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
<label class="form-check">
|
||||||
|
<input asp-for="Requires64Bit" type="checkbox" class="form-check-input" />
|
||||||
|
<span class="form-check-label">Requires 64-Bit Runtime</span>
|
||||||
|
<span class="form-check-description">Runs the script in a 64-bit runtime. Useful if you want to break out of the registry's WOW6432Node redirection.</span>
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input type="hidden" asp-for="Contents" />
|
<input type="hidden" asp-for="Contents" />
|
||||||
|
|
|
@ -62,6 +62,12 @@
|
||||||
<span class="form-check-label">Requires Admin Privileges</span>
|
<span class="form-check-label">Requires Admin Privileges</span>
|
||||||
<span class="form-check-description">Marks the script as needing admin privileges. Recommended for any changes to the system e.g. Windows Registry.</span>
|
<span class="form-check-description">Marks the script as needing admin privileges. Recommended for any changes to the system e.g. Windows Registry.</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
<label class="form-check">
|
||||||
|
<input asp-for="Requires64Bit" type="checkbox" class="form-check-input" />
|
||||||
|
<span class="form-check-label">Requires 64-Bit Runtime</span>
|
||||||
|
<span class="form-check-description">Runs the script in a 64-bit runtime. Useful if you want to break out of the registry's WOW6432Node redirection.</span>
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input type="hidden" asp-for="Contents" />
|
<input type="hidden" asp-for="Contents" />
|
||||||
|
|
Loading…
Add table
Reference in a new issue