Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ on:

jobs:
CICD:
# Disabling build until GitHub runners support PS 7.3+ (.NET 7)
if: false
#if: false
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion Modrify.Fallout4/Modrify.Fallout4.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'Modrify.Fallout4.dll'

# Version number of this module.
ModuleVersion = '0.0.3'
ModuleVersion = '0.0.4'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
2 changes: 1 addition & 1 deletion Modrify.Fallout4/Mods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public class NewFalloutMod : PSCmdlet

protected override void ProcessRecord()
{
IFallout4Mod mod = new Fallout4Mod(ModKey);
IFallout4Mod mod = new Fallout4Mod(ModKey, Release);
if (HeaderFlag != null)
{
mod.ModHeader.Flags = (Fallout4ModHeader.HeaderFlag)HeaderFlag;
Expand Down
2 changes: 1 addition & 1 deletion Modrify.Fallout4/helpers/WinningContextOverridesHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static partial class Helpers
{
public static IEnumerable<IModContext<IFallout4Mod, IFallout4ModGetter, IFallout4MajorRecord, IFallout4MajorRecordGetter>> WinningContextOverrides(string recordType)
{
IGameEnvironment<IFallout4Mod, IFallout4ModGetter> fge = GameEnvironment.Typical.Fallout4();
IGameEnvironment<IFallout4Mod, IFallout4ModGetter> fge = GameEnvironment.Typical.Fallout4(ModrifyConfig.TryGetEnvironment().GameRelease.ToFallout4Release());
switch (recordType)
{
case "GameSetting":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Modrify.Fallout4
{
public static IEnumerable<IModContext<IFallout4Mod, IFallout4ModGetter, IFallout4MajorRecord, IFallout4MajorRecordGetter>> WinningContextOverrides(string recordType)
{
IGameEnvironment<IFallout4Mod, IFallout4ModGetter>fge = GameEnvironment.Typical.Fallout4();
IGameEnvironment<IFallout4Mod, IFallout4ModGetter> fge = GameEnvironment.Typical.Fallout4(ModrifyConfig.TryGetEnvironment().GameRelease.ToFallout4Release());
switch (recordType)
{
{cases}
Expand Down
2 changes: 1 addition & 1 deletion Modrify.Skyrim/Modrify.Skyrim.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'Modrify.Skyrim.dll'

# Version number of this module.
ModuleVersion = '0.0.3'
ModuleVersion = '0.0.4'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
19 changes: 11 additions & 8 deletions Modrify.build.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
param (
[version]$Version = '0.0.3',
[version]$Version = '0.0.4',
[string]$NugetApiKey,
[ValidateScript({
(Get-ChildItem "$PSScriptRoot/Modrify*" -Directory).Name -contains $_
Expand Down Expand Up @@ -68,7 +68,7 @@ task dotnetBuild {
$filesToSkip = if ($modules[$m].isSubModule) {
Get-ChildItem "$PSScriptRoot\build\Modrify\lib\*.dll"
}
Get-ChildItem "$($modules[$m].basePath)\bin\Debug\net7.0\publish\*.dll" | ForEach-Object {
Get-ChildItem "$($modules[$m].basePath)\bin\Release\net8.0\publish\*.dll" | ForEach-Object {
if ($filesToSkip.Name -notcontains $_.Name) {
Copy-Item $_.FullName -Destination "$($modules[$m].modulePath)\lib\" -Force
}
Expand Down Expand Up @@ -103,7 +103,8 @@ task ModuleBuild Clean, dotnetBuild, GenerateFormats, DocBuild, {
# Get exported functions
if ($modules[$m].isSubModule) {
$commands = & pwsh -NonInteractive -NoProfile -ExecutionPolicy Bypass -Command "`$PSStyle.OutputRendering = [System.Management.Automation.OutputRendering]::PlainText;gci '$basePath\build\Modrify\lib\*.dll' | %{Add-Type -Path `$_.FullName};gci '$($modules[$m].modulePath)\lib\*.dll' | %{Add-Type -Path `$_.FullName};Import-Module '$basePath\Build\Modrify\Modrify.dll';Import-Module '$($modules[$m].modulePath)\$m.dll';(Get-Command -Module $m).Name"
} else {
}
else {
$commands = & pwsh -NonInteractive -NoProfile -ExecutionPolicy Bypass -Command "`$PSStyle.OutputRendering = [System.Management.Automation.OutputRendering]::PlainText;gci '$($modules[$m].modulePath)\lib\*.dll' | %{Add-Type -Path `$_.FullName};Import-Module '$($modules[$m].modulePath)\$m.dll';(Get-Command -Module $m).Name"
}

Expand All @@ -116,13 +117,15 @@ task ModuleBuild Clean, dotnetBuild, GenerateFormats, DocBuild, {
FunctionsToExport = $commands
ModuleVersion = $version
RequiredAssemblies = (Get-ChildItem "$($modules[$m].modulePath)\lib\*.dll" | ForEach-Object { "lib/$($_.Name)" })
<#RequiredModules = @{
ModuleName = 'Modrify'
RequiredVersion = [version]'0.0.1'
}#>
}
if ($modules[$m].isSubModule) {
$moduleManifestData['RequiredModules'] = @{
ModuleName = 'Modrify'
RequiredVersion = $Version
}
}
if ($null -ne $preRelease) {
$moduleManifestData['Prerelease'] = $preRelease
#$moduleManifestData['Prerelease'] = $preRelease
}
if (Test-Path "$($modules[$m].modulePath)\$($modules[$m].moduleName).format.ps1xml") {
$moduleManifestData['FormatsToProcess'] = "$($modules[$m].moduleName).format.ps1xml"
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,15 @@ This will invoke the build script which will clean up the build folder (if it ex
```powershell
Import-Module .\build\Modrify
Import-Module .\build\Modrify.Skyrim
```
```

## Changelog

### 0.0.4

- Updated to Mutagen 0.43.3
- Added `-HeaderFlags` to `New-*Mod` cmdlets

### 0.0.3

- Initial release