53 lines
701 B
Markdown
53 lines
701 B
Markdown
|
|
# AZA Installer / Update System Plan (Step 17)
|
||
|
|
|
||
|
|
## 1. Windows installer approach
|
||
|
|
|
||
|
|
**Recommended tool:** PyInstaller
|
||
|
|
|
||
|
|
**Expected output:** `AZA_Assistant.exe`
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## 2. Release folder structure
|
||
|
|
|
||
|
|
```
|
||
|
|
release/
|
||
|
|
aza_assistant.exe
|
||
|
|
version.json
|
||
|
|
update_manifest.json
|
||
|
|
```
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## 3. Update mechanism concept
|
||
|
|
|
||
|
|
**On application startup:**
|
||
|
|
|
||
|
|
Check backend endpoint:
|
||
|
|
|
||
|
|
```
|
||
|
|
GET /version
|
||
|
|
```
|
||
|
|
|
||
|
|
**If version is newer:**
|
||
|
|
|
||
|
|
- Notify user and allow download.
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## 4. Version file example
|
||
|
|
|
||
|
|
```json
|
||
|
|
{
|
||
|
|
"version": "0.1.0",
|
||
|
|
"download_url": "https://example.com/download/aza_assistant.exe"
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## 5. Safety rules
|
||
|
|
|
||
|
|
- Never auto-update without user confirmation
|
||
|
|
- Keep previous version until update success
|