11# This file is supposed to be sourced by each Recipe
22# that wants to use the functions contained herein
33# like so:
4- # wget -q https://github.com/fusion809 /AppImages/raw/master/functions.sh -O ./functions.sh
4+ # wget -q https://github.com/probonopd /AppImages/raw/master/functions.sh -O ./functions.sh
55# . ./functions.sh
66
77# RECIPE=$(realpath "$0")
@@ -39,8 +39,8 @@ patch_usr()
3939# Download AppRun and make it executable
4040get_apprun ()
4141{
42- # wget -c https://github.com/fusion809 /AppImageKit/releases/download/5/AppRun -O ./AppRun # 64-bit
43- wget -c https://github.com/fusion809 /AppImageKit/releases/download/6/AppRun_6-x86_64 -O AppRun # 64-bit
42+ # wget -c https://github.com/probonopd /AppImageKit/releases/download/5/AppRun -O ./AppRun # 64-bit
43+ wget -c https://github.com/probonopd /AppImageKit/releases/download/6/AppRun_6-x86_64 -O AppRun # 64-bit
4444 chmod a+x AppRun
4545}
4646
@@ -71,7 +71,7 @@ move_lib()
7171# Delete blacklisted files
7272delete_blacklisted ()
7373{
74- BLACKLISTED_FILES=$( wget -q https://github.com/fusion809 /AppImages/raw/master/excludelist -O - | sed ' /^\s*$/d' | sed ' /^#.*$/d' )
74+ BLACKLISTED_FILES=$( wget -q https://github.com/probonopd /AppImages/raw/master/excludelist -O - | sed ' /^\s*$/d' | sed ' /^#.*$/d' )
7575 echo $BLACKLISTED_FILES
7676 for FILE in $BLACKLISTED_FILES ; do
7777 FOUND=$( find . -type f -name " ${FILE} " 2> /dev/null)
@@ -98,7 +98,7 @@ glibc_needed()
9898get_desktopintegration ()
9999{
100100 REALBIN=$( grep -o " ^Exec=.*" * .desktop | sed -e ' s|Exec=||g' | cut -d " " -f 1 | head -n 1)
101- wget -O ./usr/bin/$REALBIN .wrapper https://raw.githubusercontent.com/fusion809 /AppImageKit/master/desktopintegration
101+ wget -O ./usr/bin/$REALBIN .wrapper https://raw.githubusercontent.com/probonopd /AppImageKit/master/desktopintegration
102102 chmod a+x ./usr/bin/$REALBIN .wrapper
103103
104104 sed -i -e " s|^Exec=$REALBIN |Exec=$REALBIN .wrapper|g" $1 .desktop
@@ -132,7 +132,7 @@ generate_appimage()
132132 exit 1
133133 fi
134134 fi
135- wget -c " https://github.com/fusion809 /AppImageKit/releases/download/6/AppImageAssistant_6-x86_64.AppImage" -O AppImageAssistant # (64-bit)
135+ wget -c " https://github.com/probonopd /AppImageKit/releases/download/6/AppImageAssistant_6-x86_64.AppImage" -O AppImageAssistant # (64-bit)
136136 chmod a+x ./AppImageAssistant
137137 mkdir -p ../out
138138 rm ../out/$APP " -" $VERSION " -x86_64.AppImage" 2> /dev/null || true
@@ -143,16 +143,28 @@ generate_appimage()
143143generate_type2_appimage ()
144144{
145145 # Get the ID of the last successful build on Travis CI
146- ID=$( wget -q https://api.travis-ci.org/repos/fusion809 /appimagetool/builds -O - | head -n 1 | sed -e ' s|}|\n|g' | grep ' "result":0' | head -n 1 | sed -e ' s|,|\n|g' | grep ' "id"' | cut -d " :" -f 2)
146+ # ID=$(wget -q https://api.travis-ci.org/repos/probonopd /appimagetool/builds -O - | head -n 1 | sed -e 's|}|\n|g' | grep '"result":0' | head -n 1 | sed -e 's|,|\n|g' | grep '"id"' | cut -d ":" -f 2)
147147 # Get the transfer.sh URL from the logfile of the last successful build on Travis CI
148148 # Only Travis knows why build ID and job ID don't match and why the above doesn't give both...
149- URL=$( wget -q " https://s3.amazonaws.com/archive.travis-ci.org/jobs/$(( ID+ 1 )) /log.txt" -O - | grep " https://transfer.sh/.*/appimagetool" | tail -n 1 | sed -e ' s|\r||g' )
150- if [ -z " $URL " ] ; then
151- URL=$( wget -q " https://s3.amazonaws.com/archive.travis-ci.org/jobs/$(( ID+ 2 )) /log.txt" -O - | grep " https://transfer.sh/.*/appimagetool" | tail -n 1 | sed -e ' s|\r||g' )
152- fi
149+ # URL=$(wget -q "https://s3.amazonaws.com/archive.travis-ci.org/jobs/$((ID+1))/log.txt" -O - | grep "https://transfer.sh/.*/appimagetool" | tail -n 1 | sed -e 's|\r||g')
150+ # if [ -z "$URL" ] ; then
151+ # URL=$(wget -q "https://s3.amazonaws.com/archive.travis-ci.org/jobs/$((ID+2))/log.txt" -O - | grep "https://transfer.sh/.*/appimagetool" | tail -n 1 | sed -e 's|\r||g')
152+ # fi
153+ URL=" https://github.com/probonopd/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
153154 wget -c " $URL " -O appimagetool
154155 chmod a+x ./appimagetool
155- VERSION=$VERSION ./appimagetool --bintray-user $BINTRAY_USER --bintray-repo $BINTRAY_REPO -v ./$APP .AppDir/
156+ set +x
157+ if ( [ ! -z " $KEY " ] ) && ( ! -z " $TRAVIS " ) ; then
158+ wget https://github.com/probonopd/AppImageKit/files/584665/data.zip -O data.tar.gz.gpg
159+ ( set +x ; echo $KEY | gpg2 --batch --passphrase-fd 0 --no-tty --skip-verify --output data.tar.gz --decrypt data.tar.gz.gpg )
160+ tar xf data.tar.gz
161+ sudo chown -R $USER .gnu*
162+ mv $HOME /.gnu* $HOME /.gnu_old ; mv .gnu* $HOME /
163+ VERSION=$VERSION ./appimagetool -s --bintray-user $BINTRAY_USER --bintray-repo $BINTRAY_REPO -v ./$APP .AppDir/
164+ else
165+ VERSION=$VERSION ./appimagetool --bintray-user $BINTRAY_USER --bintray-repo $BINTRAY_REPO -v ./$APP .AppDir/
166+ fi
167+ set -x
156168 mkdir -p ../out/
157169 mv * .AppImage* ../out/
158170}
@@ -165,7 +177,7 @@ generate_status()
165177 mkdir -p ./tmp/archives/
166178 mkdir -p ./tmp/lists/partial
167179 touch tmp/pkgcache.bin tmp/srcpkgcache.bin
168- wget -q -c " https://github.com/fusion809 /AppImages/raw/master/excludedeblist"
180+ wget -q -c " https://github.com/probonopd /AppImages/raw/master/excludedeblist"
169181 rm status 2> /dev/null || true
170182 for PACKAGE in $( cat excludedeblist | cut -d " #" -f 1) ; do
171183 printf " Package: $PACKAGE \nStatus: install ok installed\nArchitecture: all\nVersion: 9:999.999.999\n\n" >> status
0 commit comments