Update Picocrypt.go
This commit is contained in:
parent
33c0978ff7
commit
ec1f94e8b3
|
@ -27,6 +27,7 @@ import (
|
||||||
"image"
|
"image"
|
||||||
"bytes"
|
"bytes"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
"syscall"
|
||||||
"strings"
|
"strings"
|
||||||
"strconv"
|
"strconv"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
@ -584,7 +585,24 @@ func startUI(){
|
||||||
tab = 3
|
tab = 3
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
giu.Label("Picocrypt "+version+", created by Evan Su (https://evansu.cc)"),
|
giu.Label("Picocrypt "+version+", created by Evan Su (https://evansu.cc)."),
|
||||||
|
giu.Label("Released under a GNU GPL v3 License."),
|
||||||
|
giu.Label("A warm thank you to all the people listed below."),
|
||||||
|
giu.Label("Patrons:"),
|
||||||
|
giu.Label(" - Frederick Doe"),
|
||||||
|
giu.Label("Donators:"),
|
||||||
|
giu.Label(" - W.Graham"),
|
||||||
|
giu.Label(" - N. Chin"),
|
||||||
|
giu.Label(" - Manjot"),
|
||||||
|
giu.Label(" - Phil P."),
|
||||||
|
giu.Label(" - E. Zahard"),
|
||||||
|
giu.Label("Translators"),
|
||||||
|
giu.Label(" - umitseyhan75 (Turkish)"),
|
||||||
|
giu.Label(" - digitalblossom (German)"),
|
||||||
|
giu.Label("Other"),
|
||||||
|
giu.Label(" - Fuderal for setting up Picocrypt's Discord server"),
|
||||||
|
giu.Label(" - u/greenreddits for constant feedback and support"),
|
||||||
|
giu.Label(" - u/Tall_Escape for helping me test Picocrypt"),
|
||||||
),
|
),
|
||||||
).Build()
|
).Build()
|
||||||
}),
|
}),
|
||||||
|
@ -1666,6 +1684,7 @@ func shred(names []string,separate bool){
|
||||||
}else{
|
}else{
|
||||||
cmd = exec.Command("rm","-rfP",j)
|
cmd = exec.Command("rm","-rfP",j)
|
||||||
}
|
}
|
||||||
|
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow:true}
|
||||||
cmd.Run()
|
cmd.Run()
|
||||||
shredding = j
|
shredding = j
|
||||||
shredDone++
|
shredDone++
|
||||||
|
@ -1689,6 +1708,7 @@ func shred(names []string,separate bool){
|
||||||
}else{
|
}else{
|
||||||
cmd = exec.Command("rm","-rfP",i)
|
cmd = exec.Command("rm","-rfP",i)
|
||||||
}
|
}
|
||||||
|
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow:true}
|
||||||
cmd.Run()
|
cmd.Run()
|
||||||
shredding = i
|
shredding = i
|
||||||
shredDone++
|
shredDone++
|
||||||
|
@ -1704,6 +1724,7 @@ func shred(names []string,separate bool){
|
||||||
}else{
|
}else{
|
||||||
cmd = exec.Command("rm","-rfP",name)
|
cmd = exec.Command("rm","-rfP",name)
|
||||||
}
|
}
|
||||||
|
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow:true}
|
||||||
cmd.Run()
|
cmd.Run()
|
||||||
shredding = name+"/*"
|
shredding = name+"/*"
|
||||||
shredDone++
|
shredDone++
|
||||||
|
@ -1730,6 +1751,7 @@ func shred(names []string,separate bool){
|
||||||
shredUpdate(separate)
|
shredUpdate(separate)
|
||||||
cmd := exec.Command(sdelete64path,"*","-p","4")
|
cmd := exec.Command(sdelete64path,"*","-p","4")
|
||||||
cmd.Dir = path
|
cmd.Dir = path
|
||||||
|
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow:true}
|
||||||
cmd.Run()
|
cmd.Run()
|
||||||
shredding = strings.ReplaceAll(path,"\\","/")+"/*"
|
shredding = strings.ReplaceAll(path,"\\","/")+"/*"
|
||||||
}
|
}
|
||||||
|
@ -1738,7 +1760,9 @@ func shred(names []string,separate bool){
|
||||||
// sdelete64 doesn't delete the empty folder, so I'll do it manually
|
// sdelete64 doesn't delete the empty folder, so I'll do it manually
|
||||||
os.RemoveAll(name)
|
os.RemoveAll(name)
|
||||||
}else{
|
}else{
|
||||||
exec.Command(sdelete64path,name,"-p","4").Run()
|
cmd := exec.Command(sdelete64path,name,"-p","4")
|
||||||
|
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow:true}
|
||||||
|
cmd.Run()
|
||||||
shredDone++
|
shredDone++
|
||||||
shredUpdate(separate)
|
shredUpdate(separate)
|
||||||
}
|
}
|
||||||
|
@ -1848,7 +1872,9 @@ func main(){
|
||||||
sdelete64path = sdelete64.Name()
|
sdelete64path = sdelete64.Name()
|
||||||
sdelete64.Write(sdelete64bytes)
|
sdelete64.Write(sdelete64bytes)
|
||||||
sdelete64.Close()
|
sdelete64.Close()
|
||||||
exec.Command(sdelete64path,"/accepteula").Run()
|
cmd := exec.Command(sdelete64path,"/accepteula")
|
||||||
|
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow:true}
|
||||||
|
cmd.Run()
|
||||||
|
|
||||||
// Start a goroutine to check if a newer version is available
|
// Start a goroutine to check if a newer version is available
|
||||||
go func(){
|
go func(){
|
||||||
|
|
Loading…
Reference in New Issue