Commit d21bce31 authored by Mickaël Desfrênes's avatar Mickaël Desfrênes
Browse files

max 0.0.3 compat

parent 723acb66
Loading
Loading
Loading
Loading
+18 −2
Original line number Diff line number Diff line
@@ -13,15 +13,31 @@ clean:
	rm -rf build
.PHONY:clean

build:locales  ## construire le paquet
build:locales  ## construire les paquets pour pypi
	rm -rf dist
	rm -rf build
	uv build
.PHONY:build

publish:build ## distribuer le paquet sur pypi
	uv publish
.PHONY:publish

macos:locales  ## construire le paquet pour MacOS
	rm -rf dist
	rm -rf build
	uv run pyinstaller src/climax.py --strip --noconfirm --collect-submodules shellingham --collect-submodules urllib
	mkdir dist/climax/_internal/climax
	mkdir dist/climax/_internal/climax/locales
	cp -r src/climax/locales/* dist/climax/_internal/climax/locales/
	cp src/env dist/climax/env
	tar -cvzf dist/climax-macos_arm.tar.gz -C dist/climax .
.PHONY:macos

macosinstall:macos  ## installer le paquet macos localement
	mkdir -p "${HOME}/.climax/"
	cp -r dist/climax/* "${HOME}/.climax/"
.PHONY:build
.PHONY:macosinstall

format: ## Formatage des sources avec Black
	uv run ruff check --fix ./src/
+1 −1
Original line number Diff line number Diff line
[project]
name = "climax-CERTIC"
version = "0.1.13"
version = "0.1.14"
description = "CLI tool for MaX, Le Moteur d'Affichage XML."
readme = "README.md"
license = {text = "CECILL-C"}
+4 −17
Original line number Diff line number Diff line
@@ -465,26 +465,13 @@ def demo():
                Path(cur_dir, ".max", "basex", "data", "max"),
                dirs_exist_ok=True,
            )

            shutil.copytree(
                Path(tmp_max_release_dir, "fixtures", "content_html"),
                Path(cur_dir, "content_html"),
                dirs_exist_ok=True,
            )
            shutil.copytree(
                Path(tmp_max_release_dir, "fixtures", "templates"),
                Path(cur_dir, "templates"),
                dirs_exist_ok=True,
            )
            shutil.copytree(
                Path(tmp_max_release_dir, "fixtures", "autoroute"),
                Path(cur_dir, "autoroute"),
                Path(tmp_max_release_dir, "fixtures"),
                Path(cur_dir),
                dirs_exist_ok=True,
            )

            shutil.copy(
                Path(tmp_max_release_dir, "fixtures", "config.xml"),
                Path(cur_dir, "config.xml"),
            )
            shutil.rmtree(Path(cur_dir, "max"), ignore_errors=True)
            _sync_max_instance(cur_dir, verbose=False)

        print("[green]" + _("édition de démonstration installée") + "[/green]")