stake-house / wagyu-key-gen

GNU General Public License v3.0
60 stars 42 forks source link

How did you build release binaries? #191

Closed SergeevDmitry closed 1 month ago

SergeevDmitry commented 1 month ago

Hello.

I tried to build binaries myself following all provided instructions, but when I run it on fresh machines (linux/windows) and try to create new mnemonic it shows various errors depending on a platform

Ubuntu

wagyu-error

Windows

image

Your release binaries work good on the same machines.

I found this issue with release build instructions. I performed all steps except signatures generation with no luck.

What could be a problem?

remyroy commented 1 month ago

Did you forget to run yarn buildcli on Unix or yarn buildcliwin on Windows? These need a python installation with pip and pyinstaller to work.

SergeevDmitry commented 1 month ago

Thank you for a fast reply. No, I did not forget any of this.

I run the following on my local Ubuntu 22.04

yarn install
yarn build
yarn buildcli
yarn dist

My pipeline for Windows runs the following

python -m pip install --upgrade --user pip
python -m pip install --user pyinstaller
python -m pip install --user Cython
npm install -g yarn
yarn install
yarn build
yarn buildcliwin
yarn dist

I use python 3.10 on both machines with all required packages installed

SergeevDmitry commented 1 month ago

The problem for Windows binary is solved. I had to run yarn build and yarn buildcliwin commands in separate pipline stages. But I still don't know what causes the problem on Ubuntu

SergeevDmitry commented 1 month ago

The problem with Ubuntu was that binary was build on version 22.04 and it cannot be run on version 20.04. Building on Ubuntu 20.04 allows to run binary on both versions.

Thank you for your time.

Closing it now