From a9483e2038fd3373636525af6a5eb4aee6ba3f49 Mon Sep 17 00:00:00 2001 From: Christiaan Goossens <9487666+christiaangoossens@users.noreply.github.com> Date: Tue, 14 Apr 2026 14:42:13 +0200 Subject: [PATCH] Change build script to align with HACS (#245) * Change build script to align with HACS * Fix path typo --- scripts/build | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/scripts/build b/scripts/build index 923cfd1..80158e8 100755 --- a/scripts/build +++ b/scripts/build @@ -4,17 +4,7 @@ npm install --frozen-lockfile npm run css -# Copy only the required files for zip -mkdir -p tmp_build -cp -r custom_components tmp_build/ -cp hacs.json tmp_build/ -cp LICENSE.md tmp_build/ -cp pyproject.toml tmp_build/ -cp README.md tmp_build/ - -# Create zip from the tmp_build directory -cd tmp_build -zip -r ../hass-oidc-auth.zip ./* - -cd .. -rm -rf tmp_build \ No newline at end of file +# Create zip from the custom_components/auth_oidc directory +# HACS wants only the contents of this dir in a zip +cd custom_components/auth_oidc/ +zip -r ../../hass-oidc-auth.zip ./* \ No newline at end of file