I have an application created with Sencha Architect (currently v4.2.1) and ExtJS 6.5.0. This application has about 20 different themes, each with an attached scss resource.

I wanted to automate the building of each theme CSS, so I thought that changing the "theme" property in app.json and doing a "sencha app refresh" followed by a "sencha ant sass" would do the trick.
It works ok most of the time, but sometimes it does not take changes in my themes. Rebuilding the app into Sencha Architect has no effect. I have to manually apply a theme and click this small button in Sencha Architect:

S00085.png

And then my changes are effectively taken into account!

I would like to know what is the difference between this button and the "sencha ant sass" command.
What would be the Sencha Cmd commands equivalent to clicking this button?

You will find below the batch I run in my attempt to build all my themes:

Code:
@ECHO OFF
SETLOCAL EnableDelayedExpansion


IF "%~1" == "" GOTO ALL
GOTO SIMPLE


:ALL
FOR /F "tokens=*" %%L IN ('jq --raw-output ".[] | .name2 + \" \" + .theme" ^< themelist.json') DO (
    
    FOR /F "tokens=1,2" %%a IN ( "%%L" ) DO (
        SET THEME=%%a
        SET ID=%%b
    )


    ECHO Theme courant : !THEME!
    ECHO            ID : !ID!


    jq ".theme=\"!ID!\"" < app.json > app2.json
    DEL app.json
    MOVE app2.json app.json
    
    sencha app refresh
    sencha ant sass


    COPY build\production\GestionInterne\resources\GestionInterne-all_*.css css\
    DEL css\GestionInterne-!THEME!_*.css
    MOVE css\GestionInterne-all_1.css css\GestionInterne-!THEME!_1.css
    MOVE css\GestionInterne-all_2.css css\GestionInterne-!THEME!_2.css
)
GOTO END


:SIMPLE
FOR /F "tokens=*" %%L IN ( 'jq --raw-output ".[] | select(.name2==\"%~1\") | .theme" ^< themelist.json' ) DO (
    SET THEME=%~1
    SET ID=%%L
)


ECHO Theme courant : !THEME!
ECHO            ID : !ID!


jq ".theme=\"!ID!\"" < app.json > app2.json
DEL app.json
MOVE app2.json app.json


sencha app refresh
sencha ant sass


COPY build\production\GestionInterne\resources\GestionInterne-all_*.css css\
DEL css\GestionInterne-!THEME!_*.css
MOVE css\GestionInterne-all_1.css css\GestionInterne-!THEME!_1.css
MOVE css\GestionInterne-all_2.css css\GestionInterne-!THEME!_2.css


GOTO END


:END

