chore: add Android Studio deployment target selector configuration.
Some checks failed
Build and Release / build-and-release (push) Failing after 1m55s

This commit is contained in:
Bryan1029384756
2026-02-22 12:24:17 -06:00
parent 2ad78bafcc
commit fee34f0236
6 changed files with 1359 additions and 1224 deletions

View File

@@ -51,8 +51,34 @@ jobs:
cd apps/electron
npm run build
npx electron-builder --linux
xvfb-run npx electron-builder --win || echo "electron-builder exited with non-zero code, checking artifacts..."
test -f "dist/Brycord Setup"*.exe && echo "Windows build artifact verified" || exit 1
xvfb-run npx electron-builder --win || true
EXE_FILE=$(ls dist/Brycord\ Setup*.exe 2>/dev/null | head -1)
if [ -z "$EXE_FILE" ]; then
echo "ERROR: No Windows installer found"
exit 1
fi
SIZE=$(stat -c%s "$EXE_FILE")
if [ "$SIZE" -lt 10000000 ]; then
echo "ERROR: Windows installer too small (${SIZE} bytes), NSIS build likely failed"
exit 1
fi
echo "Windows build artifact verified (${SIZE} bytes)"
# Generate latest.yml if electron-builder didn't create it
if [ ! -f "dist/latest.yml" ]; then
VERSION="${{ steps.version.outputs.version }}"
EXE_NAME=$(basename "$EXE_FILE")
SHA512=$(sha512sum "$EXE_FILE" | awk '{print $1}')
cat > dist/latest.yml << YEOF
version: ${VERSION}
files:
- url: ${EXE_NAME}
sha512: ${SHA512}
size: ${SIZE}
path: ${EXE_NAME}
sha512: ${SHA512}
releaseDate: $(date -u +%Y-%m-%dT%H:%M:%S.000Z)
YEOF
fi
env:
GH_TOKEN: ${{ secrets.CI_TOKEN }}
WINEDEBUG: "-all"