镜像自地址
https://github.com/JGZYES/ParlzPackageManger.git
已同步 2026-09-11 08:52:45 +08:00
Client src/pmu.c (independent binary, links out.c + sha256.c): - pmu register <email> <pwd>: local arithmetic human-verification, then POST register.php. - pmu login / logout / whoami: session token stored in ~/.pmu/config. - pmu ./x.pdm (or 'pmu publish x.pdm'): parses Package/Version/Architecture from the .pdm, computes sha256, uploads raw bytes with a Bearer token; the server auto-generates <pkg>.json and stores the .pdm; duplicate names are rejected. Server web/pmu/*.php: - lib.php: JSON responses, token auth, data store in web/pmu/data/*.json (gitignored). - register/login/logout/publish.php: account + session + upload + registry write (writes web/mirror/packages/<name>.json, copies .pdm, appends packages.json). - Duplicate package names -> 409; missing/invalid token -> 401. Also: .gitignore web/pmu/data/*.json; release.yml builds pmu per-platform.
43 行
865 B
Plaintext
43 行
865 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/
|
|
|
|
# pmu upload service runtime state (accounts / sessions)
|
|
web/pmu/data/*.json
|
|
web/pmu/data/*.tmp
|