Skip to content

Merge pull request #2291 from netease-youdao/release/2026.7.6 #996

Merge pull request #2291 from netease-youdao/release/2026.7.6

Merge pull request #2291 from netease-youdao/release/2026.7.6 #996

name: Electron Verify
on:
push:
branches: [main, develop]
pull_request:
paths:
- 'src/**'
- 'electron-builder.json'
- 'package.json'
- 'vite.config.ts'
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '24.x'
- uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ runner.os }}-${{ hashFiles('package.json') }}
restore-keys: npm-${{ runner.os }}-
- name: Install Electron Dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-0 libnotify4 libnss3 libxss1 libxtst6 xdg-utils libatspi2.0-0 libuuid1 libsecret-1-0
- run: npm install
- run: npm run build
- run: npm run compile:electron
- name: Verify Build Structure
run: |
echo "=== Verifying dist/ structure ==="
for f in dist/index.html; do
if [ ! -f "$f" ]; then
echo "❌ $f not found"
exit 1
fi
done
echo "✓ dist/ structure verified"
echo "=== Verifying dist-electron/ structure ==="
for f in dist-electron/main.js dist-electron/preload.js; do
if [ ! -f "$f" ]; then
echo "❌ $f not found"
exit 1
fi
done
echo "✓ dist-electron/ structure verified"
echo "=== Build verification complete ==="