build: publish Windows desktop release feed
This commit is contained in:
parent
618ff80e6a
commit
22cc9e3ca1
@ -46,7 +46,11 @@ RUN set -eux; \
|
|||||||
test -n "$deb"; \
|
test -n "$deb"; \
|
||||||
cp "$win" /desktop-artifacts/fieldlens-print-windows-x64-setup.exe; \
|
cp "$win" /desktop-artifacts/fieldlens-print-windows-x64-setup.exe; \
|
||||||
cp "$deb" /desktop-artifacts/fieldlens-print-linux-x64.deb; \
|
cp "$deb" /desktop-artifacts/fieldlens-print-linux-x64.deb; \
|
||||||
sha256sum /desktop-artifacts/* > /desktop-artifacts/SHA256SUMS
|
win_sha="$(sha256sum /desktop-artifacts/fieldlens-print-windows-x64-setup.exe | awk '{print $1}')"; \
|
||||||
|
deb_sha="$(sha256sum /desktop-artifacts/fieldlens-print-linux-x64.deb | awk '{print $1}')"; \
|
||||||
|
sha256sum /desktop-artifacts/fieldlens-print-windows-x64-setup.exe /desktop-artifacts/fieldlens-print-linux-x64.deb > /desktop-artifacts/SHA256SUMS; \
|
||||||
|
version="$(node -p "require('./package.json').version")"; \
|
||||||
|
printf '{\n "version": "%s",\n "notes": "FieldLens Print desktop update",\n "downloads": {\n "windows-x86_64": {\n "url": "https://fieldlens.arrowstack.dev/downloads/fieldlens-print-windows-x64-setup.exe",\n "sha256": "%s"\n },\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" "$win_sha" "$deb_sha" > /desktop-artifacts/release.json
|
||||||
|
|
||||||
FROM nginx:1.27-alpine
|
FROM nginx:1.27-alpine
|
||||||
COPY --from=build /desktop-artifacts /usr/share/nginx/html
|
COPY --from=build /desktop-artifacts /usr/share/nginx/html
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user