fix scpt
This commit is contained in:
		
							
								
								
									
										15
									
								
								install.zsh
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								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 | ||||
|  | ||||
|   | ||||
| @@ -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() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user