Picocrypt/src/README.md

28 lines
1.4 KiB
Markdown
Raw Normal View History

2021-08-08 11:14:35 +12:00
# Running From Source
2021-08-12 04:35:34 +12: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. 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
Linux:
```bash
2021-08-12 04:35:34 +12:00
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 coreutils
2021-05-30 07:38:13 +12:00
```
2021-08-08 10:05:44 +12:00
macOS:
2021-06-02 04:02:56 +12:00
```bash
2021-08-08 10:05:44 +12:00
xcode-select --install
2021-06-02 04:02:56 +12:00
```
2021-08-08 11:14:35 +12:00
Windows: A C compiler, ideally [TDM-GCC](https://jmeubank.github.io/tdm-gcc/)
2021-06-02 04:02:56 +12:00
# 2. Install the Go Programming Language
2021-08-30 10:56:19 +12: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. The latest version of Go is required.
2021-06-02 04:02:56 +12:00
# 3. Get the Source Files
2021-08-12 04:35:34 +12:00
Download the source files as a zip from the homepage or `git clone` this repository.
2021-06-02 04:02:56 +12:00
# 4. Build From Source
- Windows: <code>go build -ldflags "-s -w -H=windowsgui -extldflags=-static"</code>
- macOS: <code>go build -ldflags "-s -w"</code>
- Linux: <code>go build -ldflags "-s -w"</code>
# 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!