Last active
January 27, 2018 17:54
-
-
Save TheTrunk/a717983fcf3378e982efa61bc5290f81 to your computer and use it in GitHub Desktop.
Run the commands one by one as some dialogs may pop up, password is required, options needs to be selected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#install mingw-w64 | |
#That will install x86_64-w64-mingw32-gcc with two version thread models: posix and win32. | |
#/usr/bin/x86_64-w64-mingw32-gcc-win32 | |
#/usr/bin/x86_64-w64-mingw32-gcc-posix | |
#/usr/bin/x86_64-w64-mingw32-g++-win32 | |
#/usr/bin/x86_64-w64-mingw32-g++-posix | |
cd ~ | |
sudo apt-get install mingw-w64 | |
#Make sure the posix model was selected: | |
sudo update-alternatives --config x86_64-w64-mingw32-gcc | |
sudo update-alternatives --config x86_64-w64-mingw32-g++ | |
#install curl, cmake | |
sudo apt-get install curl | |
sudo apt-get install cmake | |
#install rust | |
curl https://sh.rustup.rs -sSf | sh | |
source ~/.cargo/env | |
rustup install stable-x86_64-unknown-linux-gnu | |
rustup install stable-x86_64-pc-windows-gnu | |
rustup target add x86_64-pc-windows-gnu | |
nano ~/.cargo/config | |
#add these two lines | |
[target.x86_64-pc-windows-gnu] | |
linker = "/usr/bin/x86_64-w64-mingw32-gcc" | |
# pull Hush | |
git clone https://github.com/TheTrunk/hush.git | |
cd hush | |
# fetch key | |
./zcutil/fetch-params.sh | |
# Build for windows | |
source ~/.cargo/env | |
./zcutil/build-win.sh -j$(nproc) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment