Replies: 12 comments 8 replies
-
Great idea! I think that would be extremely useful and help to organize all the commands. One important issue, however: I want people on Windows, Mac, and Linux to all be able to pull down the code, build from source, and flash to their devices. That is a large reason for why the project uses Vagrant in the first place. As it is now, if you're on a vanilla Windows platform, all you need to do is download vagrant and git and you'll be good to go. With the introduction of a Makefile, this could complicate the process for Windows users. Is there a way to make this easy to run on Windows without requiring a lot of additional effort? Ideally, supporting it would require at most one more |
Beta Was this translation helpful? Give feedback.
-
A very important issue. In theory, Mac users can run the
I believe there are close possibilities:
EDIT: |
Beta Was this translation helpful? Give feedback.
-
Isn't it possible to just login Vagrant, than run all the commands as you were on Linux? |
Beta Was this translation helpful? Give feedback.
-
Taking the first short steps. I think I found a node.js framework -- electron-builder -- that makes it possible to create programs for Mac, Linux and Windows using a separate instance of chrome. I think now it's integrating the build process (vagrant, etc.) and installation steps in
Yes, its possible. But I'm kind of lazy person (:face_with_head_bandage: ) and I like to type few commands when they are repetitive. |
Beta Was this translation helpful? Give feedback.
-
The Because I was trying to avoid platform-specific instructions (and troubleshooting), the website documentation for installing from source just says to run the As for the development of Krux, it's less important that it be cross-platform. So, the Makefile could be written assuming it will be run on linux or inside Vagrant just like the Would that be easiest? That may have been what @odudex was suggesting. |
Beta Was this translation helpful? Give feedback.
-
A GUI installer based on Electron would be pretty neat if it could automate the installation commands. Something like this:
Is that what you're proposing? |
Beta Was this translation helpful? Give feedback.
-
I think it will be.
Sorry for not expressing myself properly before. But yes, that's exactly what I wanted to propose. In this sense, a GUI could (in a ideal and a similar way to what Raspiberry Pi Imager does):
|
Beta Was this translation helpful? Give feedback.
-
That sounds great to me! To keep things organized, can you create two issues: one for the Makefile with a small explanation about it (similar to your original post here), and one for the installer? That way we can track their development separately (ideally in two separate PRs) Going to convert this issue into a discussion |
Beta Was this translation helpful? Give feedback.
-
Well, it's been a while since the idea came. At the moment the GUI, in AppImage format, runs the firmware However I don't know if this is the case for executables on Windows or MacOS, although the builds are running smoothly A v0.0.1-alpha-1 release is likely on the way, but I think it would be interesting if some fellow developers on these OS could run the builds on their respective machines and report specific issues. Below, some screenshots: |
Beta Was this translation helpful? Give feedback.
-
Awesome work! I've been tracking your progress the past few months and it's been cool to see everything coming together. Here's some feedback if you're interested. For the Main Menu:
The orange background doesn't look good to me. I think I know why you picked that particular color though ;) But my preference would be to make the background black and the "Krux Installer" and logo white instead so the installer matches the site theme (https://selfcustody.github.io/krux/) and existing logo. |
Beta Was this translation helpful? Give feedback.
-
Now with both Linux ( https://github.com/qlrd/krux-installer/releases/tag/v0.0.1-alpha-2 Opinions about an additional step on windows: |
Beta Was this translation helpful? Give feedback.
-
Since I was invited to join the selfcustody organization, I thought whether it would be better to put the krux-installer source code in the organization (selfcustody/krux-installer) instead of my personal account (qlrd/krux-installer). What do you think? |
Beta Was this translation helpful? Give feedback.
-
When reading the official documentation over and over again (initially, with the intention of translation), I noticed that some tasks (development, build, lint, update, test, etc) require, on an extended time scale, a considerable amount of repetition of the commands.
I think this could be simplified, through a
Makefile
.I didn't open a PR to not affect some improvements being made by @jreesun and @odudex , but I share a gist that, apparently, simplified the tasks.
Some of the simplified tasks:
make update
: replacinggit pull origin main && git submodule update --init --recursive
make install
: replacingpoetry install
and some optional dependencies (in this sense, a proposal to modifypyproject.toml
to)make test
: replacingpoetry run pytest --cache-clear --cov src/krux --cov-report html ./tests
make test/verbose
: replacingpoetry run pytest --cache-clear --cov src/krux --cov-report html --show-capture all --capture tee-sys -r A ./tests
make build/sign
: replace some tasks to installing from the source:vagrant up
vagrant ssh -c 'cd /vagrant; ./krux generate-keypair'
vagrant ssh -c 'cd /vagrant; ./krux pem-to-pubkey pubkey.pem'
src/krux/metada.py
filemake build/maixpy_m5stickV
: replacevagrant ssh -c 'cd /vagrant; ./krux build maixpy_m5stickv'
make build/maixpy_amigo_ips
: replacevagrant ssh -c 'cd /vagrant; ./krux build maixpy_amigo_ips'
make simulator
: run and logs simulation processTo see all options, type
make help
I also prupose a change on
simulator/run-all-sequences.sh
, with the characteristic of reducing the console output and allowing the writing of log files during simulation.Beta Was this translation helpful? Give feedback.
All reactions