Change build script to align with HACS (#245)
* Change build script to align with HACS * Fix path typo
This commit is contained in:
committed by
GitHub
parent
6f1d2bcb3f
commit
a9483e2038
@@ -4,17 +4,7 @@
|
|||||||
npm install --frozen-lockfile
|
npm install --frozen-lockfile
|
||||||
npm run css
|
npm run css
|
||||||
|
|
||||||
# Copy only the required files for zip
|
# Create zip from the custom_components/auth_oidc directory
|
||||||
mkdir -p tmp_build
|
# HACS wants only the contents of this dir in a zip
|
||||||
cp -r custom_components tmp_build/
|
cd custom_components/auth_oidc/
|
||||||
cp hacs.json tmp_build/
|
zip -r ../../hass-oidc-auth.zip ./*
|
||||||
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
|
|
||||||
Reference in New Issue
Block a user