Skip to content

Commit 67c39cc

Browse files
committed
feat: add RequiresXPACK=true only for WotC mods
#87
1 parent f608be5 commit 67c39cc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build_common.ps1

+6-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,12 @@ class BuildProject {
370370
Write-Host "Read."
371371

372372
Write-Host "Writing mod metadata..."
373-
Set-Content "$($this.xcomModPath)" "[mod]`npublishedFileId=$publishedId`nTitle=$title`nDescription=$description`nRequiresXPACK=true"
373+
if ($this.sdkPath -clike "*Chosen*") {
374+
Set-Content "$($this.xcomModPath)" "[mod]`npublishedFileId=$publishedId`nTitle=$title`nDescription=$description`nRequiresXPACK=true"
375+
}
376+
else {
377+
Set-Content "$($this.xcomModPath)" "[mod]`npublishedFileId=$publishedId`nTitle=$title`nDescription=$description"
378+
}
374379
Write-Host "Written."
375380

376381
# Create CookedPCConsole folder for the mod

0 commit comments

Comments
 (0)