Skip to content

Commit 3b61038

Browse files
committed
docs: add config file documentation to README
1 parent 853712c commit 3b61038

1 file changed

Lines changed: 29 additions & 1 deletion

File tree

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,11 @@ Options:
7878
-O, --overwrite Overwrite existing target file
7979
-r, --remove-old Remove old AppImage after successful update
8080
-u, --update-info <INFO> Override update information in the AppImage
81+
--output-dir <DIR> Output directory for updated AppImages
8182
-d, --describe Parse and describe AppImage and its update information
8283
-j, --check-for-update Check for update (exit 1 if available, 0 if not)
8384
--github-api-proxy <URL> GitHub API proxy URL [env: GITHUB_API_PROXY]
84-
(supports comma-separated list for fallback)
85+
(supports comma-separated list for fallback)
8586
-h, --help Print help
8687
-V, --version Print version
8788
```
@@ -94,6 +95,33 @@ Options:
9495
4. **Downloads Only Changes** - Fetches only the blocks that differ from the local copy
9596
5. **Assembles & Verifies** - Reconstructs the file and verifies SHA1 checksum
9697

98+
## Configuration
99+
100+
Create a config file at `~/.config/appimageupdate/config.toml`:
101+
102+
```toml
103+
# GitHub API proxy (supports single or multiple for fallback)
104+
github_api_proxy = "https://ghproxy.net"
105+
# Or multiple proxies:
106+
# github_api_proxy = ["https://ghproxy.net", "https://mirror.example.com"]
107+
108+
# Remove old AppImage after successful update
109+
remove_old = true
110+
111+
# Output directory for updated AppImages (supports shell expansion)
112+
output_dir = "~/Applications"
113+
```
114+
115+
### Environment Variables
116+
117+
| Variable | Description |
118+
|----------|-------------|
119+
| `GITHUB_API_PROXY` | GitHub API proxy URL (comma-separated for multiple) |
120+
| `APPIMAGEUPDATE_REMOVE_OLD` | Set to `true` to remove old AppImage after update |
121+
| `APPIMAGEUPDATE_OUTPUT_DIR` | Output directory for updated AppImages |
122+
123+
**Priority:** CLI args > Environment variables > Config file
124+
97125
## Supported Update Formats
98126

99127
- `zsync|<url>` - Direct zsync URL

0 commit comments

Comments
 (0)