fix: icons
@ -2,7 +2,7 @@
|
||||
|
||||
<div align="center">
|
||||
|
||||
<img src="./res/icons/wechat-devtools.png" height="100px" width="100px"/>
|
||||
<img src="./res/icons/512x512.png" height="100px" width="100px"/>
|
||||
|
||||
<h3>微信开发者工具 Linux版</h3>
|
||||
<br>
|
||||
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
BIN
res/icons/16x16.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
BIN
res/icons/32x32.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
res/icons/48x48.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
BIN
res/icons/96x96.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 6.0 KiB |
@ -70,7 +70,7 @@ mkdir -p $app_dir/usr/share/{metainfo,icons}
|
||||
notice "COPY FILES"
|
||||
cp "$root_dir/bin/wechat-devtools" "$app_dir/bin/wechat-devtools"
|
||||
cp "$root_dir/bin/wechat-devtools-cli" "$app_dir/bin/wechat-devtools-cli"
|
||||
cp "$root_dir/res/icons/wechat-devtools.png" "$app_dir/wechat-devtools.png"
|
||||
cp "$root_dir/res/icons/512x512.png" "$app_dir/wechat-devtools.png"
|
||||
\cp -rf "$root_dir/res/appimage"/* "$app_dir"
|
||||
cp $app_dir/usr/share/applications/*.desktop "$app_dir/io.github.msojocs.wechat_devtools.desktop"
|
||||
|
||||
|
@ -72,12 +72,18 @@ sed -i "s#dir#/opt/apps/$package_name/files/bin#" "$base_dir/entries/application
|
||||
sed -i "s/WeChat Dev Tools/WeChat Dev Tools$NAME_SUFFIX/g" "$base_dir/info" "$base_dir/entries/applications/$package_name.desktop"
|
||||
sed -i "s/微信开发者工具/微信开发者工具$NAME_SUFFIX/g" "$base_dir/entries/applications/$package_name.desktop"
|
||||
|
||||
\cp -rf "$root_dir/res/icons/wechat-devtools.svg" "$base_dir/entries/icons/hicolor/scalable/apps/$package_name.svg"
|
||||
# \cp -rf "$root_dir/res/icons/wechat-devtools.svg" "$base_dir/entries/icons/hicolor/scalable/apps/$package_name.svg"
|
||||
for size in 16x16 32x32 64x64 128x128 256x256 512x512;do
|
||||
install -Dm644 "$root_dir/res/icons/$size.png" "$base_dir/entries/icons/hicolor/$size/apps/$package_name.png"
|
||||
done
|
||||
for size in 16x16 32x32 64x64 128x128 256x256 512x512;do
|
||||
install -Dm644 "$root_dir/res/icons/$size.png" "$build_dir/usr/share/icons/hicolor/$size/apps/$package_name.png"
|
||||
done
|
||||
|
||||
# 兼容普通deb
|
||||
mkdir -p "$build_dir/usr/share/applications" "$build_dir/usr/share/icons/hicolor/scalable/apps"
|
||||
\cp -rf "$base_dir/entries/applications/$package_name.desktop" "$build_dir/usr/share/applications/$package_name.desktop"
|
||||
\cp -rf "$base_dir/entries/icons/hicolor/scalable/apps/$package_name.svg" "$build_dir/usr/share/icons/hicolor/scalable/apps/$package_name.svg"
|
||||
# \cp -rf "$base_dir/entries/icons/hicolor/scalable/apps/$package_name.svg" "$build_dir/usr/share/icons/hicolor/scalable/apps/$package_name.svg"
|
||||
|
||||
# 主体文件
|
||||
cp -r "$root_dir/package.nw" "$base_dir/files/bin/package.nw"
|
||||
|
@ -14,7 +14,7 @@ for (let size of ["64", "128", "256", "512"]) {
|
||||
} catch (error) {}
|
||||
info(`Writing icon file ${iconPath}`);
|
||||
fs.copyFileSync(
|
||||
path.resolve(__dirname, "../res/icons", `wechat-devtools${size}.png`),
|
||||
path.resolve(__dirname, "../res/icons", `${size}x${size}.png`),
|
||||
iconPath
|
||||
);
|
||||
}
|
||||
|