mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Fix explorer scripts for the explorer/ location
This commit is contained in:
@@ -11,5 +11,3 @@ radicle-httpd/target
|
||||
radicle-search/target
|
||||
target
|
||||
.wrangler
|
||||
# The desktop app, with its own node_modules and target, isn't part of these images.
|
||||
desktop
|
||||
|
||||
@@ -34,7 +34,7 @@ main() {
|
||||
keypath="$(rad path)/keys/radicle.pub"
|
||||
version="$("$(dirname "$0")/version")"
|
||||
image=radicle-build-$version
|
||||
rust_version="$(cat "$(git rev-parse --show-toplevel)/rust-toolchain")"
|
||||
rust_version="$(cat "$(dirname "$0")/../../../rust-toolchain")"
|
||||
|
||||
if [ ! -f "$keypath" ]; then
|
||||
echo "fatal: no key found at $keypath" >&2
|
||||
@@ -45,8 +45,8 @@ main() {
|
||||
|
||||
echo "Building Radicle $version.."
|
||||
echo "Creating archive of repository at $rev in $gitarchive.."
|
||||
# desktop/ is a separate project and not part of the build.
|
||||
git archive --format tar.gz -o "$gitarchive" HEAD -- ':(exclude)desktop'
|
||||
# Only explorer/ is part of the build, with paths relative to it.
|
||||
git archive --format tar.gz -o "$gitarchive" HEAD:explorer
|
||||
|
||||
echo "Building image ($image).."
|
||||
|
||||
|
||||
@@ -8,7 +8,5 @@ npx svelte-check --tsconfig tsconfig.json --config ./vite.config.ts --fail-on-wa
|
||||
# CI can then carry them between builds. They share one directory because a
|
||||
# Buildkite cache path is always a directory, never a file.
|
||||
mkdir -p .lintcache
|
||||
# desktop/ has its own eslint config, which eslint would otherwise pick up for
|
||||
# its files. It is linted by desktop/scripts/check-js.
|
||||
npx eslint --cache --cache-location .lintcache/eslint --cache-strategy content --max-warnings 0 --ignore-pattern desktop/ .
|
||||
npx eslint --cache --cache-location .lintcache/eslint --cache-strategy content --max-warnings 0 .
|
||||
npx prettier "**/*.@(ts|js|svelte|json|css|html|yml)" --ignore-path .gitignore --ignore-path .prettierignore --check --cache --cache-location .lintcache/prettier
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || echo "$PWD")
|
||||
REPO_ROOT=$(cd "$(dirname "$0")/.." && pwd)
|
||||
RELEASE=$(cat "$REPO_ROOT/tests/support/heartwood-release")
|
||||
HTTPD_RELEASE=$(cat "$REPO_ROOT/tests/support/radicle-httpd-release")
|
||||
ARTIFACT_RELEASE=$(cat "$REPO_ROOT/tests/support/radicle-artifact-release")
|
||||
|
||||
@@ -31,14 +31,7 @@ done
|
||||
# Heartwood repo id
|
||||
rid=z3gqcJUoA1n9HaHKufZs5FCSGazv5
|
||||
|
||||
# Some root detection guess work...
|
||||
root=$(git rev-parse --show-toplevel 2>/dev/null || echo "$PWD")
|
||||
if [ ! -e "$root/tests/support/heartwood-release" ]; then
|
||||
root=$(
|
||||
cd ..
|
||||
pwd
|
||||
)
|
||||
fi
|
||||
root=$(cd "$(dirname "$0")/.." && pwd)
|
||||
|
||||
if [ -z "$release" ]; then
|
||||
# No release given, take from heartwood-release
|
||||
@@ -67,7 +60,7 @@ if [ -e "$root/flake.nix" ]; then
|
||||
sed -E -e '/npmDepsHash/s#".*"#"'"$npmDepsHash"'"#' "$root/flake.nix" >$root/flake.nix.tmp
|
||||
mv "$root/flake.nix.tmp" "$root/flake.nix"
|
||||
|
||||
nix --experimental-features 'nix-command flakes' flake update --flake git+file://"$root"
|
||||
nix --experimental-features 'nix-command flakes' flake update --flake "$root"
|
||||
else
|
||||
printf >&2 'Node dependencies may be out of date!
|
||||
Re-run on a nix-enabled system to update npmDepsHash.\n'
|
||||
|
||||
Reference in New Issue
Block a user