This is the VS Code port of the ModPublish JetBrains plugin.
Features
Explorer Context Menu Integration: Right-click on any .jar or .litemod in the Explorer and select "Publish
Mod..." to launch.
Auto Metadata Extraction: Auto-reads fabric.mod.json, mods.toml, neoforge.mods.toml, riftmod.json,
litemod.json, mcmod.info and manifest files directly from the JAR.
Vanilla JS Webview: Custom, lightweight form UI styled dynamically with VS Code theme variables, adapting
automatically to light/dark themes.
Multi-platform publishing: One-click upload to Modrinth, CurseForge, GitHub, and GitLab.
Git Integration: Dynamically pre-fills branch and repo details.
How to Configure
Open the command palette (Ctrl+Shift+P / Cmd+Shift+P) and search for ModPublish: Set Platform API Token...
to securely register your credentials.
In VS Code settings or your workspace's .vscode/settings.json, configure non-sensitive Project IDs and
repositories:
modpublish.modrinth.modid
modpublish.curseforge.modid
modpublish.github.repo
modpublish.gitlab.repo
Build & Run
To build the extension:
Install dependencies:
npm install && npm install -g @vscode/vsce
Build/Bundle:
vsce package
Open the folder in VS Code, press F5, and choose "VS Code Extension Development Host" to debug and test.
Support ModPublish
If you like my work, or if it has brought you great convenience, please consider supporting my work
through Patreon.
If you don't want to do that, you can also support me by clicking the Star on the Repo.
The more Stars, the happier I am, and the more motivated I am to continue working.
Thanks to everyone who uses and supports ModPublish.
License
The source code is licensed under the LGPL-3.0 license.