mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-15 00:24:45 +01:00
test download and remove files
This commit is contained in:
@@ -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 />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user