megapatato Posted August 7, 2022 Share Posted August 7, 2022 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 More sharing options...
Pickysaurus Posted August 7, 2022 Share Posted August 7, 2022 Not per-mod. But this can be defined at the game extension level. Link to comment Share on other sites More sharing options...
megapatato Posted August 8, 2022 Author Share Posted August 8, 2022 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 More sharing options...
Pickysaurus Posted August 8, 2022 Share Posted August 8, 2022 It's actually part of the game object. Here's a basic example: https://github.com/Nexus-Mods/vortex-games/blob/master/game-fallout4/index.js#L11 https://github.com/Nexus-Mods/vortex-games/blob/master/game-fallout4/index.js#L108 Except, instead of ignore conflicts, you'd want ignore deploy like this one: https://github.com/Nexus-Mods/game-valheim/blob/main/index.ts#L308 Link to comment Share on other sites More sharing options...
Tannin42 Posted August 9, 2022 Share Posted August 9, 2022 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 ignorereadme.txtfoobar\readme.mdmultiple\nested\directories\readmeand so on Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now