This commit refactors the icon and logo generation process by replacing multiple dependencies with ImageMagick. This simplifies the build process and enhances maintainability. Key changes: - Remove unnecessary icon files for macOS (.icns) and Linux (size-specific PNGs). Electron-builder can now auto-generate these from a single `logo.png` starting from version 19.54.0, see: - electron-userland/electron-builder#1682 - electron-userland/electron-builder#2533 - Retain `ico` generation with multiple sizes to fix pixelated/bad looking icons on Windows, see: - electron-userland/electron-builder#7328 - electron-userland/electron-builder#3867 - Replaced `svgexport`, `icon-gen`, and `electron-icon-builder` dependencies with ImageMagick, addressing issues with outdated dependencies and unreliable CI/CD builds. - Move electron-builder build resources to `src/presentation/electron/build` for better project structure. - Improve `electron-builder` configuration file by making it importable/reusable without prebuilding the Electron application.
60 lines
1.6 KiB
YAML
60 lines
1.6 KiB
YAML
name: checks.scripts
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
icons-build:
|
|
runs-on: ${{ matrix.os }}-latest
|
|
strategy:
|
|
matrix:
|
|
os: [ macos, ubuntu, windows ]
|
|
fail-fast: false # Still interested to see results from other combinations
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v4
|
|
-
|
|
name: Install ImageMagick on macOS
|
|
if: matrix.os == 'macos'
|
|
run: brew install imagemagick
|
|
-
|
|
name: Setup node
|
|
uses: ./.github/actions/setup-node
|
|
-
|
|
name: Install dependencies
|
|
uses: ./.github/actions/npm-install-dependencies
|
|
-
|
|
name: Create icons
|
|
run: npm run icons:build
|
|
|
|
install-deps:
|
|
runs-on: ${{ matrix.os }}-latest
|
|
strategy:
|
|
matrix:
|
|
install-deps-before: [true, false]
|
|
install-command:
|
|
- npm run install-deps
|
|
- npm run install-deps -- --no-errors
|
|
- npm run install-deps -- --ci
|
|
- npm run install-deps -- --fresh --non-deterministic
|
|
- npm run install-deps -- --fresh
|
|
- npm run install-deps -- --non-deterministic
|
|
os: [ macos, ubuntu, windows ]
|
|
fail-fast: false # Still interested to see results from other combinations
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v4
|
|
-
|
|
name: Setup node
|
|
uses: ./.github/actions/setup-node
|
|
-
|
|
name: Install dependencies
|
|
if: matrix.install-deps-before == true
|
|
uses: ./.github/actions/npm-install-dependencies
|
|
-
|
|
name: Run install-deps
|
|
run: ${{ matrix.install-command }}
|