Skip to content

Compile Pangolin Desktop

Camden Bruce edited this page Dec 19, 2021 · 5 revisions

Prerequisites

  • Flutter SDK (on master channel) and desktop support enabled

flutter channel master

flutter config --enable-linux-desktop or flutter config --enable-windows-desktop or flutter config --enable-macos-desktop

Compiling

  1. First, clone Pangolin Desktop git clone --recurse-submodules https://github.com/dahliaos/pangolin-desktop pangolin_desktop and then drop into the directory via cd pangolin_desktop
  2. Finally, to compile binaries, run flutter build linux --debug (substitute --debug with --release if needed).

When to process is finished, copy the binary bundle from /output/build/linux.

Replace the bundle folder in the buildroot buildroot/output/target/dahlia/pangolin_desktop with your updated version, and run make again.

The process is complete.

Sideloading on pre-compiled dahliaOS Linux-Based images

Flash external media with the dahliaOS image, boot it, and expand the filesystem with /bin/expand-fs.

Make sure to modify the values in expand-fs to align with the information on the USB to prevent data loss.

Now, take an EXT4 formatted flash drive, and add the compiled Pangolin bundle to it. Attach the USB drive to the device running dahliaOS, open terminal, and type the following:

  1. mkdir /mnt/shells
  2. mount -o loop /dev/<drive identifier> /mnt/shells
  3. cd /dahlia
  4. cp -r /mnt/shells/pangolin_desktop pangolin_desktop
  5. reboot

The system will reboot into the updated desktop, if errors arise, run rm /root/system-hive/* to clear states.

Clone this wiki locally