Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,29 @@ jobs:
shell: bash
run: bash packaging/build-runtime.sh

# ── 图标资产生成(rant 2026-08-11T18:28:09:仓库只保留 icon.svg 设计源,
# png/icns/ico 由 CI 构建时现生成,必须先于 GUI 构建执行)──
- name: Generate icon assets (icon.svg → png/icns/ico)
shell: bash
run: |
set -euo pipefail
if command -v rsvg-convert >/dev/null 2>&1; then
echo "rsvg-convert already available"
elif [ "$RUNNER_OS" = "Linux" ]; then
sudo apt-get update -qq && sudo apt-get install -y -qq librsvg2-bin
elif [ "$RUNNER_OS" = "macOS" ]; then
brew install librsvg
else
echo "no rsvg-convert; gen-assets.sh will fall back to Chrome/Edge headless"
fi
bash packaging/gen-assets.sh
# 产物必须存在(GUI 构建引用 ../packaging/assets/*.png/icns/ico)
test -s packaging/assets/icon.png
if [ "$RUNNER_OS" = "macOS" ]; then
test -s packaging/assets/icon.icns
fi
test -s packaging/assets/icon.ico

# ── GUI dist(electron-builder;linux extraResources runtime §5 R64)──
- name: Build GUI (electron-builder)
working-directory: emrg/gui
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ node_modules/
.pytest_cache/
/dist/
/emrg/gui/dist/
# icon products generated at build time from packaging/assets/icon.svg (design source)
# (rant 2026-08-11T18:28:09: repo keeps only the SVG; png/icns/ico generated by gen-assets.sh)
packaging/assets/icon.png
packaging/assets/icon-512.png
packaging/assets/icon-256.png
packaging/assets/icon.icns
packaging/assets/icon.ico
Binary file removed packaging/assets/icon-256.png
Binary file not shown.
Binary file removed packaging/assets/icon-512.png
Binary file not shown.
Binary file removed packaging/assets/icon.icns
Binary file not shown.
Binary file removed packaging/assets/icon.ico
Binary file not shown.
Binary file removed packaging/assets/icon.png
Binary file not shown.
121 changes: 121 additions & 0 deletions packaging/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading