👨💻 开发者须知
日志开关
打开设置面板,在 Advance
分组下有 Enable debug
选项
调试方法
编译ntfy
powershell
$env:GOOS = "js"
$env:GOARCH = "wasm"
go build -o src/utils/ntfy.wasm ntfy.go
$env:GOOS = "js"
$env:GOARCH = "wasm"
go build -o src/utils/ntfy.wasm ntfy.go
sh
GOOS=js GOARCH=wasm go build -o src/utils/ntfy.wasm ntfy.go
GOOS=js GOARCH=wasm go build -o src/utils/ntfy.wasm ntfy.go
Windows(cmd.exe)
cmd
set "OUTDIR=path_to_this_plugin_in_your_obsidian_vault" && npm run dev
set "OUTDIR=path_to_this_plugin_in_your_obsidian_vault" && npm run dev
Windows(Powershell)
powershell
($env:OUTDIR = "path_to_this_plugin_in_your_obsidian_vault") -and (npm run dev)
($env:OUTDIR = "path_to_this_plugin_in_your_obsidian_vault") -and (npm run dev)
eg.
powershell
($env:OUTDIR="../juckz.github.io/blogs/.obsidian/plugins/awesome-brain-manager") -and (npm run dev)
($env:OUTDIR="../juckz.github.io/blogs/.obsidian/plugins/awesome-brain-manager") -and (npm run dev)
Linux, macOS(Bash)
bash
OUTDIR="path_to_this_plugin_in_your_obsidian_vault" npm run dev
OUTDIR="path_to_this_plugin_in_your_obsidian_vault" npm run dev
eg.
bash
OUTDIR="../juckz.github.io/blogs/.obsidian/plugins/awesome-brain-manager" npm run dev
OUTDIR="../juckz.github.io/blogs/.obsidian/plugins/awesome-brain-manager" npm run dev