const OS=require("os"),{exec:exec}=require("child_process"),Msg=Editor.require("packages://hot-update-tools/panel/msg.js"),Fs=require("fs"),Electron=require("electron");module.exports={methods:{log(e){this.$root.$emit(Msg.Log,e)},openDir(e){if(!Fs.existsSync(e))return;let r="";switch(OS.platform()){case"win32":r=`start "" "${e}"`;break;case"darwin":r=`open "${e}"`}r?exec(r):Electron.remote.shell.showItemInFolder(e),Electron.remote.shell.beep()}}};