generator-x2mod
Version:
A Yeoman generator that creates a XCOM 2 mods. Community maintained to free the masses from ModBuddy!
45 lines • 1.99 kB
YAML
cmd: "%PSPath%"
name: build
args:
- "./scripts/build.ps1"
- "-mod %modName%"
- "-srcDirectory %srcDir%"
- "-sdkPath %sdkPath%"
- "-gamePath %gamePath%"
sh: true
env:
modName: "'<%= modName %>'" # your mod's name - this shouldn't have spaces or special characters, and it's usually the name of the first directory inside your mod's source dir
srcDir: "'C:/Users/your_name/Documents/Firaxis ModBuddy/XCOM - War of the Chosen/<%= modName %>/'" # the path that contains your mod's .XCOM_sln
sdkPath: "'<%- sdkPath %>'" # the path to your SDK installation ending in "XCOM 2 War of the Chosen SDK"
gamePath: "'<%- gamePath %>'" # the path to your XCOM 2 installation ending in "XCOM 2"
PSPath: "C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\powershell.exe" # the path to your installation of powershell
amlPath: "'<%- amlPath %>''" # the path to your installation of the community alternative mod uploader
targets:
run:
name: run
sh: true
cmd: "%PSPath%"
args:
- "./scripts/run.ps1"
- "-gamePath %gamePath%"
env:
PSPath: "C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\powershell.exe"
gamePath: "'W:/SteamLibrary/steamapps/common/XCOM 2/'"
open unreal editor:
name: open unreal editor
sh: true
cmd: "%PSPath%"
args:
- "./scripts/runUnrealEditor.ps1"
- "-sdkPath %sdkPath%"
env:
PSPath: "C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\powershell.exe"
sdkPath: "'C:/SteamLibrary/steamapps/common/XCOM 2 War of the Chosen SDK'"
publish:
name: publish
sh: true
cmd: "%PSPath%"
args:
- "./scripts/publish.ps1"
- "-amlPath %amlPath%"