mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-15 16:44:43 +01:00
downloading and extracting
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { invoke } from '@tauri-apps/api'
|
||||
import { listen } from '@tauri-apps/api/event'
|
||||
|
||||
export function unzip(file: string, dest: string, onFinish?: () => void) {
|
||||
export function unzip(file: string, dest: string, topLevelStrip?: boolean, onFinish?: () => void) {
|
||||
invoke('unzip', {
|
||||
zipfile: file,
|
||||
destpath: dest,
|
||||
topLevelStrip,
|
||||
})
|
||||
|
||||
listen('extract_end', ({ payload }) => {
|
||||
|
||||
Reference in New Issue
Block a user