mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-28 17:19:24 +01:00
* texturecraft-cli: follow RFC-0018 (clap, thiserror, run(args, out, err), packaged completions and man pages) Closes #866. Part of storytold/craft-contrib#95. * fix(cli): enable clap env, and close replacement and token gaps - Enable clap's `env` feature so TEXTURECRAFT_CONTROL_TOKEN compiles in a standalone `-p texturecraft-cli` release build (the FreeBSD package job). - An inherited token no longer implies --bridge; only a command-line --token does. - Compare run/bake/new outputs to the path Headless::save actually writes (it appends .tcraft when the extension is missing). - Apply the same replacement rule to batch (save vs open), with --in-place. - Build man-and-completions for the host when CARGO_BUILD_TARGET is set. - Don't panic in the blank-token test when the environment already has a token. * fix(cli): require both roots for headless mcp AGENTS.md rule 18 says an agent entry point must refuse to start without --automation-read-root and --automation-write-root (the --read-root / --write-root aliases here). Headless mcp now exits 2 unless both are set; --bridge is unchanged. The missing-CLI_DOCS diagnostic also names the host-example env -u CARGO_BUILD_TARGET prefix already used to build it.
95 lines
3.7 KiB
YAML
95 lines
3.7 KiB
YAML
# .deb and .rpm packages (nfpm: https://nfpm.goreleaser.com). Run by package.sh, which stages
|
|
# the file tree, substitutes its path for ${STAGE} (nfpm doesn't expand env vars in `src`) and
|
|
# exports VERSION, NFPM_ARCH, NFPM_NAME, NFPM_BIN and NFPM_CLI (the Nightly package renames the
|
|
# first two and has no CLI, so package.sh removes the CLI entry for it). By hand, all five are
|
|
# needed:
|
|
#
|
|
# VERSION=1.2.3 NFPM_ARCH=amd64 NFPM_NAME=texturecraft NFPM_BIN=texturecraft \
|
|
# NFPM_CLI=texturecraft-cli nfpm package -f packaging/linux/nfpm.yaml -p deb -t dist/release/
|
|
name: ${NFPM_NAME}
|
|
arch: ${NFPM_ARCH}
|
|
platform: linux
|
|
version: ${VERSION}
|
|
# semver: 0.2.0-rc.1 becomes 0.2.0~rc.1 in deb/rpm, so pre-releases sort before the release.
|
|
version_schema: semver
|
|
release: 1
|
|
section: graphics
|
|
priority: optional
|
|
maintainer: ${TEXTURECRAFT_MAINTAINER}
|
|
vendor: Learning Machines LLC
|
|
homepage: https://getartcraft.com/apps/texturecraft
|
|
license: MIT OR Apache-2.0
|
|
description: |-
|
|
Open-source, native 3D texture painter that works the way texture artists
|
|
expect. Paints PBR texture sets directly on glTF, FBX, COLLADA, USD, Alembic,
|
|
OBJ, PLY and STL meshes with layers, masks, fills and smart materials; bakes mesh maps;
|
|
exports texture sets for game engines. GPU viewport (wgpu).
|
|
Includes texturecraft-cli, a headless converter and command runner.
|
|
|
|
# The binaries link only glibc and libgcc_s directly. Windowing (X11/Wayland, xkbcommon) and the
|
|
# GPU (Vulkan, EGL/GL) are loaded at runtime with dlopen, so they aren't ELF NEEDED entries and
|
|
# the package tools can't find them: list them here. winit 0.30 loads, for X11: libX11,
|
|
# libX11-xcb, libxcb, libXcursor, libXi, libxkbcommon and libxkbcommon-x11 (missing
|
|
# libxkbcommon-x11 panics); for Wayland: libwayland-client and libxkbcommon. wgpu needs libvulkan
|
|
# or libEGL. RandR goes through x11rb's protocol code and fonts are found by scanning directories,
|
|
# so libXrandr and fontconfig aren't loaded.
|
|
overrides:
|
|
deb:
|
|
depends:
|
|
- libc6 (>= 2.35)
|
|
- libgcc-s1
|
|
- libxkbcommon0
|
|
- libxkbcommon-x11-0
|
|
- libwayland-client0
|
|
- libx11-6
|
|
- libx11-xcb1
|
|
- libxcb1
|
|
- libxcursor1
|
|
- libxi6
|
|
- libvulkan1 | libegl1
|
|
recommends:
|
|
- mesa-vulkan-drivers
|
|
- libegl-mesa0
|
|
- xdg-desktop-portal
|
|
rpm:
|
|
# Soname provides rather than package names, so the same requirements resolve on Fedora/RHEL
|
|
# (libxkbcommon-x11, libX11-xcb, ...) and openSUSE (libxkbcommon-x11-0, libX11-xcb1, ...).
|
|
depends:
|
|
- libxkbcommon.so.0()(64bit)
|
|
- libxkbcommon-x11.so.0()(64bit)
|
|
- libwayland-client.so.0()(64bit)
|
|
- libX11.so.6()(64bit)
|
|
- libX11-xcb.so.1()(64bit)
|
|
- libxcb.so.1()(64bit)
|
|
- libXcursor.so.1()(64bit)
|
|
- libXi.so.6()(64bit)
|
|
- (libvulkan.so.1()(64bit) or libEGL.so.1()(64bit))
|
|
recommends:
|
|
- mesa-vulkan-drivers
|
|
- xdg-desktop-portal
|
|
|
|
contents:
|
|
- src: ${STAGE}/usr/bin/${NFPM_BIN}
|
|
dst: /usr/bin/${NFPM_BIN}
|
|
file_info: { mode: 0755 }
|
|
- src: ${STAGE}/usr/bin/${NFPM_CLI}
|
|
dst: /usr/bin/${NFPM_CLI}
|
|
file_info: { mode: 0755 }
|
|
- src: ${STAGE}/usr/lib/
|
|
dst: /usr/lib/
|
|
type: tree
|
|
- src: ${STAGE}/usr/share/
|
|
dst: /usr/share/
|
|
type: tree
|
|
# Debian's zsh reads vendor-completions, not /usr/share/zsh/site-functions as Fedora's and
|
|
# openSUSE's do (its debian/rules sets --enable-additional-fpath). package.sh drops this entry
|
|
# from a Nightly build, which has no CLI.
|
|
- src: /usr/share/zsh/site-functions/_texturecraft-cli
|
|
dst: /usr/share/zsh/vendor-completions/_texturecraft-cli
|
|
type: symlink
|
|
packager: deb
|
|
|
|
scripts:
|
|
postinstall: packaging/linux/postinst.sh
|
|
postremove: packaging/linux/postinst.sh
|