From 0a46fd46bb5cd7fae8228a77ea535d44eca0ce60 Mon Sep 17 00:00:00 2001
From: Evan Su <48808396+HACKERALERT@users.noreply.github.com>
Date: Sat, 7 Aug 2021 20:58:34 -0400
Subject: [PATCH] Update README.md
---
src/README.md | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/README.md b/src/README.md
index f72b3b1..54ddb26 100644
--- a/src/README.md
+++ b/src/README.md
@@ -39,15 +39,19 @@ github.com/HACKERALERT/browser@v0.0.0-20210730230128-85901a8dd82f
github.com/HACKERALERT/zxcvbn-go@v0.0.0-20210730224720-b29e9dba62c2
```
-# 6. Build From Source
+# 7. If You're Not on Windows
+Windows requires a couple of extra lines to hide the command prompt window that shows when shredding a file. If you're not on Windows, however, you'll need to delete all occurrences of this line: `cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow:true}`. You'll also need to remove the import of `syscall`.
+
+# 8. Build From Source
Tidy the modules:
```bash
go mod tidy
```
+
Build Picocrypt from source:
- Windows: go build -ldflags "-s -w -H=windowsgui -extldflags=-static" Picocrypt.go
- macOS: go build -ldflags "-s -w" Picocrypt.go
- Linux: go build -ldflags "-s -w" Picocrypt.go
-# 7. Done!
+# 9. Done!
You should now see a compiled executable (`Picocrypt.exe`/`Picocrypt`) in your directory. You can run it by double-clicking or executing it in your terminal. That wasn't too hard, right? Enjoy!