Fix favorite toggle in lightbox not reflecting changes #8
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build & Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build app | |
| run: npx electron-vite build | |
| - name: Package for macOS (unsigned) | |
| env: | |
| CSC_IDENTITY_AUTO_DISCOVERY: false | |
| run: npx electron-builder --mac --publish never | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ImageStudio-macOS | |
| path: | | |
| dist/*.dmg | |
| dist/*.zip | |
| - name: Create GitHub Release | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| dist/*.dmg | |
| dist/*.zip | |
| generate_release_notes: true | |
| body: | | |
| ## Installation (macOS) | |
| 1. Download the `.dmg` file below | |
| 2. Open it and drag **ImageStudio** to your Applications folder | |
| 3. **Important:** The app is unsigned (no Apple Developer certificate). Before opening it for the first time, run this in Terminal: | |
| ```bash | |
| xattr -r -d com.apple.quarantine /Applications/ImageStudio.app | |
| ``` | |
| 4. Now open ImageStudio from your Applications folder | |
| 5. Paste your [OpenRouter API key](https://openrouter.ai/keys) in Settings and start generating |