Skip to content

Commit f4ad59a

Browse files
author
Candle - the privacy friendly smart home
authored
Add files via upload
1 parent e3a0e87 commit f4ad59a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@
103103
}
104104
},
105105
"short_name": "MySensors",
106-
"version": "1.3.0"
106+
"version": "1.3.1"
107107
}

package.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
#!/bin/bash -e
22

3+
python3 -m pip install --upgrade pip
4+
35
version=$(grep '"version"' manifest.json | cut -d: -f2 | cut -d\" -f2)
46

57
# Setup environment for building inside Dockerized toolchain
68
[ $(id -u) = 0 ] && umask 0
79

810
# Clean up from previous releases
11+
echo "removing old files"
912
rm -rf *.tgz *.sha256sum package SHA256SUMS lib
1013

1114
if [ -z "${ADDON_ARCH}" ]; then
@@ -16,9 +19,9 @@ else
1619
fi
1720

1821

19-
2022
# Prep new package
21-
mkdir lib package
23+
echo "creating package"
24+
mkdir -p lib package
2225

2326
# Pull down Python dependencies
2427
pip3 install -r requirements.txt -t lib --no-binary :all: --prefix ""
@@ -41,6 +44,7 @@ echo "creating archive"
4144
TARFILE="mysensors-adapter-${version}${TARFILE_SUFFIX}.tgz"
4245
tar czf ${TARFILE} package
4346

47+
echo "creating shasums"
4448
shasum --algorithm 256 ${TARFILE} > ${TARFILE}.sha256sum
4549
cat ${TARFILE}.sha256sum
4650
#sha256sum ${TARFILE}

0 commit comments

Comments
 (0)