From 6d5bd673a4ca8180451730a3858950c1d8ba2604 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Tue, 10 Mar 2026 02:18:26 +0000 Subject: [PATCH] add compress tasks to Taskfile.dynamic --- Taskfile.azure.yml | 2 -- Taskfile.dynamic.yml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/Taskfile.azure.yml b/Taskfile.azure.yml index 4fa6d9f..b252520 100644 --- a/Taskfile.azure.yml +++ b/Taskfile.azure.yml @@ -13,13 +13,11 @@ tasks: cmd: poetry run pyinstaller --noconfirm --distpath dist/{{.ITEM.THEME}}-{{.ITEM.KIND}} spec/azure/{{.ITEM.THEME}}-{{.ITEM.KIND}}.spec rewrite: - #internal: true desc: Run the source code rewriter cmds: - poetry run python tools/rewriter.py --rewrite --theme {{.THEME}} restore: - #internal: true desc: Restore the backup files cmds: - poetry run python tools/rewriter.py --restore diff --git a/Taskfile.dynamic.yml b/Taskfile.dynamic.yml index 8796c86..b433ca2 100644 --- a/Taskfile.dynamic.yml +++ b/Taskfile.dynamic.yml @@ -33,6 +33,42 @@ tasks: cmds: - poetry run python tools/dynamic_builder.py sunvalley + compress: + desc: Compress artifacts for specified theme + cmds: + - task: compress-{{.THEME}} + + compress-all: + desc: Compress artifacts for all themes + cmds: + - for: + matrix: + THEME: [azure, forest, sunvalley] + task: compress-{{.ITEM.THEME}} + + compress-azure: + cmds: + - for: + matrix: + KIND: [basic, banana, potato] + VARIANT: [azure-light, azure-dark] + cmd: '{{.SHELL}} -Command "Compress-Archive -Path dist/{{.ITEM.VARIANT}}-{{.ITEM.KIND}} -DestinationPath dist/{{.ITEM.VARIANT}}-{{.ITEM.KIND}}.zip -Force"' + + compress-forest: + cmds: + - for: + matrix: + KIND: [basic, banana, potato] + VARIANT: [forest-light, forest-dark] + cmd: '{{.SHELL}} -Command "Compress-Archive -Path dist/{{.ITEM.VARIANT}}-{{.ITEM.KIND}} -DestinationPath dist/{{.ITEM.VARIANT}}-{{.ITEM.KIND}}.zip -Force"' + + compress-sunvalley: + cmds: + - for: + matrix: + KIND: [basic, banana, potato] + cmd: '{{.SHELL}} -Command "Compress-Archive -Path dist/sunvalley-{{.ITEM.KIND}} -DestinationPath dist/sunvalley-{{.ITEM.KIND}}.zip -Force"' + clean: desc: Clean all build artifacts cmds: