Add Claude access setup, onedir build and native packages
- scripts/setup_claude_access.py: narrow envbao-claude policy/token and an exec_only claude.toml; optional merge of Claude Code settings - [security] exec_only refuses plain export mode and --no-redact - PyInstaller onedir build (~0.06s start-up vs ~1.4s onefile) - macOS .pkg, Debian/Ubuntu/Raspberry Pi OS .deb (pure-Python builder), tarball + scripts/install.sh; release pipeline updated - docs: claude-access, install matrix, releasing, usage, security Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
08bacbc5a8
commit
952fa2ce63
22 files changed
+1110
-44
No files matched your search
+12
-1
@@ -26,6 +26,8 @@ uv run pytest --cov # fails below 90 % coverage
|
||||
| `resolve.py` | Runs queries, applies keys/rename/prefix, filters unsafe names |
|
||||
| `render.py` | Name validation, quoting, shell dialects |
|
||||
| `logging_setup.py` | stderr, private rotating file, syslog |
|
||||
| `runner.py` | `exec`: secret selection, output redaction, process handling |
|
||||
| `version.py` | Release/stamped version, git-derived version for checkouts |
|
||||
| `errors.py` | Exceptions and exit codes |
|
||||
|
||||
## Testing approach
|
||||
@@ -39,7 +41,7 @@ uv run pytest --cov # fails below 90 % coverage
|
||||
|
||||
```sh
|
||||
uv run pyinstaller envbao.spec --clean --noconfirm
|
||||
./dist/envbao --version
|
||||
./dist/envbao/envbao --version
|
||||
```
|
||||
|
||||
PyInstaller cannot cross-compile; build on the platform you target.
|
||||
@@ -53,3 +55,12 @@ bao kv put -mount=secret myapp/prod DB_URL=postgres://x API_KEY=abc
|
||||
envbao --init # then set address/token, add a [[query]] for secret/myapp/prod
|
||||
envbao --check && envbao
|
||||
```
|
||||
|
||||
## Packaging locally
|
||||
|
||||
```sh
|
||||
python3 scripts/packaging/build_deb.py 0.2.0 arm64 dist out # .deb (pure Python, any OS)
|
||||
sh scripts/packaging/build_pkg.sh 0.2.0 dist out # macOS .pkg (needs pkgbuild)
|
||||
```
|
||||
|
||||
The binary inside is for the OS you built on, so only ship packages built on the matching runner.
|
||||
Reference in new issue
Block a user