And the required themelist.json file:
Code:
[
    {
        "id"   : "8b14fbe5-50bb-486e-a1c1-360c3afdd558",
        "theme": "theme-crisp-8b14fbe5-50bb-486e-a1c1-360c3afdd558",
        "name" : "CGOCrispWhite",
        "name2": "cgocrispwhite"
    },
    {
        "id"   : "ea804d2b-a761-43d3-a3c9-93f35c276fc5",
        "theme": "theme-triton-ea804d2b-a761-43d3-a3c9-93f35c276fc5",
        "name" : "CGOTritonDarkBlue",
        "name2": "cgotritondarkblue"
    },
    {
        "id"   : "ec103876-e981-4700-bcaf-802d834b6b4a",
        "theme": "theme-triton-ec103876-e981-4700-bcaf-802d834b6b4a",
        "name" : "CGOTritonYellow",
        "name2": "cgotritonyellow"
    },
    {
        "id"   : "a757a8ca-0236-41db-aa42-45f21285d3c1",
        "theme": "theme-triton-a757a8ca-0236-41db-aa42-45f21285d3c1",
        "name" : "CGOTritonRed",
        "name2": "cgotritonred"
    },
    {
        "id"   : "076c1ae3-04a0-477c-ac1d-f9e0757006e5",
        "theme": "theme-triton-076c1ae3-04a0-477c-ac1d-f9e0757006e5",
        "name" : "CGOTritonGreen",
        "name2": "cgotritongreen"
    },
    {
        "id"   : "0bd64722-006e-4463-a02d-85e403e5b53f",
        "theme": "theme-triton-0bd64722-006e-4463-a02d-85e403e5b53f",
        "name" : "CGOTritonBlue",
        "name2": "cgotritonblue"
    },
    {
        "id"   : "75cbbe39-333b-467e-81e3-0ee011f3c81c",
        "theme": "theme-aria-75cbbe39-333b-467e-81e3-0ee011f3c81c",
        "name" : "CGOContrast",
        "name2": "cgocontrast"
    },
    {
        "id"   : "108c8c3c-f024-48aa-934b-104bb28f6fb6",
        "theme": "theme-neptune-108c8c3c-f024-48aa-934b-104bb28f6fb6",
        "name" : "CGONeptuneGray",
        "name2": "cgoneptunegray"
    },
    {
        "id"   : "21a9af74-0fa6-43cc-8b79-2e7ec74885bd",
        "theme": "theme-neptune-21a9af74-0fa6-43cc-8b79-2e7ec74885bd",
        "name" : "CGONeptunePurple",
        "name2": "cgoneptunepurple"
    },
    {
        "id"   : "00ee47e4-0c0e-4f38-935c-83f278671877",
        "theme": "theme-neptune-00ee47e4-0c0e-4f38-935c-83f278671877",
        "name" : "CGONeptuneYellow",
        "name2": "cgoneptuneyellow"
    },
    {
        "id"   : "fe3bc81e-feda-4b99-84cf-28345337ff30",
        "theme": "theme-neptune-fe3bc81e-feda-4b99-84cf-28345337ff30",
        "name" : "CGONeptuneGreen",
        "name2": "cgoneptunegreen"
    },
    {
        "id"   : "8162e6cd-a604-466e-a5b0-8defd2ac5d75",
        "theme": "theme-neptune-8162e6cd-a604-466e-a5b0-8defd2ac5d75",
        "name" : "CGONeptuneRed",
        "name2": "cgoneptunered"
    },
    {
        "id"   : "80a44274-cdf4-4972-a7d3-4d86768ae9b9",
        "theme": "theme-neptune-80a44274-cdf4-4972-a7d3-4d86768ae9b9",
        "name" : "CGONeptuneBlue",
        "name2": "cgoneptuneblue"
    },
    {
        "id"   : "3e5fe652-32b6-4263-b991-8c4cb5655fb5",
        "theme": "theme-gray-3e5fe652-32b6-4263-b991-8c4cb5655fb5",
        "name" : "CGOClassicGray",
        "name2": "cgoclassicgray"
    },
    {
        "id"   : "f4fe0326-ecc2-4569-a9ff-2cfb12cf4bf2",
        "theme": "theme-classic-f4fe0326-ecc2-4569-a9ff-2cfb12cf4bf2",
        "name" : "CGOClassicPurple",
        "name2": "cgoclassicpurple"
    },
    {
        "id"   : "cf6acda0-6635-4d13-88e5-6f827e435d5e",
        "theme": "theme-classic-cf6acda0-6635-4d13-88e5-6f827e435d5e",
        "name" : "CGOClassicYellow",
        "name2": "cgoclassicyellow"
    },
    {
        "id"   : "2cd57ced-de8b-42ac-91b1-5c3ea2291773",
        "theme": "theme-classic-2cd57ced-de8b-42ac-91b1-5c3ea2291773",
        "name" : "CGOClassicGreen",
        "name2": "cgoclassicgreen"
    },
    {
        "id"   : "5a57cec9-edb7-4f00-8343-ee2ca2708412",
        "theme": "theme-classic-5a57cec9-edb7-4f00-8343-ee2ca2708412",
        "name" : "CGOClassicRed",
        "name2": "cgoclassicred"
    },
    {
        "id"   : "296ee59d-dddd-4014-a331-f6c4a777ca3f",
        "theme": "theme-classic-296ee59d-dddd-4014-a331-f6c4a777ca3f",
        "name" : "CGOClassicBlue",
        "name2": "cgoclassicblue"
    }
]