foss-artist-install_v0.0.2
FOSS Artist Workflow Installer — Release v0.0.2
A focused installer for FOSS software.
INCLUDED:
Krita - FEATURING:
AI addons, and ComfyUI integration on Linux (tested on Nobara 42).
🔧 Summary
This release introduces support for installing AI-Diffusion, Segmentation Tools, and a ComfyUI launcher shortcut from the command line, with new modular install modes and proper version tracking. It resolves previous install path issues and adds backup/fallback logic for browser launching via Brave.
Bootstrap Script (krita.sh)
#!/usr/bin/env bash
# ─── Where to store install files (if run from $HOME) ────────────────
if [ "$PWD" = "$HOME" ]; then
cd "$HOME/Downloads" || exit 1
fi
bash -c '
set -euo pipefail
IFS=$'\''\n\t'\''
BOOT_DIR="$(pwd)"
INSTALL_DIR="$BOOT_DIR/krita_install"
INSTALL_SCRIPT="$INSTALL_DIR/install.sh"
UNINSTALL_SCRIPT="$INSTALL_DIR/uninstall.sh"
VERSION_FILE="$HOME/.Applications/Krita/version"
GITHUB_RELEASE_URL="https://github.com/SimonHeggie/FOSS-Artist-workflow-Guide/releases/download/v0.0.2/foss-artist-install.tar.gz"
ARCHIVE_TEMP="foss-artist-install.tar.gz"
# ─── Step 1: Ensure krita_install folder exists ─────────────────────
echo "[BOOT] Checking krita_install folder..."
if [ -d "$INSTALL_DIR" ]; then
echo "[INFO] Found existing ./krita_install — skipping download."
else
echo "[INFO] krita_install/ not found. Downloading v0.0.2 release..."
curl -L "$GITHUB_RELEASE_URL" -o "$ARCHIVE_TEMP"
echo "[INFO] Extracting installer..."
tar -xf "$ARCHIVE_TEMP" || {
echo "[ERROR] Failed to extract archive $ARCHIVE_TEMP" >&2
exit 1
}
rm -f "$ARCHIVE_TEMP"
if [ ! -d "$INSTALL_DIR" ]; then
echo "[ERROR] Expected folder '\''krita_install/'\'' not found after extraction." >&2
exit 1
fi
fi
# ─── Step 2: Validate install.sh exists ──────────────────────────────
if [ ! -f "$INSTALL_SCRIPT" ]; then
echo "[ERROR] Missing install.sh inside krita_install/ — aborting." >&2
ls -l "$INSTALL_DIR"
exit 1
fi
# ─── Step 3: Present menu ────────────────────────────────────────────
if [ ! -f "$VERSION_FILE" ]; then
echo "[INFO] Krita not installed."
echo "[I] Install Krita only"
echo "[AI] Install Krita + AI Diffusion"
echo "[AIC] Install Krita + AI + ComfyUI shortcut"
echo "[Q] Quit"
printf "Select an option: "
read -r option
case "$option" in
[Ii]) bash "$INSTALL_SCRIPT" --with-default ;;
[Aa][Ii]) bash "$INSTALL_SCRIPT" --with-ai ;;
[Aa][Ii][Cc]) bash "$INSTALL_SCRIPT" --with-ai --with-comfy ;;
[Qq]) echo "Goodbye!" && exit 0 ;;
*) echo "Invalid input." && exit 1 ;;
esac
else
echo "[INFO] Krita install detected."
echo "[INFO] Installed versions:"
grep -E '^(FOSS_INSTALL|KRITA|AIDIFFUSION|SEGMENTATIONTOOLS)=' "$VERSION_FILE"
echo ""
echo "[I] Install latest (overwrite, update version)"
echo "[AI] Add AI Diffusion"
echo "[AIC] Add AI Diffusion + ComfyUI shortcut"
echo "[D] Download archives only"
echo "[R] Repair (re-extract AppImage + reinstall addons)"
echo "[U] Uninstall (with ComfyUI backup)"
echo "[C] Complete uninstall (no backup)"
echo "[Q] Quit"
printf "Select an option: "
read -r option
case "$option" in
[Aa][Ii]) bash "$INSTALL_SCRIPT" --with-ai ;;
[Aa][Ii][Cc]) bash "$INSTALL_SCRIPT" --with-ai --with-comfy ;;
[Ii]) bash "$INSTALL_SCRIPT" --with-default ;;
[Dd]) bash "$INSTALL_SCRIPT" --download-only ;;
[Rr]) bash "$INSTALL_SCRIPT" --repair ;;
[Uu]) bash "$UNINSTALL_SCRIPT" --backup ;;
[Cc]) bash "$UNINSTALL_SCRIPT" --complete ;;
[Qq]) echo "Goodbye!" && exit 0 ;;
*) echo "Invalid input." && exit 1 ;;
esac
fi
'✅ Changelog — What's New in v0.0.2
ComfyUI Launcher
- Adds
run.shand.desktopshortcut for running a separate instance of the same ComfyUI server as ACLY's. - Launches ComfyUI server, preferring brave. Will fallback to your default web browser.
- WM_class used to give this brave applet it's own icon. Taskbar icon consistency
- Logs activity to
comfyui_log.txt
AI Addons
- Further prevented redundant downloads via version tag check
Krita Installer
- Ensures AppImage and archives are stored for later repair.
- Tracks version snapshot in extraction archive
versionfile and in the install conf file.
🛠️ Instructions — How to Use the Menu
Run:
bash krita.shYou’ll see one of these menus:
If Krita is NOT installed:
**** NEW INSTALL OPTIONS ****
[I] Install Krita only
[AI] Install Krita + AI Diffusion
[AIC] Install Krita + AI + ComfyUI shortcut
[Q] Quit
If Krita IS installed:
[I] Install latest (overwrite, update version)
[AI] Add AI Diffusion
[AIC] Add AI Diffusion + ComfyUI shortcut
[D] Download archives only
[R] Repair (re-extract AppImage + reinstall addons)
[U] Uninstall (with ComfyUI backup)
[C] Complete uninstall (no backup)
[Q] Quit
Choose based on your needs — all actions log to ~/.Applications/Krita/install.log.
✅ Test check-list for this release:
- Krita AppImage install + version check
- AI Diffusion addon install and path verification
- Segmentation Tools install and reuse logic
- Repair mode
- ComfyUI shortcut launches with correct icon/taskbar class
- Launch fallback if Brave is missing
- Download command.
- Uninstall command.
- Complete Uninstall
If you end up testing these, report any issues.
🔮 Future Roadmap
- See here for some of the apps that will be added: https://github.com/SimonHeggie/FOSS-Artist-workflow-Guide/wiki/1-%E2%80%90-LINUX-Install-Scripts