chore(release): update yml file patterns in release workflow (#56)

This commit is contained in:
Haze
2026-02-11 18:53:01 +08:00
committed by GitHub
Unverified
parent 8ae15b8dd4
commit 2ae4201639
2 changed files with 13 additions and 4 deletions

View File

@@ -119,7 +119,7 @@ jobs:
release/*.AppImage
release/*.deb
release/*.rpm
release/latest*.yml
release/*.yml
retention-days: 7
# ──────────────────────────────────────────────────────────────
@@ -157,7 +157,7 @@ jobs:
release-artifacts/**/*.AppImage
release-artifacts/**/*.deb
release-artifacts/**/*.rpm
release-artifacts/**/latest*.yml
release-artifacts/**/*.yml
draft: false
prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') }}
make_latest: ${{ !(contains(github.ref, 'alpha') || contains(github.ref, 'beta')) }}
@@ -383,8 +383,13 @@ jobs:
echo ""
echo "=== Verify update yml ==="
echo "electron-updater expects latest-mac.yml, latest.yml, etc. in ${CHANNEL}/:"
ossutil ls oss://valuecell-clawx/${CHANNEL}/ --short | grep "latest.*\\.yml" || echo "(none found)"
if [ "${CHANNEL}" = "latest" ]; then
YML_PREFIX="latest"
else
YML_PREFIX="${CHANNEL}"
fi
echo "electron-updater expects ${YML_PREFIX}-mac.yml, ${YML_PREFIX}.yml, etc. in ${CHANNEL}/:"
ossutil ls oss://valuecell-clawx/${CHANNEL}/ --short | grep "${YML_PREFIX}.*\\.yml" || echo "(none found)"
echo ""
echo "All files uploaded and verified successfully!"

View File

@@ -66,6 +66,10 @@ export class AppUpdater extends EventEmitter {
console.log(`[Updater] Version: ${version}, channel: ${channel}, feedUrl: ${feedUrl}`);
// Set channel so electron-updater requests the correct yml filename.
// e.g. channel "alpha" → requests alpha-mac.yml, channel "latest" → requests latest-mac.yml
autoUpdater.channel = channel;
autoUpdater.setFeedURL({
provider: 'generic',
url: feedUrl,