Skip to content

Commit

Permalink
Merge pull request #34 from EnigmaticaModpacks/third-party-mod-support
Browse files Browse the repository at this point in the history
added basic support for adding third party mods to client files
  • Loading branch information
NielsPilgaard authored Jun 21, 2023
2 parents a0167fe + b331199 commit 5fb7b63
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
17 changes: 14 additions & 3 deletions modpack-uploader.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,17 @@ function New-ClientFiles {
Copy-Item -Path $_ -Destination "$overridesFolder/$_" -Recurse
}

$destinationFolder = "$overridesFolder/mods"
if (!(Test-Path -Path $destinationFolder)) {
New-Item $destinationFolder -Type Directory
}
$FILES_TO_INCLUDE_IN_MODS_FOLDER_IN_CLIENT_FILES | ForEach-Object {
Write-Host "Adding " -ForegroundColor Cyan -NoNewline
Write-Host $_ -ForegroundColor Blue -NoNewline
Write-Host " to the mods folder in the client files." -ForegroundColor Cyan
Copy-Item -Path $_ -Destination "$overridesFolder/$_" -Recurse
}

Remove-BlacklistedFiles

# Zipping up the newly created overrides folder and $manifest
Expand Down Expand Up @@ -363,9 +374,9 @@ function New-GitHubRelease {
};

$Body = @{
tag_name = $MODPACK_VERSION
name = $MODPACK_VERSION
generate_release_notes = $true
tag_name = $MODPACK_VERSION
name = $MODPACK_VERSION
generate_release_notes = $true
} | ConvertTo-Json


Expand Down
4 changes: 4 additions & 0 deletions settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ $CONFIGS_TO_REMOVE_FROM_CLIENT_FILES = @()

$FOLDERS_TO_REMOVE_FROM_CLIENT_FILES = @("local/ftbutilities", "resourcepacks")

# Example:
# $FILES_TO_INCLUDE_IN_MODS_FOLDER_IN_CLIENT_FILES = @("mods/Apotheosis-1.19.2-6.2.1.jar", "mods/create-1.19.2-0.5.1.b.jar")
$FILES_TO_INCLUDE_IN_MODS_FOLDER_IN_CLIENT_FILES = @()

#=====================================================================//
# SERVER FILE SETTINGS
#=====================================================================//
Expand Down

0 comments on commit 5fb7b63

Please sign in to comment.