test download and remove files

This commit is contained in:
SpikeHD
2022-05-09 23:03:18 -07:00
parent 0a45a9a31c
commit 3c99dbcea6
4 changed files with 11 additions and 5 deletions

View File

@@ -18,12 +18,20 @@ async function download(url: string, filename: string, path: string) {
downloadHandler.addDownload(url, completePath)
}
async function TESTDOWNLOAD() {
download(
'https://github.com/Grasscutters/Grasscutter/archive/refs/heads/stable.zip',
'grasscutter.zip',
'S:/Cultivation'
)
}
function App() {
return (
<div className="App">
<Topbar />
<button>download file test</button>
<button onClick={TESTDOWNLOAD}>download file test</button>
<ServerLaunchSection />