diff --git a/.github/workflows/i18n.yml b/.github/workflows/i18n.yml index cade4db..87fffcb 100644 --- a/.github/workflows/i18n.yml +++ b/.github/workflows/i18n.yml @@ -18,5 +18,8 @@ jobs: fetch-depth: 0 - name: test run: | + chmod +x ./help/action.sh + ./help/action.sh ls - pwd \ No newline at end of file + cat en_us.json + shell: bash diff --git a/help/achion.sh b/help/achion.sh new file mode 100644 index 0000000..79834b2 --- /dev/null +++ b/help/achion.sh @@ -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