fix(manifest): Attmept at handling library

This commit is contained in:
2025-05-07 01:55:48 +08:00
parent a0506f94a3
commit 5a4239dd9e
2 changed files with 122 additions and 88 deletions

View File

@@ -8,6 +8,8 @@ BUILD_DIR := ${PWD}/build
SRC_DIR := ${PWD}/src
FLATPAK_STATE_DIR := ${PWD}/flatpak-state
FLATPAK_CACHE_DIR := ${PWD}/flatpak-cache
# Whether to use a clean build each time (set to empty to disable)
# CLEAN_BUILD := --force-clean
# --- Main Targets ---
# Default target
@@ -44,7 +46,7 @@ run-flatpak-builder:
-v ${PWD}/com.aseprite.Aseprite.yaml:/build/com.aseprite.Aseprite.yaml:ro \
-w /build \
${IMAGE_NAME} \
sh -c "flatpak-builder --disable-rofiles-fuse --state-dir=/root/.local/share/flatpak-builder --ccache --force-clean build-dir com.aseprite.Aseprite.yaml --repo=repo"
sh -c "flatpak-builder --disable-rofiles-fuse --state-dir=/root/.local/share/flatpak-builder --ccache ${CLEAN_BUILD} build-dir com.aseprite.Aseprite.yaml --repo=repo && if [ -d 'build-dir/files/third_party/externals/emsdk' ]; then rm -rf build-dir/files/third_party/externals/emsdk; fi"
# Create the Flatpak bundle from the repo built in the previous step
.PHONY: create-bundle
@@ -93,3 +95,8 @@ deep-clean: clean
@rm -rf ${FLATPAK_STATE_DIR}
@rm -rf ${FLATPAK_CACHE_DIR}
@echo "Deep cleanup complete."
# Force clean build by setting CLEAN_BUILD variable
.PHONY: force-clean-build
force-clean-build:
@$(MAKE) CLEAN_BUILD="--force-clean" build