chore(release): update yml file patterns in release workflow (#56)
This commit is contained in:
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@@ -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!"
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user