fix path & add icon
35
build/icon/4.new_transfer.js
Normal file
@@ -0,0 +1,35 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
// 定义路径
|
||||
const pngDir = 'E:\\HuiTask\\更好的原神\\2.资料\\图标处理\\matchedPng';
|
||||
const iconDir = 'E:\\HuiTask\\更好的原神\\2.资料\\图标处理\\matchedIco';
|
||||
|
||||
// 定义输出目录
|
||||
const outputDir = 'E:\\HuiTask\\更好的原神\\2.资料\\图标处理\\diffPng';
|
||||
|
||||
// 确保输出目录存在
|
||||
if (!fs.existsSync(outputDir)) {
|
||||
fs.mkdirSync(outputDir, { recursive: true });
|
||||
}
|
||||
|
||||
// 获取两个目录中的文件列表并去除扩展名
|
||||
const getPureFilenames = (dir) => {
|
||||
return fs.readdirSync(dir).map(file => path.parse(file).name);
|
||||
};
|
||||
|
||||
const pngFiles = getPureFilenames(pngDir);
|
||||
const icoFiles = getPureFilenames(iconDir);
|
||||
|
||||
// 找出在PNG目录存在但在ICO目录不存在的文件
|
||||
const unmatchedPng = pngFiles.filter(name => !icoFiles.includes(name));
|
||||
|
||||
// 复制不匹配的PNG文件到输出目录
|
||||
unmatchedPng.forEach(filename => {
|
||||
const sourcePath = path.join(pngDir, `${filename}.png`);
|
||||
const destPath = path.join(outputDir, `${filename}.png`);
|
||||
fs.copyFileSync(sourcePath, destPath);
|
||||
});
|
||||
|
||||
console.log(`找到并复制了 ${unmatchedPng.length} 个不匹配的 PNG 文件到: ${outputDir}`);
|
||||
|
||||
2
repo/pathing/劫波莲/desktop.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[.ShellClassInfo]
|
||||
IconResource=icon.ico
|
||||
BIN
repo/pathing/劫波莲/icon.ico
Normal file
|
After Width: | Height: | Size: 44 KiB |
2
repo/pathing/圣金虫/desktop.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[.ShellClassInfo]
|
||||
IconResource=icon.ico
|
||||
BIN
repo/pathing/圣金虫/icon.ico
Normal file
|
After Width: | Height: | Size: 41 KiB |
@@ -12,7 +12,7 @@
|
||||
"id": 1,
|
||||
"x": 4790.89892578125,
|
||||
"y": -3182.685546875,
|
||||
"type": "path",
|
||||
"type": "teleport",
|
||||
"move_mode": "walk",
|
||||
"action": ""
|
||||
},
|
||||
|
||||
2
repo/pathing/塞西莉亚花/desktop.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[.ShellClassInfo]
|
||||
IconResource=icon.ico
|
||||
BIN
repo/pathing/塞西莉亚花/icon.ico
Normal file
|
After Width: | Height: | Size: 34 KiB |
2
repo/pathing/墩墩桃/desktop.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[.ShellClassInfo]
|
||||
IconResource=icon.ico
|
||||
BIN
repo/pathing/墩墩桃/icon.ico
Normal file
|
After Width: | Height: | Size: 30 KiB |
2
repo/pathing/天云草实/desktop.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[.ShellClassInfo]
|
||||
IconResource=icon.ico
|
||||
BIN
repo/pathing/天云草实/icon.ico
Normal file
|
After Width: | Height: | Size: 29 KiB |
2
repo/pathing/帕蒂沙兰/desktop.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[.ShellClassInfo]
|
||||
IconResource=icon.ico
|
||||
BIN
repo/pathing/帕蒂沙兰/icon.ico
Normal file
|
After Width: | Height: | Size: 37 KiB |
2
repo/pathing/松果/desktop.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[.ShellClassInfo]
|
||||
IconResource=icon.ico
|
||||
BIN
repo/pathing/松果/icon.ico
Normal file
|
After Width: | Height: | Size: 38 KiB |
2
repo/pathing/松茸/desktop.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[.ShellClassInfo]
|
||||
IconResource=icon.ico
|
||||
BIN
repo/pathing/松茸/icon.ico
Normal file
|
After Width: | Height: | Size: 34 KiB |
@@ -14,7 +14,7 @@
|
||||
"y": 5091.79931640625,
|
||||
"action": "",
|
||||
"move_mode": "walk",
|
||||
"type": "path"
|
||||
"type": "teleport"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
|
||||
2
repo/pathing/枣椰/desktop.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[.ShellClassInfo]
|
||||
IconResource=icon.ico
|
||||
BIN
repo/pathing/枣椰/icon.ico
Normal file
|
After Width: | Height: | Size: 46 KiB |
2
repo/pathing/树莓/desktop.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[.ShellClassInfo]
|
||||
IconResource=icon.ico
|
||||
BIN
repo/pathing/树莓/icon.ico
Normal file
|
After Width: | Height: | Size: 30 KiB |
2
repo/pathing/泡泡桔/desktop.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[.ShellClassInfo]
|
||||
IconResource=icon.ico
|
||||
BIN
repo/pathing/泡泡桔/icon.ico
Normal file
|
After Width: | Height: | Size: 43 KiB |
2
repo/pathing/海草/desktop.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[.ShellClassInfo]
|
||||
IconResource=icon.ico
|
||||
BIN
repo/pathing/海草/icon.ico
Normal file
|
After Width: | Height: | Size: 40 KiB |
2
repo/pathing/海露花/desktop.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[.ShellClassInfo]
|
||||
IconResource=icon.ico
|
||||
BIN
repo/pathing/海露花/icon.ico
Normal file
|
After Width: | Height: | Size: 35 KiB |
2
repo/pathing/莲蓬/desktop.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[.ShellClassInfo]
|
||||
IconResource=icon.ico
|
||||
BIN
repo/pathing/莲蓬/icon.ico
Normal file
|
After Width: | Height: | Size: 30 KiB |
2
repo/pathing/赤念果/desktop.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[.ShellClassInfo]
|
||||
IconResource=icon.ico
|
||||
BIN
repo/pathing/赤念果/icon.ico
Normal file
|
After Width: | Height: | Size: 41 KiB |
2
repo/pathing/香辛果/desktop.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[.ShellClassInfo]
|
||||
IconResource=icon.ico
|
||||
BIN
repo/pathing/香辛果/icon.ico
Normal file
|
After Width: | Height: | Size: 36 KiB |
2
repo/pathing/马尾/desktop.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[.ShellClassInfo]
|
||||
IconResource=icon.ico
|
||||
BIN
repo/pathing/马尾/icon.ico
Normal file
|
After Width: | Height: | Size: 34 KiB |