Another note is that you don't have to build this package on your Pi board at all (and face slow compile times and dependency hell for armv7). The end package is for any architecture (as it is mere frontend, javascript)! This means you can safely compile it with makepkg at your daily driver machine (PC or laptop) and then scp it to Pi board and install.
Search Criteria
Package Details: mainsail-git r2484.12ade8ba-2
Package Actions
| Git Clone URL: | https://aur.archlinux.org/mainsail-git.git (read-only, click to copy) |
|---|---|
| Package Base: | mainsail-git |
| Description: | Klipper web frontend |
| Upstream URL: | https://docs.mainsail.xyz/ |
| Keywords: | 3d klipper printing |
| Licenses: | GPL3 |
| Conflicts: | mainsail |
| Provides: | mainsail |
| Submitter: | wlhlm |
| Maintainer: | itslemonchan |
| Last Packager: | itslemonchan |
| Votes: | 3 |
| Popularity: | 0.000078 |
| First Submitted: | 2021-02-22 11:14 (UTC) |
| Last Updated: | 2025-10-27 21:24 (UTC) |
Dependencies (5)
- git (git-gitAUR, git-glAUR) (make)
- npm (python-nodejs-wheelAUR, corepackerAUR, npm-corepackAUR) (make)
- zip (zip-natspecAUR) (make)
- nginx (nginx-rtmp-sergey-gitAUR, nginx-mainline-pushstreamAUR, tengineAUR, tengine-extraAUR, freenginx-mainline-hgAUR, nginx-quic-libresslAUR, angieAUR, freenginx-mainlineAUR, freenginx-libresslAUR, nginx-mainline) (optional) – serve via HTTP
- ustreamerAUR (optional) – webcam streaming support
Required by (0)
Sources (3)
Latest Comments
insanie commented on 2025-11-06 10:14 (UTC) (edited on 2025-11-06 10:15 (UTC) by insanie)
insanie commented on 2025-11-06 10:09 (UTC)
Also, the whole content of mainsail-nginx.conf has to be put into an http {} block. And even then replacing the whole nginx.conf with this one won't work as you shouldn't disregard previous instruction in nginx.conf that go before http {} (e.g. mime types mention).
So, in order to configure nginx properly you have to go to /etc/nginx.conf and replace everything in http {} block with the whole content of mainsail-nginx.conf. Do not change anything else.
insanie commented on 2025-11-05 08:13 (UTC) (edited on 2025-11-05 08:14 (UTC) by insanie)
Ok I've found a solution regarding cypress dependency for armv7. It seems like having cypress in production release build doesn't make sense since these e2e tests are never triggered unless you do this explicitly on your own. This setup is being discussed with shift towards removing cypress as production dependency (and some other since --production tag is broken).
The solution is to remove cypress via a patch (proper way) or manually and then run makepkg with -e --holdver.
Here goes the list of things to remove cypress:
-
package.json, line 88, remove the whole line ("cypress": "^14.2.0",) -
tsconfig.json:-
line 16, remove
"cypress", -
line 21, remove
"./node_modules/cypress/types", -
lines 29-31, remove them completely (should mention cypress and tests)
-
After that the package compiles fine on armv7 with no harm to end artifact (given you have at least 1.5GB RAM).
itslemonchan commented on 2025-08-11 04:42 (UTC) (edited on 2025-10-27 21:26 (UTC) by itslemonchan)
Hi, I recently became the maintainer of mainsail-git and tested the two problems mentioned in the comments.
For the zip dependency problem, I added it as a build dependency.
For the armv7 compilation issue, I don't have an armv7 device to test.
nefortner commented on 2024-12-30 03:22 (UTC) (edited on 2024-12-30 03:23 (UTC) by nefortner)
It needs to have zip as a dependency.
I tried installing it shortly after installing the OS so I didn't have zip installed, and it gave me the following error:
cd ./dist && zip -r mainsail.zip ./ -x '**.DS_Store' ./ && cd ..
sh: line 1: zip: command not found
dom_b commented on 2022-04-21 15:24 (UTC) (edited on 2022-04-22 08:06 (UTC) by dom_b)
When installing on armv7 I got npm ERR! The Cypress App could not be installed. Your machine does not meet the operating system requirements.
Seems like this came with the change to vite. It works if I use the previous version of this repository (e2b1d2e3f724) and use the current master instead of develop when checking out mainsail (edit PKGBUILD file accordingly).
Pinned Comments
itslemonchan commented on 2025-08-11 04:42 (UTC) (edited on 2025-10-27 21:26 (UTC) by itslemonchan)
Hi, I recently became the maintainer of mainsail-git and tested the two problems mentioned in the comments.
For the zip dependency problem, I added it as a build dependency.
For the armv7 compilation issue, I don't have an armv7 device to test.