mirror of
https://github.com/panatgithub/AnkiHeadingSync.git
synced 2026-07-22 17:10:28 +00:00
中文: 完善上架材料并清理公开仓库中的本地路径配置,同时保持构建产物同步安全。 English: Prepares release materials and cleans local path configuration while preserving safe build artifact sync.
16 lines
357 B
JavaScript
16 lines
357 B
JavaScript
import { homedir } from "node:os";
|
|
import { join } from "node:path";
|
|
|
|
const DEFAULT_PLUGIN_DIR = join(
|
|
homedir(),
|
|
"Library",
|
|
"Mobile Documents",
|
|
"iCloud~md~obsidian",
|
|
"Documents",
|
|
"obsidian",
|
|
".obsidian",
|
|
"plugins",
|
|
"Anki Heading Sync",
|
|
);
|
|
|
|
export const OBSIDIAN_PLUGIN_DIR = process.env.OBSIDIAN_PLUGIN_DIR?.trim() || DEFAULT_PLUGIN_DIR;
|