Antigravity IDE Portable
Make Antigravity IDE portable by redirecting user data and extensions directories.
Author: easyatm
Make Antigravity IDE portable by redirecting user data and extensions directories via hooking GetCommandLineW.
Features
- Uses
../data/ relative to the exe directory as the default data directory.
- Automatically converts relative paths to absolute paths to ensure the program recognizes them correctly.
- Keeps original parameters unchanged if
--user-data-dir or --extensions-dir is already present.
- Detects and skips child processes (those with
--type= or --node-ipc in their command line).
- Supports configuring the data directory in Windhawk settings.
Antigravity IDE 便携版
这个 Mod 为 Antigravity IDE 制作便携版。通过 Hook GetCommandLineW 在启动参数中注入 --user-data-dir 和 --extensions-dir。
功能特性:
- 默认使用相对于 exe 所在目录的
../data/ 作为数据目录。
- 自动将相对路径转换为绝对路径,确保程序能够正确识别。
- 如果原启动参数中已经包含了
--user-data-dir 或 --extensions-dir,则不会修改对应的参数。
- 自动检测并跳过子进程(即启动参数中含有
--type= 或 --node-ipc 的进程)。
- 支持在 Windhawk 设置中自定义数据目录。