fix opening and some other stuff

This commit is contained in:
SpikeHD
2022-07-24 20:12:30 -07:00
parent 552d612e7c
commit c42c708db5
3 changed files with 8 additions and 6 deletions

View File

@@ -69,12 +69,8 @@ export class Mods extends React.Component<IProps, IState> {
const firstLink = dlLinks[0].downloadUrl
this.props.downloadHandler.addDownload(firstLink, modPath, async () => {
console.log('Unzipping:', mod.name)
const unzipRes = await unzip(modPath, modFolder, false)
console.log(`${unzipRes.new_folder}/modinfo.json`)
console.log(unzipRes)
// Write a modinfo.json file
invoke('write_file', {
path: `${unzipRes.new_folder}/modinfo.json`,