镜像自地址
https://github.com/JGZYES/ParlzPackageManger.git
已同步 2026-09-11 05:42:44 +08:00
- Add src/out.c + src/out.h: pmm_error/pmm_success/pmm_info/pmm_warn helpers. Each prefixes '[PMM]:[LEVEL]' and, only when the stream is a tty, wraps it in an ANSI colour (red/green/gray/yellow). On redirect/pipe the text is plain. - Replace all error/success/info/warn print statements across main.c, install.c, pdm.c, pmm.c, json.c with these helpers (http.c download progress bar left untouched so its \r overwrite stays intact). - Windows: enable ENABLE_VIRTUAL_TERMINAL_PROCESSING on stdout/stderr so ANSI colours render (added alongside the existing SetConsoleOutputCP). - Rewrite 3 install.c system() error-echo strings to colored \033[31m echoes. - Build: add src/out.c to Makefile and build.bat. Verified on WSL gcc: compiles clean. tty (script) shows ESC-coloured output for INFO/ERROR/SUCCESS; non-tty shows plain '[PMM]:[LEVEL]' text with no escapes.
39 行
768 B
Plaintext
39 行
768 B
Plaintext
# build artifacts / binaries (keep these OUT of git)
|
|
*.exe
|
|
*.o
|
|
/dist/
|
|
|
|
# PMM tool packages & big upstream files (outside mirror/packages)
|
|
*.pdm
|
|
*.msi
|
|
*.tar.xz
|
|
*.tar.gz
|
|
*.zip
|
|
|
|
# mirror runtime logs
|
|
**/mirror/server.log
|
|
|
|
# editors
|
|
.vscode/
|
|
.idea/
|
|
|
|
# tool workspace cache
|
|
.zcode/
|
|
|
|
# The mirror registry is committed so the mirror is complete and downloadable.
|
|
# Un-ignore the .pdm files there (*.pdm elsewhere stays ignored). Uses ** so it
|
|
# still matches after the mirror moved to web/mirror/.
|
|
!**/mirror/packages/
|
|
!**/mirror/packages/**/*.pdm
|
|
|
|
# installer downloads served at /downloads/ (committed so the site works)
|
|
!web/downloads/
|
|
!web/downloads/**/*.zip
|
|
!web/downloads/**/*.deb
|
|
!web/downloads/**/*.exe
|
|
|
|
# source browser cache clone
|
|
web/.src/
|
|
web/git/
|
|
web/releases/
|