fix: убрать пробел из имени AppImage + блок update-check в dev
All checks were successful
Release / release (push) Successful in 2m2s

electron-builder.yml: artifactName = aero-mail-\${version}.AppImage
  — имя файла без пробелов, URL-энкодирование больше не нужно
CI: ищем dist/aero-mail-*.AppImage, убран python3 URL-encode
updater.ts: checkForUpdates() возвращает not-available когда
  !app.isPackaged — dev/local-сборки не предлагают обновиться

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
vodyanoysh 2026-04-29 23:23:28 +07:00
parent 5f8604630f
commit 5e0ef61c25
3 changed files with 9 additions and 7 deletions

View file

@ -51,12 +51,9 @@ jobs:
- name: Find built AppImage
id: artifact
run: |
APPIMAGE=$(ls dist/*.AppImage | head -1)
NAME=$(basename "$APPIMAGE")
NAME_ENC=$(python3 -c "import urllib.parse,sys; print(urllib.parse.quote(sys.argv[1]))" "$NAME")
echo "path=$APPIMAGE" >> "$GITHUB_OUTPUT"
echo "name=$NAME" >> "$GITHUB_OUTPUT"
echo "name_enc=$NAME_ENC" >> "$GITHUB_OUTPUT"
APPIMAGE=$(ls dist/aero-mail-*.AppImage | head -1)
echo "path=$APPIMAGE" >> "$GITHUB_OUTPUT"
echo "name=$(basename $APPIMAGE)" >> "$GITHUB_OUTPUT"
- name: Create Forgejo release
id: release
@ -77,7 +74,7 @@ jobs:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_ID: ${{ steps.release.outputs.id }}
ASSET_PATH: ${{ steps.artifact.outputs.path }}
ASSET_NAME: ${{ steps.artifact.outputs.name_enc }}
ASSET_NAME: ${{ steps.artifact.outputs.name }}
run: |
curl -sf -X POST \
-H "Authorization: token ${TOKEN}" \

View file

@ -11,6 +11,7 @@ publish:
linux:
target:
- AppImage
artifactName: aero-mail-${version}.AppImage
category: Network
icon: resources/icon.png
win:

View file

@ -97,6 +97,10 @@ export class UpdaterService {
}
async checkForUpdates(): Promise<{ hasUpdate: boolean; version?: string; notes?: string }> {
if (!app.isPackaged) {
this.send('update:not-available', {})
return { hasUpdate: false }
}
try {
const release = await fetchJson<Release>(REPO_API)
const currentVersion = app.getVersion()