Cursor Rules — userdocs/qbittorrent-nox-static
A bash script which builds a fully static qbittorrent-nox binary with current dependencies to use on any Linux OS
6/19/2026 · 16 viewsCursor rules
Technical Rules for qbittorrent-nox-static
Standards
- Tone: No pandering. Focus on the solution.
- Context: Check
MEMORY.mdfor project state. UpdateMEMORY.mdafter completing a significant task. - Privacy: No secrets, tokens, or personal info in docs. Use
[OWNER]/[REPO]placeholders. - Shebang: Always
#!/bin/bash. - I/O: Use
printf, neverecho. - Quoting: Quote all variables.
- Reliability: Explicit error checks. Avoid global
set -e. - Naming: Lowercase variables for script logic; UPPERCASE for ENV vars.
Repo-Specific
- LTO & Linker:
userdocs/musl-cross-makesupports LTO (-flto) andmold.- Script: Use
qbt_linker_mold=yes. - Toolchain: Use
-fuse-ld=mold.
- Detection:
source /etc/os-release. Alpineapk --print-arch, Debiandpkg --print-architecture. - Linking: Use both
-staticand--static. Set LDFLAGS at link time.
Workflows
- Always declare
needsfor job output access. - Use
gh run watchto track triggered runs.
Focus on secure, robust, and efficient code. Refer to https://mywiki.wooledge.org for Bash best practices.
Source: userdocs/qbittorrent-nox-static · 1635★ Repo: A bash script which builds a fully static qbittorrent-nox binary with current dependencies to use on any Linux OS