fix(linux): publish install script with current checksum
This commit is contained in:
parent
8915fca840
commit
aa7d17ca1b
@ -34,6 +34,8 @@ RUN set -eux; \
|
|||||||
cp "$deb" /desktop-artifacts/fieldlens-print-linux-x64.deb; \
|
cp "$deb" /desktop-artifacts/fieldlens-print-linux-x64.deb; \
|
||||||
deb_sha="$(sha256sum /desktop-artifacts/fieldlens-print-linux-x64.deb | awk '{print $1}')"; \
|
deb_sha="$(sha256sum /desktop-artifacts/fieldlens-print-linux-x64.deb | awk '{print $1}')"; \
|
||||||
sha256sum /desktop-artifacts/fieldlens-print-linux-x64.deb > /desktop-artifacts/SHA256SUMS; \
|
sha256sum /desktop-artifacts/fieldlens-print-linux-x64.deb > /desktop-artifacts/SHA256SUMS; \
|
||||||
|
sed -E "s#EXPECTED_SHA256=\"[0-9a-f]{64}\"#EXPECTED_SHA256=\"$deb_sha\"#" downloads/install.sh > /desktop-artifacts/install.sh; \
|
||||||
|
chmod 0755 /desktop-artifacts/install.sh; \
|
||||||
version="$(node -p "require('./package.json').version")"; \
|
version="$(node -p "require('./package.json').version")"; \
|
||||||
printf '{\n "version": "%s",\n "notes": "FieldLens Print desktop update",\n "downloads": {\n "linux-x86_64-deb": {\n "url": "https://fieldlens.arrowstack.dev/downloads/fieldlens-print-linux-x64.deb",\n "sha256": "%s"\n }\n }\n}\n' "$version" "$deb_sha" > /desktop-artifacts/release.json
|
printf '{\n "version": "%s",\n "notes": "FieldLens Print desktop update",\n "downloads": {\n "linux-x86_64-deb": {\n "url": "https://fieldlens.arrowstack.dev/downloads/fieldlens-print-linux-x64.deb",\n "sha256": "%s"\n }\n }\n}\n' "$version" "$deb_sha" > /desktop-artifacts/release.json
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
BASE_URL="${FIELDLENS_DOWNLOAD_BASE_URL:-https://git.arrowstack.dev/Admin/fieldlens-desktop/raw/branch/main/downloads}"
|
BASE_URL="${FIELDLENS_DOWNLOAD_BASE_URL:-https://fieldlens.arrowstack.dev/downloads}"
|
||||||
PACKAGE="fieldlens-print-linux-x64.deb"
|
PACKAGE="fieldlens-print-linux-x64.deb"
|
||||||
EXPECTED_SHA256="f7fa611b12270f8b31cc366bcd6ba47e56f85e95c15419ba6c60893c79c66e76"
|
EXPECTED_SHA256="f7fa611b12270f8b31cc366bcd6ba47e56f85e95c15419ba6c60893c79c66e76"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user