1
0

17 Commits

Author SHA1 Message Date
aki
d12f0bdf88 refactor: Overhaul build system for reliability and future portability
This commit introduces a major refactoring of the Aseprite build process. It replaces the previous fragile system (prone to dependency fetching failures) with an interim multi-distribution Docker approach, paving the way for a future transition to Flatpak.

**Problems Addressed:**

*   **Build Fragility & Dependency Fetching:** The prior method, compiling dependencies from source within a generic container, frequently failed due to network issues and rate limiting during source/sub-dependency acquisition (e.g., Skia's `git-sync-deps`), often late in the process. Source state inconsistencies could also cause failures.
*   **Complexity of Full Source Builds:** Managing the compilation of the entire dependency tree from source was complex.

**New Architecture & Rationale:**

*   **Host-Side Source Preparation (`prepare_sources.sh`):** Isolates the problematic source fetching and state management to a host-side script run *before* the main build. Key features:
    *   Handles cloning/updating core sources (`depot_tools`, Skia, Aseprite).
    *   Runs Skia `git-sync-deps` with **robust retry logic** to specifically address rate limit errors.
    *   Includes an `--check-integrity` flag which performs **aggressive checks and resets** (fetching, checking out specific tags/commits, resetting state) to ensure the local source directories precisely match the required state for the build, potentially involving significant network activity.
*   **Distribution-Specific Builds (Interim Step):** Introduced `Dockerfile.arch`, `Dockerfile.debian`, `Dockerfile.fedora`. These use native package managers to install pre-built *common* development libraries within the container, simplifying the Docker build stage itself. Requires OS detection or manual selection (`TARGET_DISTRO`).
*   **Clear Build Stages (Makefile):** Orchestrates source preparation, image building, and final binary extraction (`docker cp` to `./output/bin`).
*   **Cleaned Structure:** Removed obsolete scripts/files (`compile.sh`, generic `Dockerfile`, `docker-compose.yml`) and updated `.gitignore`.

**Limitations & Future Direction (Flatpak):**

*   **Fetching Challenges Persist:** While reliability is improved by isolating source prep and adding retries/integrity checks in `prepare_sources.sh`, the core challenge of potential rate limits or network issues during this initial step remains.
*   **Flatpak for Portability:** The current multi-distro Docker setup is an **intermediate solution**. The ultimate goal and **forward-maintained approach** is migrating to **Flatpak (`flatpak-builder`)**. Flatpak will provide a **unified, distribution-agnostic build environment** using standard runtimes and produce a **portable `.flatpak` bundle**, eliminating the need for OS detection/separate Dockerfiles and ensuring consistent builds *after* sources are successfully prepared.
2025-05-05 01:16:07 +08:00
nilsve
45184df371
Update README.md 2025-02-05 09:17:00 +01:00
nilsve
c749ea2fed
Update README.md 2024-07-09 11:44:06 +02:00
nilsve
7e71eab87c
Merge pull request #9 from xackery/xackery/docker
Add non-compose support
2023-10-11 15:31:52 +02:00
xackery
fb299896b9 Add non-compose support 2023-10-01 13:52:52 -07:00
nilsve
fc75ad175a
Merge pull request #8 from BareTuna/patch-1
Add fix for libcrypto error in FAQ
2023-07-14 16:26:04 +02:00
Tuna
2d3ec8b873
Add fix for libcrypto error in FAQ 2023-07-06 23:01:22 -06:00
nilsve
c4216126fa
Merge pull request #6 from joshthemisanthrope/master
Updated to Aseprite v1.2.40 and Skia m102
v1.2
2023-02-03 15:23:58 +01:00
Josh
47eb4fb9d5 Updated to Aseprite v1.2.40 and Skia m102 2023-01-03 19:41:08 -04:00
nilsve
910c68d20b
Update README.md 2022-04-26 15:13:49 +02:00
nils
02647a7ee4 Fix build & compile skia from source v1.1 2022-04-06 11:37:51 +02:00
nilsve
18470299dc
Merge pull request #1 from up201806330/bug-outdated-skia-download
Fixed outdated skia download link in compile step
2022-03-17 13:01:42 +01:00
Rafael Ribeiro
d0cbd4022d Fixed outdated skia download link in compile step 2022-03-16 12:43:58 +00:00
nilsve
df6cf4ddb0
Update README.md 2021-04-16 13:24:13 +02:00
nils
68a9c4cf7d Initial commit 2021-04-16 13:22:50 +02:00
nils
0309364dec Initial commit 2021-04-16 13:19:27 +02:00
nils
1231e4b7f4 Initial commit 2021-04-16 13:15:19 +02:00