Picocrypt/src/README.md

30 lines
1.6 KiB
Markdown
Raw Normal View History

2021-08-08 11:14:35 +12:00
# Running From Source
2021-11-20 16:14:49 +13:00
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.
2021-05-30 07:38:13 +12:00
2021-06-02 04:02:56 +12:00
# 1. Prerequisites
2022-01-01 05:53:25 +13:00
**Linux:**
```bash
2022-04-19 03:24:23 +12:00
apt install -y gcc xorg-dev libgtk-3-dev libgl1-mesa-dev libglu1-mesa xclip
2021-05-30 07:38:13 +12:00
```
2022-01-01 05:53:25 +13:00
**macOS:**
2021-06-02 04:02:56 +12:00
```bash
2021-08-08 10:05:44 +12:00
xcode-select --install
2022-01-01 05:53:25 +13:00
brew install glfw glew
2021-06-02 04:02:56 +12:00
```
2022-04-02 16:23:13 +13:00
**Windows:** A C compiler, ideally [TDM-GCC](https://jmeubank.github.io/tdm-gcc/)
2021-06-02 04:02:56 +12:00
2022-08-28 14:44:43 +12:00
# 2. Install Go
2021-11-20 16:16:59 +13:00
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.
2021-06-02 04:02:56 +12:00
# 3. Get the Source Files
2021-11-20 16:18:12 +13:00
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`).
2021-06-02 04:02:56 +12:00
2021-11-20 16:14:49 +13:00
# 4. Build From Source
Finally, build Picocrypt from source:
2022-03-20 06:09:03 +13:00
- 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>
2021-11-20 16:14:49 +13:00
# 5. Done!
2021-08-08 11:14:35 +12:00
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!