Jump to content

How to: selective deployment


megapatato

Recommended Posts

Is there a way of telling Vortex to not deploy a subcomponent of a mod in the staging directory? This functionality would be akin to the .gitignore file.

 

Concretely, I would like to not deploy anything in the .vscode directory for a mod I'm developing.

 

Link to comment
Share on other sites

Hi Pickysaurus, thanks for the response.

 

Just to make sure I'm on the right path, this would mean tinkering with the index.js file, correct? I'm seeing the DaggerfallUnity index.js file has a process to filter out files by extension (line 43), so I'll try that approach (unless you'd suggest something else?)

 

Cheers,

~MP

Link to comment
Share on other sites

Link to comment
Share on other sites

Don't necessarily use the valheim extension as an example.

You don't have to "toLowerCase()" the filenames, the ignore lists are case sensitive.

 

Further, what that extension doesn't show is that you can use glob patterns to maybe have to list fewer items, e.g. you could use something like

ignoreDeploy: [path.join('**', 'readme*')]

to ignore all files starting with readme, no matter in which subdirectory, so it would ignore

  • readme.txt
  • foobar\readme.md
  • multiple\nested\directories\readme

and so on

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...