A bash script for uploading files to Zealot service with support for changelogs and channel keys.
- Easy file upload to Zealot service
- Support for changelogs
- Support for channel keys
- Automatic retry on failure
- Progress bar display
- File size validation
- URL format validation
The script requires:
bash
(version 3.2 or later)curl
(version 7.0 or later)
git clone https://github.com/laxy-me/zealot-upload-file.git
cd zealot-upload-file
chmod +x upload.sh
Using wget:
wget https://raw.githubusercontent.com/laxy-me/zealot-upload-file/master/upload.sh
chmod +x upload.sh
Using curl:
curl -O https://raw.githubusercontent.com/laxy-me/zealot-upload-file/master/upload.sh
chmod +x upload.sh
./upload.sh --host [HOST] --token [TOKEN] --file [FILE_TO_UPLOAD]
./upload.sh --host [HOST] --token [TOKEN] --file [FILE_TO_UPLOAD] [--changelog [CHANGELOG]] [--channel_key [CHANNEL_KEY]]
Parameter | Required | Description |
---|---|---|
-H, --host | Yes | Host name of the zealot service, including the protocol (HTTP/HTTPS) and the port, without trailing slash. Examples: - http://192.168.0.123:8085 - https://www.example.com:8085 |
-T, --token | Yes | Upload token for authentication. You can find your token at: https://[your-zealot-host]/users/edit |
-F, --file | Yes | Path to the file you want to upload |
-L, --changelog | No | Path to a changelog file (optional) |
-C, --channel_key | No | Channel key for specific upload target (optional) |
- Basic upload:
./upload.sh --host https://zealot.example.com --token your_token --file app.ipa
- Upload with changelog:
./upload.sh --host https://zealot.example.com --token your_token --file app.ipa --changelog changelog.txt
- Upload with channel key:
./upload.sh --host https://zealot.example.com --token your_token --file app.ipa --channel_key beta
The script includes several safety checks:
- Validates the host URL format
- Checks if the file exists and is readable
- Verifies file size (max 500MB)
- Implements automatic retry on upload failure
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
For more information about the Zealot API, please visit: https://zealot.ews.im/zh-Hans/docs/developer-guide/api/apps