add script
This commit is contained in:
parent
d1c3157248
commit
14036ed116
|
@ -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
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue