更新rust代码中的名称为conf中变量

This commit is contained in:
Tlntin
2022-12-07 09:42:31 +08:00
parent befb5a49b5
commit f82ee038e5
5 changed files with 1972 additions and 1968 deletions

View File

@@ -42,7 +42,7 @@ export async function mergeTauriConfig(
tauriConf.tauri.bundle.identifier = identifier;
tauriConf.tauri.bundle.icon = [options.icon];
if (process.platform === "win32") {
const ico_path = path.join(npmDirectory, 'src-tauri/png/weread_32.ico');
const ico_path = path.join(npmDirectory, `src-tauri/png/${name.toLowerCase()}_32.ico`);
await fs.copyFile(options.icon, ico_path);
}
if (process.platform === "linux") {