Track bundled vendor runtime sources
This commit is contained in:
21
vendor/aigcpanel/electron/mapi/misc/main.ts
vendored
Normal file
21
vendor/aigcpanel/electron/mapi/misc/main.ts
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { ipcMain } from "electron";
|
||||
|
||||
import index from "./index";
|
||||
|
||||
ipcMain.handle(
|
||||
"misc:getZipFileContent",
|
||||
async (_, path: string, pathInZip: string) => {
|
||||
return await index.getZipFileContent(path, pathInZip);
|
||||
},
|
||||
);
|
||||
ipcMain.handle("misc:unzip", async (_, zipPath: string, dest: string) => {
|
||||
return await index.unzip(zipPath, dest);
|
||||
});
|
||||
|
||||
export default {
|
||||
...index,
|
||||
};
|
||||
|
||||
export const MiscMain = {
|
||||
...index,
|
||||
};
|
||||
Reference in New Issue
Block a user