feat(pling): add pling uploader script with upload by default and dry run args
This commit is contained in:
@@ -81,6 +81,30 @@ KDE Plasma separates **Configuration Logic** (Backend) from **Configuration UI**
|
||||
|
||||
Artifacts produced by `make package` are intended for KDE 6 on Linux x86_64.
|
||||
|
||||
## Pling Upload (Experimental)
|
||||
|
||||
This repo includes a script for OpenDesktop/Pling publishing:
|
||||
|
||||
```bash
|
||||
uv run --env-file .env python scripts/pling_upload.py --dry-run
|
||||
```
|
||||
|
||||
`--dry-run` validates login, project edit-page access, and upload endpoint discovery.
|
||||
|
||||
Live mode is the default when `--dry-run` is omitted:
|
||||
|
||||
```bash
|
||||
uv run --env-file .env python scripts/pling_upload.py \
|
||||
--artifact build/org.kde.plasma.starter.plasmoid
|
||||
```
|
||||
|
||||
Important: live mode is destructive by design right now. It first deletes all
|
||||
existing files on the target project, then uploads/registers the new artifact.
|
||||
|
||||
Config can be provided by args or environment variables (`.env.example`):
|
||||
`PLING_BASE_URL`, `PLING_PROJECT_ID`, `PLING_USERNAME`, `PLING_PASSWORD`,
|
||||
`PLING_ARTIFACT`, `PLING_TIMEOUT`, `PLING_MAX_RETRIES`.
|
||||
|
||||
## License
|
||||
|
||||
GPL-3.0
|
||||
|
||||
Reference in New Issue
Block a user