AppImage Updater provides comprehensive support for GitHub repositories, making it easy to automatically monitor and update AppImages from GitHub releases. This document explains how to use GitHub repositories for managing your AppImage updates.
GitHub support includes:
- GitHub.com repositories: Public and private repositories on github.com
- GitHub Enterprise: Support for GitHub Enterprise Server instances
- Personal Access Token authentication: Secure API access for private repositories and higher rate limits
- Release asset management: Automatic detection and filtering of AppImage files
- Automatic URL detection: Seamless integration with existing commands
AppImage Updater automatically detects GitHub repositories from various URL formats:
https://github.com/owner/repository
https://www.github.com/owner/repository
https://github.com/owner/repository/releases
https://github.com/owner/repository/releases/latesthttps://github.company.com/owner/repository
https://git.enterprise.org/team/projectFor private repositories or to increase API rate limits, configure a GitHub Personal Access Token:
- Go to GitHub.com (or your GitHub Enterprise instance)
- Navigate to Settings → Developer settings → Personal access tokens → Tokens (classic)
- Click Generate new token → Generate new token (classic)
- Select the following scopes:
public_repo- Access to public repositoriesrepo- Full access to private repositories (if needed)
Set your token using environment variables:
# Primary method
export GITHUB_TOKEN="your_personal_access_token"
# Alternative method (legacy)
export GH_TOKEN="your_personal_access_token"Or store it in a token file:
# Create token file
echo "your_personal_access_token" > ~/.appimage-updater-github-token
# Or use custom location
echo "your_personal_access_token" > /path/to/your/token
export GITHUB_TOKEN_FILE="/path/to/your/token"Or store it in your shell profile:
echo 'export GITHUB_TOKEN="your_token_here"' >> ~/.bashrc
source ~/.bashrc# AppImage Updater automatically detects GitHub URLs
appimage-updater add MyApp https://github.com/owner/repository
# Works with various GitHub URL formats
appimage-updater add MyApp https://github.com/owner/repo/releases/latest# Force GitHub repository type
appimage-updater add MyApp https://github.com/owner/repository --source-type github
# Useful for GitHub Enterprise instances
appimage-updater add CompanyApp https://github.company.com/team/project --source-type github# Add with custom download directory and pattern
appimage-updater add MyApp https://github.com/owner/repository \
--download-dir ~/Applications \
--pattern "(?i)MyApp.*\.AppImage$" \
--prerelease false \
--checksum true{
"applications": {
"MyGitHubApp": {
"name": "MyGitHubApp",
"url": "https://github.com/owner/repository",
"source_type": "github",
"enabled": true,
"download_dir": "/home/user/Applications",
"pattern": "(?i)MyGitHubApp.*\\.AppImage$",
"prerelease": false,
"checksum": {
"enabled": true,
"required": false
}
}
}
}{
"applications": {
"PrivateApp": {
"name": "PrivateApp",
"url": "https://github.com/owner/private-repo",
"source_type": "github",
"enabled": true,
"download_dir": "/home/user/Applications",
"prerelease": false,
"checksum": {
"enabled": true,
"required": true
}
}
}
}GitHub releases can contain multiple assets. AppImage Updater intelligently filters and prioritizes:
- AppImage files (highest priority) - Files ending in
.AppImageor.appimage - Executable files (medium priority) - Files with executable permissions
- Archive files (fallback) -
.zip,.tar.gz,.tar.xzfiles that may contain AppImages
AppImage Updater automatically detects prereleases based on:
- GitHub prerelease flag: Releases marked as prerelease in GitHub
- Version patterns: Tags like
v1.0.0-alpha,v2.0.0-beta.1,v1.0.0-rc.1 - Release names: Titles containing
Alpha,Beta,Release Candidate - Keywords:
alpha,beta,rc,pre,dev,nightly,snapshot
Enable prerelease monitoring:
appimage-updater add MyApp https://github.com/owner/repo --prerelease trueGitHub releases often include checksum files. AppImage Updater can automatically verify downloads:
# Enable checksum verification (optional)
appimage-updater add MyApp https://github.com/owner/repo --checksum true
# Require checksum verification (mandatory)
appimage-updater add MyApp https://github.com/owner/repo --checksum true --checksum-required trueSupported checksum formats:
- SHA256SUMS, SHA256, sha256.txt
- SHA512SUMS, SHA512, sha512.txt
- MD5SUMS, MD5, md5.txt
Problem: GitHub API rate limit exceeded
Solutions:
-
Configure a Personal Access Token:
export GITHUB_TOKEN="your_token_here"
-
Check your current rate limit:
curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/rate_limit -
Verify token permissions include repository access
Problem: GitHub authentication failed - check your token
Solutions:
-
Verify your token is correctly set:
echo $GITHUB_TOKEN
-
Test token manually:
curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/user -
Check token hasn't expired in GitHub settings
Problem: GitHub repository not found: owner/repo
Solutions:
- Verify the repository URL is correct
- Check if the repository is private and requires authentication
- Ensure the repository exists and is accessible
- For GitHub Enterprise, verify the base URL is correct
Problem: No releases found for GitHub repository: owner/repo
Solutions:
-
Verify the repository has published releases (not just tags)
-
Check if releases are in draft state
-
Consider enabling prerelease mode if only prereleases exist:
appimage-updater edit MyApp --prerelease true
Problem: No AppImage files found in releases
Solutions:
-
Check the release assets manually on GitHub
-
Verify the file naming convention matches AppImage standards
-
Use a custom pattern if needed:
appimage-updater edit MyApp --pattern "(?i)MyApp.*\.(AppImage|appimage)$" -
Check if the AppImage is inside an archive file
- Sequential: ~48 seconds (requests processed one by one)
- Concurrent: ~29 seconds (requests processed simultaneously)
- Improvement: 40% faster with overlapping network I/O
- Rate limits are configurable by administrators
- Check with your GitHub Enterprise administrator for specific limits
For GitHub Enterprise instances with custom API paths:
# Most GitHub Enterprise instances use standard paths
appimage-updater add MyApp https://github.company.com/owner/repo
# If you encounter issues, contact your administratorFilter GitHub releases using regex patterns to exclude prereleases or select specific version formats:
# Only stable releases (exclude prereleases like "1.0-rc1")
appimage-updater add --version-pattern "^[0-9]+\.[0-9]+(\.[0-9]+)?$" MyApp https://github.com/owner/repo
# Only major.minor versions
appimage-updater add --version-pattern "^[0-9]+\.[0-9]+$" MyApp https://github.com/owner/repo
# Custom versioning schemes (e.g., "v1.2.3" format)
appimage-updater add --version-pattern "^v[0-9]+\.[0-9]+\.[0-9]+$" MyApp https://github.com/owner/repoYou can manage multiple GitHub repositories simultaneously:
# Add multiple GitHub applications
appimage-updater add App1 https://github.com/owner/app1
appimage-updater add App2 https://github.com/owner/app2
appimage-updater add App3 https://github.com/company/app3
# Check all applications (including GitHub ones)
appimage-updater check
# Update all applications
appimage-updater updateAppImage Updater automatically generates intelligent patterns from existing releases:
# Automatic pattern generation (default behavior)
appimage-updater add MyApp https://github.com/owner/repoPattern generation features:
- Flexible separators →
[-_]?matches hyphen, underscore, or no separator - Release qualifiers → Detects app names ending with
rc,weekly,nightly, etc. - ZIP support → Includes
.(zip|AppImage)when repository has ZIP assets - Rotation suffix → Always includes
(\.(|current|old))?$for file rotation
Examples of generated patterns:
# Standard app
(?i)MyApp.*\.AppImage(\.(|current|old))?$
# App with flexible separators (BambuStudio)
(?i)Bambu[-_]?Studio.*\.AppImage(\.(|current|old))?$
# RC builds (FreeCAD_rc)
(?i)FreeCAD.*[Rr][Cc][0-9]+.*\.AppImage(\.(|current|old))?$
# Weekly builds (FreeCAD_weekly)
(?i)FreeCAD.*[Ww]eekly.*\.AppImage(\.(|current|old))?$If an application moves from direct downloads to GitHub releases:
# Remove old direct download configuration
appimage-updater remove MyApp
# Add new GitHub repository
appimage-updater add MyApp https://github.com/owner/repoIf a project migrates from GitHub to GitLab:
# Remove GitHub repository
appimage-updater remove MyApp
# Add GitLab repository
appimage-updater add MyApp https://gitlab.com/owner/projectOr update the configuration file directly:
{
"applications": {
"MyApp": {
"name": "MyApp",
"url": "https://gitlab.com/owner/project",
"source_type": "gitlab",
// ... other settings remain the same
}
}
}-
Use Personal Access Tokens: Always authenticate for better rate limits and private repository access
-
Enable Checksum Verification: For security, enable checksum verification when available:
appimage-updater add MyApp https://github.com/owner/repo --checksum true -
Monitor Rate Limits: Be aware of API rate limits, especially for batch operations
-
Test Configuration: Use
appimage-updater check --dry-runto test configurations -
Keep Tokens Secure: Store tokens in environment variables or secure files, never in configuration files
-
Regular Updates: Keep your GitHub tokens fresh and monitor for expiration
-
Use Specific Patterns: Create specific patterns to avoid downloading wrong files:
appimage-updater add MyApp https://github.com/owner/repo --pattern "(?i)MyApp-.*-x86_64\.AppImage$"
AppImage Updater fully supports GitHub Enterprise Server instances:
# GitHub Enterprise instances are automatically detected
appimage-updater add CompanyApp https://github.company.com/team/project
# Use explicit source type if needed
appimage-updater add CompanyApp https://github.company.com/team/project --source-type github# Use the same token configuration methods
export GITHUB_TOKEN="your_enterprise_token"
# Or use token files
echo "your_enterprise_token" > ~/.appimage-updater-github-tokenGitHub Enterprise instances typically use the same API structure as GitHub.com:
- API Base:
https://github.company.com/api/v3/ - Rate limits and authentication work the same way
For GitHub-specific issues:
- Check this documentation first
- Verify your GitHub repository has releases with AppImage assets
- Test authentication and API access
- Check GitHub's API status at https://www.githubstatus.com/
- Report issues with specific error messages and repository URLs (without sensitive tokens)
GitHub support is the most mature and feature-complete repository type in AppImage Updater, providing excellent reliability and performance for managing AppImage updates from GitHub releases.