Verify release (#679)

Context: https://github.com/electron/forge/issues/3965
This commit is contained in:
Will Chen
2025-07-21 11:07:53 -07:00
committed by GitHub
parent 15defa72e9
commit dd4987a9ac
4 changed files with 183 additions and 0 deletions

View File

@@ -26,3 +26,41 @@ chmod +x scripts/extract-codebase.ts
- Extracts files with extensions: .ts, .tsx, .js, .jsx, .css
- Formats output with markdown code blocks, including file paths
- Writes all extracted code to a single markdown file
## verify-release-assets.js
A script that verifies all expected binary assets are present in the GitHub release for the current version in `package.json`.
### Usage
```bash
# Set GITHUB_TOKEN environment variable
export GITHUB_TOKEN=your_github_token
# Run the verification script
npm run verify-release
# Or run directly
node scripts/verify-release-assets.js
```
### Expected Assets
The script verifies the presence of these 7 assets for each release:
1. `dyad-{version}-1.x86_64.rpm` (Linux RPM)
2. `dyad-{version}-full.nupkg` (Windows NuGet package)
3. `dyad-{version}.Setup.exe` (Windows installer)
4. `dyad-darwin-arm64-{version}.zip` (macOS Apple Silicon)
5. `dyad-darwin-x64-{version}.zip` (macOS Intel)
6. `dyad_{version}_amd64.deb` (Linux DEB)
7. `RELEASES` (Windows update manifest)
### Features
- Reads version from `package.json` automatically
- Fetches release information from GitHub API
- Lists all expected vs actual assets
- Fails with clear error messages if assets are missing
- Shows warnings for unexpected assets
- Provides detailed release summary on success