mirror of
https://github.com/coracle-social/flotilla.git
synced 2025-12-10 19:07:06 +00:00
Upload sourcemaps by hash
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
"build": "./build.sh",
|
"build": "./build.sh",
|
||||||
"sourcemaps": "sentry-cli --url https://glitchtip.coracle.social --auth-token $GLITCHTIP_AUTH_TOKEN --api-key $VITE_GLITCHTIP_API_KEY sourcemaps --org coracle --project flotilla --release $(cat package.json|jq -r '.version') upload --url-prefix /_app/immutable/ build/_app/immutable",
|
"sourcemaps": "./sourcemaps.sh",
|
||||||
"release:android": "cap build android --androidreleasetype APK --signing-type apksigner",
|
"release:android": "cap build android --androidreleasetype APK --signing-type apksigner",
|
||||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
||||||
|
|||||||
15
sourcemaps.sh
Executable file
15
sourcemaps.sh
Executable file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
hash=$(find build -type f -print0 | sort -z | xargs -0 sha1sum | sha1sum | awk '{print $1}')
|
||||||
|
|
||||||
|
sentry-cli \
|
||||||
|
--url https://glitchtip.coracle.social \
|
||||||
|
--auth-token $GLITCHTIP_AUTH_TOKEN \
|
||||||
|
--api-key $VITE_GLITCHTIP_API_KEY \
|
||||||
|
sourcemaps \
|
||||||
|
--org coracle \
|
||||||
|
--project flotilla \
|
||||||
|
--release $hash \
|
||||||
|
upload \
|
||||||
|
--url-prefix /_app/immutable/ \
|
||||||
|
build/_app/immutable
|
||||||
Reference in New Issue
Block a user