add script

This commit is contained in:
link 2022-01-12 11:10:43 +08:00
parent d1c3157248
commit 14036ed116
2 changed files with 20 additions and 1 deletions

View File

@ -18,5 +18,8 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: test - name: test
run: | run: |
chmod +x ./help/action.sh
./help/action.sh
ls ls
pwd cat en_us.json
shell: bash

16
help/achion.sh Normal file
View File

@ -0,0 +1,16 @@
apt install jq
obj="{"
for dir in Apps/*; do
result=$(curl https://raw.githubusercontent.com/IceWhaleTech/CasaOS-AppStore/main/$dir/appfile.json)
tagline=$(echo "$result" | jq .tagline)
title=$(echo "$result" | jq .title)
overview=$(echo "$result" | jq .overview)
#tips=`echo "$result" | jq .tops.before_install[].content`
content="{\"tagline\": ${tagline} , \"overview\":${overview} },"
obj="${obj} ${title} : ${content}"
done
obj=${obj%?}
obj="${obj} }"
data=$(echo "$obj" | jq .)
echo "$data" >en_us.json