-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeleteFiles.js
33 lines (33 loc) · 979 Bytes
/
deleteFiles.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const fs = require('fs-extra')
const os = require('os')
const platform = os.platform()
function delAll () {
if (platform === 'darwin') {
fs.remove('public/binaries/windowsTrezorTool', err => {
if (err) return console.error(err)
console.log('success!')
})
fs.remove('public/binaries/windowsElectrum.exe', err => {
if (err) return console.error(err)
console.log('success!')
})
fs.remove('public/binaries/windowsHWI.exe', err => {
if (err) return console.error(err)
console.log('success!')
})
} else {
fs.remove('public\\binaries\\macElectrumGW', err => {
if (err) return console.error(err)
console.log('success!')
})
fs.remove('public\\binaries\\macTrezorTool', err => {
if (err) return console.error(err)
console.log('success!')
})
fs.remove('public\\binaries\\macHWI', err => {
if (err) return console.error(err)
console.log('success!')
})
}
}
delAll()