├── .travis.yml ├── README.md ├── .gitignore ├── LICENSE └── radar.sh /.travis.yml: -------------------------------------------------------------------------------- 1 | language: bash 2 | 3 | script: 4 | - bash radar.sh 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AppImageRadar [![Build Status](https://travis-ci.org/AppImage/AppImageRadar.svg?branch=master)](https://travis-ci.org/AppImage/AppImageRadar) 2 | 3 | Bash scripts to help quickly see what is going on in the AppImage world on GitHub: 4 | 5 | * Which projects are using AppImage? 6 | * Which projects mention AppImage but do not publish ones on GitHub Releases yet? 7 | etc. 8 | 9 | The output will be written to the Travis CI build log. This is mainly meant for internal consumption by the AppImage development team. 10 | 11 | In addition, may want to use https://www.google.com/search?q=filetype:AppImage&tbs=qdr:m&filter=0&biw=1000 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Object files 5 | *.o 6 | *.ko 7 | *.obj 8 | *.elf 9 | 10 | # Linker output 11 | *.ilk 12 | *.map 13 | *.exp 14 | 15 | # Precompiled Headers 16 | *.gch 17 | *.pch 18 | 19 | # Libraries 20 | *.lib 21 | *.a 22 | *.la 23 | *.lo 24 | 25 | # Shared objects (inc. Windows DLLs) 26 | *.dll 27 | *.so 28 | *.so.* 29 | *.dylib 30 | 31 | # Executables 32 | *.exe 33 | *.out 34 | *.app 35 | *.i*86 36 | *.x86_64 37 | *.hex 38 | 39 | # Debug files 40 | *.dSYM/ 41 | *.su 42 | *.idb 43 | *.pdb 44 | 45 | # Kernel Module Compile Results 46 | *.mod* 47 | *.cmd 48 | .tmp_versions/ 49 | modules.order 50 | Module.symvers 51 | Mkfile.old 52 | dkms.conf 53 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /radar.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if [ -z "$GITHUB_TOKEN" ] ; then 4 | echo "\$GITHUB_TOKEN missing, please set it in the Travis CI settings of this project" 5 | echo "You can get one from https://github.com/settings/tokens" 6 | exit 1 7 | fi 8 | 9 | # rm repos.json 10 | curl -s -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/search/code?sort=indexed&q=linuxdeployqt&page=1&per_page=100" > repos.json 11 | curl -s -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/search/code?sort=indexed&q=AppImageKit&page=1&per_page=100" >> repos.json 12 | # Find projects that have AppImage mentioned in their package.json 13 | # since these possibly might offer an AppImage for download 14 | for i in $(seq 1 5) ; do 15 | curl -s -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/search/code?sort=indexed&q=appimage+filename:package.json&page=$i&per_page=100" >> repos.json 16 | done 17 | 18 | # Check whether the identified projects offer an 64-bit AppImage for download on GitHub Releases 19 | # --> if yes, check whether the project is already mentioned on AppImageHub 20 | # --> if no, report it (or even create a PR for it) 21 | # --> if no, check project's GitHub Issues for AppImage 22 | # --> if none exists, print URL to open one (or even open one) 23 | 24 | RELEASES=$(cat repos.json | grep releases | cut -d '"' -f 4 | cut -d '{' -f 1) 25 | 26 | for RELEASE in $RELEASES; do 27 | # echo $RELEASE 28 | APPIMAGES=$(curl -s -H "Authorization: token $GITHUB_TOKEN" $RELEASE | grep browser_download_url | grep -i '\.AppImage"' | grep 64 | cut -d '"' -f 4) 29 | APPIMAGE=$(echo "$APPIMAGES" | cut -d " " -f 1) 30 | SLUG=$(echo "$RELEASE" | cut -d "/" -f 5-6) 31 | if [ ! -z "$APPIMAGE" ] ; then 32 | # echo $APPIMAGE # https://github.com/icewolfz/jiMUD/releases/download/0.4.28/jimud-0.4.28-x86_64.AppImage 33 | # Find out whether we have ANYTHING (code, PR, issue) in AppImageHub 34 | APPNAME=$(echo "$APPIMAGE" | cut -d "/" -f 9 | cut -d "_" -f 1 | cut -d "-" -f 1) 35 | CODE=$(curl -s -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/search/code?q=$APPNAME+repo:AppImage/appimage.github.io" | grep total_count | cut -d : -f 2 | cut -d " " -f 2 | cut -d "," -f 1) 36 | ISSUES=$(curl -s -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/search/issues?q=$APPNAME+repo:AppImage/appimage.github.io" | grep total_count | cut -d : -f 2 | cut -d " " -f 2 | cut -d "," -f 1) 37 | # echo "# In AppImageHub: Code: $CODE, Issues: $ISSUES" 38 | if [ "$CODE" == "0" ] && [ "$ISSUES" == "0" ] ; then 39 | REPO=$(echo $APPIMAGE | cut -d "/" -f 1-5) 40 | echo "$REPO" 41 | fi 42 | else 43 | # The project does not offer an AppImage for download 44 | # Find out whether we have a PR or issue in the project 45 | APPNAME=$(echo "$APPIMAGE" | cut -d "/" -f 9 | cut -d "_" -f 1 | cut -d "-" -f 1) 46 | ISSUES=$(curl -s -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/search/issues?q=AppImage+repo:$SLUG" | grep total_count | cut -d : -f 2 | cut -d " " -f 2 | cut -d "," -f 1) 47 | # echo "# In $SLUG: Code: $CODE, Issues: $ISSUES" 48 | STARS=$(curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/$SLUG | grep stargazers_count | cut -d : -f 2 | cut -d " " -f 2 | cut -d "," -f 1 | head -n 1) 49 | if [ $STARS -gt 1 ] ; then 50 | if [ "$ISSUES" == "0" ] ; then 51 | echo "https://github.com/$SLUG/issues/new # ($STARS stars)" 52 | else 53 | echo "https://github.com/$SLUG/search?q=AppImage&type=Issues # ($STARS stars)" 54 | fi 55 | else 56 | echo "# No AppImage but skipping https://github.com/$SLUG due to low star count ($STARS stars)" 57 | fi 58 | fi 59 | done 60 | --------------------------------------------------------------------------------