diff --git a/resources/icons/128x128.png b/resources/icons/128x128.png new file mode 100644 index 0000000..0dada56 Binary files /dev/null and b/resources/icons/128x128.png differ diff --git a/resources/icons/16x16.png b/resources/icons/16x16.png new file mode 100644 index 0000000..c9aee53 Binary files /dev/null and b/resources/icons/16x16.png differ diff --git a/resources/icons/24x24.png b/resources/icons/24x24.png new file mode 100644 index 0000000..aaacdc5 Binary files /dev/null and b/resources/icons/24x24.png differ diff --git a/resources/icons/256x256.png b/resources/icons/256x256.png new file mode 100644 index 0000000..98ca2bf Binary files /dev/null and b/resources/icons/256x256.png differ diff --git a/resources/icons/32x32.png b/resources/icons/32x32.png new file mode 100644 index 0000000..20a8f48 Binary files /dev/null and b/resources/icons/32x32.png differ diff --git a/resources/icons/48x48.png b/resources/icons/48x48.png new file mode 100644 index 0000000..6801c82 Binary files /dev/null and b/resources/icons/48x48.png differ diff --git a/resources/icons/512x512.png b/resources/icons/512x512.png new file mode 100644 index 0000000..18306cf Binary files /dev/null and b/resources/icons/512x512.png differ diff --git a/resources/icons/64x64.png b/resources/icons/64x64.png new file mode 100644 index 0000000..c5b1e09 Binary files /dev/null and b/resources/icons/64x64.png differ diff --git a/scripts/package-kylin-arm64-deb.sh b/scripts/package-kylin-arm64-deb.sh index a230421..05c7456 100755 --- a/scripts/package-kylin-arm64-deb.sh +++ b/scripts/package-kylin-arm64-deb.sh @@ -62,14 +62,25 @@ mkdir -p "$STAGING/DEBIAN" \ "$STAGING/opt/$PRODUCT_NAME" \ "$STAGING/usr/bin" \ "$STAGING/usr/share/applications" \ - "$STAGING/usr/share/icons/hicolor/1024x1024/apps" + "$STAGING/usr/share/pixmaps" cp -a "$APP_DIR/." "$STAGING/opt/$PRODUCT_NAME/" # chrome-sandbox 必须是 setuid root,否则 Electron 沙箱初始化失败, # 启动即崩溃报 "Failed sending zygote boot message: 断开的管道" chmod 4755 "$STAGING/opt/$PRODUCT_NAME/chrome-sandbox" -cp resources/icon.png "$STAGING/usr/share/icons/hicolor/1024x1024/apps/$PKG_NAME.png" +# 只装 1024x1024 会导致部分桌面菜单(如 UKUI)在按常规尺寸(48x48 等)查找图标时 +# 找不到、直接回退成缺省图标,而不是从 1024 缩放——所以要把常规尺寸全部装齐 +for size in 16 24 32 48 64 128 256 512 1024; do + mkdir -p "$STAGING/usr/share/icons/hicolor/${size}x${size}/apps" + if [ "$size" = "1024" ]; then + cp resources/icon.png "$STAGING/usr/share/icons/hicolor/1024x1024/apps/$PKG_NAME.png" + else + cp "resources/icons/${size}x${size}.png" "$STAGING/usr/share/icons/hicolor/${size}x${size}/apps/$PKG_NAME.png" + fi +done +# 兼容不认 icon 主题、直接读 pixmaps 的老式菜单实现 +cp resources/icons/48x48.png "$STAGING/usr/share/pixmaps/$PKG_NAME.png" cat > "$STAGING/usr/share/applications/$PKG_NAME.desktop" <