From d3842ef3cd405de4d0a4680deac23e61baec2905 Mon Sep 17 00:00:00 2001 From: syui Date: Fri, 27 Dec 2024 22:49:32 +0900 Subject: [PATCH] fix scpt --- install.zsh | 15 +++++++++------ scpt/src/func.zsh | 5 +++++ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/install.zsh b/install.zsh index db88ae2..18ad070 100755 --- a/install.zsh +++ b/install.zsh @@ -58,16 +58,20 @@ function web-write() { grep -R bsky.social .|cut -d : -f 1|sort -u|xargs sed -i "s/bsky.social/syu.is/g" grep -R bsky.app .|cut -d : -f 1|sort -u|xargs sed -i "s/bsky.app/web.syu.is/g" grep -R public.api.syu.is ./lib/constants.ts | cut -d : -f 1|sort -u|xargs sed -i "s/public.api/bsky/g" - f=$dt/view/icons/Logotype.tsx o=$d/icons/Logotype.tsx cp -rf $o $f - #curl -sL https://raw.githubusercontent.com/bluesky-social/social-app/refs/heads/main/src/view/com/util/UserAvatar.tsx -o $f f=$dt/view/com/util/UserAvatar.tsx - sed -i $t "s#/img/avatar/plain/#https://cdn.bsky.app/img/avatar/plain/#g" $f - sed -i $t "s#/img/avatar_thumbnail/plain/#https://bsky.syu.is/img/avatar/plain/#g" $f - sed -i $t "s#source={{uri: avatar}}#source={{ uri: hackModifyThumbnailPath(avatar, 1 > 0), }}#g" $f + curl -sL https://raw.githubusercontent.com/bluesky-social/social-app/refs/heads/main/src/view/com/util/UserAvatar.tsx -o $f + sed -i "s#/img/avatar/plain/#https://cdn.bsky.app/img/avatar/plain/#g" $f + sed -i "s#/img/avatar_thumbnail/plain/#https://bsky.syu.is/img/avatar/plain/#g" $f + sed -i "s#source={{uri: avatar}}#source={{ uri: hackModifyThumbnailPath(avatar, 1 > 0), }}#g" $f + + did_bskyadmin=did:plc:z72i7hdynmk6r22z27h6tvur + # curl -sL "syu.is/xrpc/com.atproto.repo.describeRepo?repo=ai.syu.is" |jq -r .did + did_ai=did:plc:6qyecktefllvenje24fcxnie + grep -R $did_bskyadmin .|cut -d : -f 1|sort -u|xargs sed -i "s/$did_bskyadmin/$did_ai/g" } run-env @@ -80,4 +84,3 @@ case $1 in web-write ;; esac - diff --git a/scpt/src/func.zsh b/scpt/src/func.zsh index de0df9c..1bcdb83 100644 --- a/scpt/src/func.zsh +++ b/scpt/src/func.zsh @@ -27,7 +27,12 @@ function at-unset() { } function at-version() { + latest=`curl -sL https://raw.githubusercontent.com/bluesky-social/atproto/refs/heads/main/packages/pds/package.json |jq -r .version` + echo latest: $latest + echo $host curl -sL ${host}/xrpc/_health |jq . + echo syu.is + curl -sL syu.is/xrpc/_health |jq . } function at-uri() {