From 0a0f18e0323f5f5843b9e1a01689a73d125fa966 Mon Sep 17 00:00:00 2001 From: Danfro <37637312+Danfro@users.noreply.github.com> Date: Fri, 17 Mar 2023 22:23:43 +0100 Subject: [PATCH 1/3] add notes on how to set password and architecture --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 5a32757..a54223c 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,16 @@ cd yourproject/ crossbuilder ``` +Crossbuilder by default builds for armhf architecture. To build for arm64 run: +```bash +crossbuilder --architecture=arm64 +``` + +To be able to install the deb on the device after building, the devices sudo password needs to be provided: +```bash +crossbuilder --password=PASSWORD +``` + Change a line of code and type crossbuilder again to re-build and re-deploy. To go even faster, bypass building Debian packages with: From b399c073de4d0bca865bb7c144848622800c2ab1 Mon Sep 17 00:00:00 2001 From: Danfro <37637312+Danfro@users.noreply.github.com> Date: Fri, 7 Apr 2023 08:27:40 +0200 Subject: [PATCH 2/3] improve architecture description The new description covers the fact that crossbuilder tries to detect the architecture of an already connected device. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a54223c..2c7afe7 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ cd yourproject/ crossbuilder ``` -Crossbuilder by default builds for armhf architecture. To build for arm64 run: +Crossbuilder by default builds for armhf architecture. If a device is connected, it should detect the devices architecture. In case for some reason the architecture needs to be explicitely specified, it can be set like this: ```bash crossbuilder --architecture=arm64 ``` From 18de1973a018e74faee4a0803fc57b9f352158aa Mon Sep 17 00:00:00 2001 From: Danfro Date: Mon, 18 Nov 2024 21:24:57 +0100 Subject: [PATCH 3/3] add note on how to specify a certain image --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 2c7afe7..246c5c1 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,10 @@ To be able to install the deb on the device after building, the devices sudo pas ```bash crossbuilder --password=PASSWORD ``` +We can specify specific lxd images for the build process. This can be useful e.g. when building for specific target releases like 20.04. +```bash +crossbuilder --lxd-image=ubuntu:20.04 +``` Change a line of code and type crossbuilder again to re-build and re-deploy.