Picocrypt/src
2021-08-07 18:05:44 -04:00
..
resources Add files via upload 2021-08-01 22:48:36 -04:00
unstable Begin v1.15 2021-08-07 17:54:27 -04:00
Picocrypt.go Finalize v1.14 2021-08-07 16:40:01 -04:00
README.md Update README.md 2021-08-07 18:05:44 -04:00

Running From Source (Work in progress)

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 simple instructions. Note that the instructions are generic and will work on any platform.

1. Prerequisites

Linux:

sudo apt-get install -y gcc make curl git tar wget xz-utils libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgl1-mesa-dev libxxf86vm-dev libgtk-3-dev xdg-utils && sudo apt-get install -y libglx-dev || echo "" && sudo apt-get install -y xclip || sudo apt-get install xsel

macOS:

xcode-select --install

Windows: TDM-GCC

2. Install the Go Programming Language

Download the corresponding installer for Go from here, or from your package manager. Go 1.16 or higher is recommended.

3. Get the Source Files

Download the source file Picocrypt.go from above or git clone this repository.

4. Get Resources

Place all the files in the resources/ directory in the same directory as Picocrypt.go.

5. Create a go.mod:

Go to where Picocrypt.go is located and initialize Go:

go mod init Picocrypt

5. Install Picocrypt's Go Dependencies


Note: if macOS prompts you to install clang, do so and run the command again

6. Tidy the Modules:

go mod tidy

7. Build 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

8. You are now complete.

You should now see a built executable (Picocrypt.exe/Picocrypt.app/Picocrypt) in your directory. You can run it by double-clicking or executing it in your terminal. If you're on Windows, go and download the sdelete64.exe from the list above and place it in the same directory as Picocrypt.exe.