Auto-Updates
PATAPIM includes an automatic update system that keeps your installation up to date with the latest features, bug fixes, and security patches.
How Auto-Updates Work
The update system checks for new versions and notifies you when updates are available.
Update Checks
PATAPIM checks for updates:
- On startup: Every time you launch PATAPIM
- Every 30 minutes: While PATAPIM is running
- Manual check: Click “Check for Updates” in the menu
Update checks are lightweight and don’t interfere with your work.
Version Source
PATAPIM fetches version information from a GitHub Gist:
https://gist.githubusercontent.com/G3dar/c89538d59e1e66f08a143d7d25b0d6dc/raw/patapim-version.json
The Gist contains:
- Latest version number
- Release notes
- Download URL (for reference)
- Minimum required version for force updates
This approach is lightweight and doesn’t require a dedicated server.
Update Notifications
When a new version is available, you’ll see a green update button in the toolbar:
[🔄 Update Available]
Click the button to see:
- New version number
- Release notes
- Update button
You can:
- Update now: Apply the update immediately
- Remind me later: Dismiss the notification (will reappear on next check)
- Skip this version: Don’t notify about this version again
Update Process
The update process is designed to preserve your changes and minimize downtime.
Steps
- Stash changes:
git stashsaves any uncommitted changes - Pull updates:
git pullfetches the latest code from the repository - Install dependencies:
npm installupdates Node.js packages - Build:
npm run buildcompiles the updated code - Restore changes:
git stash poprestores your uncommitted changes - Restart prompt: PATAPIM prompts you to restart
What Gets Updated
The update process updates:
- Core PATAPIM code (renderer, main process, shared modules)
- Dependencies (npm packages)
- Built-in plugins
- Configuration schema (if changed)
What Doesn’t Get Updated
The update process preserves:
- Your project data
- User settings and preferences
- Custom plugins installed in
~/.patapim/plugins/ - Terminal logs and session history
- Uncommitted changes in your projects
Restarting After Update
After the update completes, PATAPIM prompts you to restart:
Update complete! Restart PATAPIM to apply changes.
[Restart Now] [Restart Later]
- Restart Now: Closes PATAPIM and reopens with the new version
- Restart Later: Continue using the current version (restart manually later)
Changes take effect only after restarting.
Automatic Restart
You can enable automatic restart after updates in settings:
- Open PATAPIM settings
- Navigate to Updates > Auto-Update Behavior
- Check “Restart automatically after updates”
- Click “Save”
With this enabled, PATAPIM will restart automatically after successful updates without prompting.
Update Conflicts
If the update process encounters conflicts (e.g., you modified core files):
- PATAPIM attempts to auto-merge changes
- If auto-merge fails, you’ll see a conflict notification
- You can:
- Abort update: Keep your current version
- Discard local changes: Apply update and lose your modifications
- Manually resolve: Fix conflicts in Git and retry
It’s recommended to avoid modifying core PATAPIM files to prevent update conflicts.
Release Pipeline (For Maintainers)
This section is for PATAPIM maintainers managing releases.
Creating a Release
- Update version: Bump version in
package.json - Write release notes: Document changes in
CHANGELOG.md - Commit and tag: Create a Git tag (e.g.,
v1.2.0) - Push tag:
git push origin v1.2.0 - Update Gist: Update the version Gist with new version info
Gist Format
The version Gist should contain:
{
"version": "1.2.0",
"releaseDate": "2026-02-06",
"releaseNotes": "Added feature X, fixed bug Y",
"downloadUrl": "https://github.com/patapim/patapim/releases/tag/v1.2.0",
"minimumVersion": "1.0.0"
}
Force Updates
If a version has critical security issues, set minimumVersion in the Gist:
{
"version": "1.2.1",
"minimumVersion": "1.2.1",
"forceUpdate": true,
"forceUpdateReason": "Critical security patch"
}
PATAPIM will enforce the update and prevent users from skipping it.
Force Update Overlay
When a force update is required (current version is below minimumVersion):
- A full-screen overlay appears blocking all interaction
- The overlay displays the update reason and a progress bar
- PATAPIM automatically downloads and applies the update
- The app restarts after the update completes
- Users cannot dismiss or skip force updates
Disabling Auto-Updates
To disable automatic updates:
- Open PATAPIM settings
- Navigate to Updates > Auto-Update Behavior
- Uncheck “Check for updates automatically”
- Click “Save”
You can still manually check for updates from the menu.
Troubleshooting Updates
Update Failed
If an update fails:
- Check your internet connection
- Ensure Git is installed and in PATH
- Verify you have write permissions to the PATAPIM directory
- Check the error message in the update dialog
Try running the update steps manually:
cd /path/to/patapim
git stash
git pull
npm install
npm run build
git stash pop
Update Loop
If PATAPIM keeps prompting for the same update:
- Close PATAPIM
- Delete the update cache:
~/.patapim/update-cache.json - Reopen PATAPIM and check for updates again
Corrupted Installation
If the update corrupts your installation:
- Close PATAPIM
- Reset to the last working version:
git reset --hard v<version> - Rebuild:
npm install && npm run build - Reopen PATAPIM
Report the issue on GitHub so maintainers can investigate.