mirror of
https://github.com/lone-cloud/gerbil
synced 2026-06-03 09:33:10 -07:00
2 KiB
2 KiB
Release Workflow
This GitHub Action workflow automatically builds and releases FriendlyKobold for macOS, Windows, and Linux.
How to Create a Release
Method 1: Tag-based Release (Recommended)
-
Create and push a new tag:
git tag v1.0.0 git push origin v1.0.0 -
The workflow will automatically:
- Build the app for all platforms
- Run type checking and linting
- Create a GitHub release
- Upload the built files as release assets
Method 2: Manual Release
- Go to the "Actions" tab in your GitHub repository
- Select the "Release" workflow
- Click "Run workflow"
- Enter the tag version (e.g.,
v1.0.0) - Click "Run workflow"
Generated Files
The workflow creates the following files:
- macOS:
FriendlyKobold-{version}.dmg - Windows:
FriendlyKobold Setup {version}.exe - Linux:
FriendlyKobold-{version}.AppImage
Requirements
- The repository must have a
GITHUB_TOKEN(automatically provided by GitHub) - Node.js 22 and Yarn for building
- All dependencies must be properly defined in
package.json
Troubleshooting
If the build fails:
- Check that all dependencies are installed correctly
- Ensure the build script works locally:
yarn build - Check the workflow logs for specific error messages
- Verify that the version tag follows semantic versioning (e.g.,
v1.0.0)
Adding Icons
To customize the app icon:
- Replace
assets/icon.pngwith your custom 512x512 PNG icon - Electron Builder automatically converts this single PNG to the appropriate format for each platform:
- macOS: Converts to
.icnsformat - Windows: Converts to
.icoformat - Linux: Uses PNG directly
- macOS: Converts to
The icon is already configured in package.json under the build.icon property.
Customizing the Release
You can customize the release by editing .github/workflows/release.yml:
- Change the supported platforms in the
matrix.osarray - Modify the release notes template
- Add additional build steps or checks
- Change the artifact upload logic