mirror of
https://github.com/HACKERALERT/Picocrypt.git
synced 2025-01-04 21:58:23 +00:00
28 lines
1.7 KiB
Markdown
28 lines
1.7 KiB
Markdown
# Running From Source
|
|
If you would like to run Picocrypt from source, or an executable isn't available for your platform, you've come to the right place. Running from source is very simple, and I've made it even easier with these straightforward instructions. Unlike VeraCrypt, which requires complex build procedures, SDKs, and assemblers, Picocrypt can easily be compiled from source with only a Go and C compiler. All you need is ten minutes and an Internet connection.
|
|
|
|
# 1. Prerequisites
|
|
Linux:
|
|
```bash
|
|
apt install -y gcc make libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgl1-mesa-dev libxxf86vm-dev libgtk-3-dev xdg-utils libglu1-mesa xclip
|
|
```
|
|
macOS:
|
|
```bash
|
|
xcode-select --install
|
|
```
|
|
Windows: A C compiler, ideally [TDM-GCC](https://jmeubank.github.io/tdm-gcc/)
|
|
|
|
# 2. Install the Go Programming Language
|
|
If you don't have Go installed, download the corresponding installer for Go from <a href="https://golang.org/dl">here</a>, or from your package manager (`apt install golang-go`). The latest version of Go is recommended.
|
|
|
|
# 3. Get the Source Files
|
|
Download the source files as a zip from the homepage or `git clone` this repository. Next, navigate to the `src/` directory, where you will find the source file (`Picocrypt.go`).
|
|
|
|
# 4. Build From Source
|
|
Finally, build Picocrypt from source:
|
|
- Windows: <code>go build -ldflags "-s -w -H=windowsgui -extldflags=-static" Picocrypt.go</code>
|
|
- macOS: <code>go build -ldflags "-s -w" Picocrypt.go</code>
|
|
- Linux: <code>go build -ldflags "-s -w" Picocrypt.go</code>
|
|
|
|
# 5. 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!
|