Add Linux packaging instructions to build (#1126)

This commit is contained in:
Evan Simkowitz 2024-10-24 14:51:49 -07:00 committed by GitHub
parent 94a0a8b632
commit f197be1f1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,6 +35,19 @@ Arch:
sudo pacman -S zip zig
```
##### For packaging
For packaging, the following additional packages are required:
- `fpm` — If you're on x64 you can skip this. If you're on ARM64, install fpm via [Gem](https://rubygems.org/gems/fpm)
- `rpm` — If you're not on Fedora, install RPM via your package manager.
- `snapd` — If your distro doesn't already include it, [install `snapd`](https://snapcraft.io/docs/installing-snapd)
- `lxd` — [Installation instructions](https://canonical.com/lxd/install)
- `snapcraft` — Run `sudo snap install snapcraft --classic`
- `libarchive-tools` — Install via your package manager
- `libopenjp2-tools` — Install via your package manager
- `squashfs-tools` — Install via your package manager
#### Windows
You will need the GNU build toolchain installed in order for Go to work on Windows. In most cases, this requires installing MinGW-w64.
@ -118,6 +131,12 @@ Run the following command to generate a production build and package it. This le
task package
```
If you're on Linux ARM64, run the following:
```sh
USE_SYSTEM_FPM=1 task package
```
## Debugging
### Frontend logs