Remove 64 bit flag from scripts
This commit is contained in:
parent
a2e471fc72
commit
286622216b
7 changed files with 1203 additions and 17 deletions
|
@ -11,7 +11,6 @@ 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,7 +12,6 @@ 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]
|
||||||
|
|
1177
LANCommander/Migrations/20230123044346_Remove64BitScriptFlag.Designer.cs
generated
Normal file
1177
LANCommander/Migrations/20230123044346_Remove64BitScriptFlag.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 Remove64BitScriptFlag : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "Requires64Bit",
|
||||||
|
table: "Scripts");
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<bool>(
|
||||||
|
name: "Requires64Bit",
|
||||||
|
table: "Scripts",
|
||||||
|
type: "INTEGER",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -552,9 +552,6 @@ 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,12 +62,6 @@
|
||||||
<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,12 +62,6 @@
|
||||||
<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