Skip to content

Commit

Permalink
Bringing changes to excludeblist, excludelist and functions.sh downst…
Browse files Browse the repository at this point in the history
…ream
  • Loading branch information
fusion809 committed Nov 16, 2016
1 parent 73d71e2 commit 3c443cc
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 15 deletions.
5 changes: 4 additions & 1 deletion excludedeblist
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# of these packages than what can safely be assumed to be part
# of the base system. This is why we recommend oldstable
# ingredients for AppImages
apt
apt-transport-https
dbus
debconf
Expand All @@ -17,6 +18,7 @@ fontconfig-config
# gconf2 # elementary OS 0.4 Loki does NOT have libgconf-2-4
# gconf2-common # elementary OS 0.4 Loki does NOT have libgconf-2-4
# gconf-service # elementary OS 0.4 Loki does NOT have libgconf-2-4
gvfs-backends # e.g., for Bluefish
gksu
glib-networking
gstreamer1.0-plugins-base
Expand Down Expand Up @@ -51,7 +53,7 @@ libglu1-mesa
# libgnutls26 cannot be expected to be eveywhere, e.g., KDE neon
# libgpg-error0 gives non-fatal errors on many systems and is low-level, can it be expected to be everywhere?
libgpg-error0
___libgstreamer1.0-0
# libgstreamer1.0-0
libgtk2.0-0
libgtk-3-0
libnss3
Expand All @@ -63,6 +65,7 @@ libstdc++6
libtasn1-6
libwayland-egl1-mesa # e.g., OpenRA
lsb-base
libxcb1 # Workaround for: Fedora 25: undefined symbol: xcb_send_request_with_fds, https://github.com/probonopd/AppImages/issues/128
mime-support
passwd
udev
Expand Down
8 changes: 7 additions & 1 deletion excludelist
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ libkrb5.so.3
libkrb5support.so.0
libm.so.6
libp11-kit.so.0
libpcre.so.3
# libpcre.so.3 # Missing on Fedora 24
libpthread.so.0
libresolv.so.2
libroken.so.18
Expand Down Expand Up @@ -136,3 +136,9 @@ libgpg-error.so.0
# https://github.com/probonopd/linuxdeployqt/issues/35#issuecomment-256213517
# and https://github.com/probonopd/AppImages/pull/114
# libnss3.so

# Workaround for:
# Fedora 25:
# undefined symbol: xcb_send_request_with_fds
# https://github.com/probonopd/AppImages/issues/128
libxcb.so.1
38 changes: 25 additions & 13 deletions functions.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is supposed to be sourced by each Recipe
# that wants to use the functions contained herein
# like so:
# wget -q https://github.com/fusion809/AppImages/raw/master/functions.sh -O ./functions.sh
# wget -q https://github.com/probonopd/AppImages/raw/master/functions.sh -O ./functions.sh
# . ./functions.sh

# RECIPE=$(realpath "$0")
Expand Down Expand Up @@ -39,8 +39,8 @@ patch_usr()
# Download AppRun and make it executable
get_apprun()
{
# wget -c https://github.com/fusion809/AppImageKit/releases/download/5/AppRun -O ./AppRun # 64-bit
wget -c https://github.com/fusion809/AppImageKit/releases/download/6/AppRun_6-x86_64 -O AppRun # 64-bit
# wget -c https://github.com/probonopd/AppImageKit/releases/download/5/AppRun -O ./AppRun # 64-bit
wget -c https://github.com/probonopd/AppImageKit/releases/download/6/AppRun_6-x86_64 -O AppRun # 64-bit
chmod a+x AppRun
}

Expand Down Expand Up @@ -71,7 +71,7 @@ move_lib()
# Delete blacklisted files
delete_blacklisted()
{
BLACKLISTED_FILES=$(wget -q https://github.com/fusion809/AppImages/raw/master/excludelist -O - | sed '/^\s*$/d' | sed '/^#.*$/d')
BLACKLISTED_FILES=$(wget -q https://github.com/probonopd/AppImages/raw/master/excludelist -O - | sed '/^\s*$/d' | sed '/^#.*$/d')
echo $BLACKLISTED_FILES
for FILE in $BLACKLISTED_FILES ; do
FOUND=$(find . -type f -name "${FILE}" 2>/dev/null)
Expand All @@ -98,7 +98,7 @@ glibc_needed()
get_desktopintegration()
{
REALBIN=$(grep -o "^Exec=.*" *.desktop | sed -e 's|Exec=||g' | cut -d " " -f 1 | head -n 1)
wget -O ./usr/bin/$REALBIN.wrapper https://raw.githubusercontent.com/fusion809/AppImageKit/master/desktopintegration
wget -O ./usr/bin/$REALBIN.wrapper https://raw.githubusercontent.com/probonopd/AppImageKit/master/desktopintegration
chmod a+x ./usr/bin/$REALBIN.wrapper

sed -i -e "s|^Exec=$REALBIN|Exec=$REALBIN.wrapper|g" $1.desktop
Expand Down Expand Up @@ -132,7 +132,7 @@ generate_appimage()
exit 1
fi
fi
wget -c "https://github.com/fusion809/AppImageKit/releases/download/6/AppImageAssistant_6-x86_64.AppImage" -O AppImageAssistant # (64-bit)
wget -c "https://github.com/probonopd/AppImageKit/releases/download/6/AppImageAssistant_6-x86_64.AppImage" -O AppImageAssistant # (64-bit)
chmod a+x ./AppImageAssistant
mkdir -p ../out
rm ../out/$APP"-"$VERSION"-x86_64.AppImage" 2>/dev/null || true
Expand All @@ -143,16 +143,28 @@ generate_appimage()
generate_type2_appimage()
{
# Get the ID of the last successful build on Travis CI
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)
# 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)
# Get the transfer.sh URL from the logfile of the last successful build on Travis CI
# Only Travis knows why build ID and job ID don't match and why the above doesn't give both...
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')
if [ -z "$URL" ] ; then
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')
fi
# 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')
# if [ -z "$URL" ] ; then
# 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')
# fi
URL="https://github.com/probonopd/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
wget -c "$URL" -O appimagetool
chmod a+x ./appimagetool
VERSION=$VERSION ./appimagetool --bintray-user $BINTRAY_USER --bintray-repo $BINTRAY_REPO -v ./$APP.AppDir/
set +x
if ( [ ! -z "$KEY" ] ) && ( ! -z "$TRAVIS" ) ; then
wget https://github.com/probonopd/AppImageKit/files/584665/data.zip -O data.tar.gz.gpg
( set +x ; echo $KEY | gpg2 --batch --passphrase-fd 0 --no-tty --skip-verify --output data.tar.gz --decrypt data.tar.gz.gpg )
tar xf data.tar.gz
sudo chown -R $USER .gnu*
mv $HOME/.gnu* $HOME/.gnu_old ; mv .gnu* $HOME/
VERSION=$VERSION ./appimagetool -s --bintray-user $BINTRAY_USER --bintray-repo $BINTRAY_REPO -v ./$APP.AppDir/
else
VERSION=$VERSION ./appimagetool --bintray-user $BINTRAY_USER --bintray-repo $BINTRAY_REPO -v ./$APP.AppDir/
fi
set -x
mkdir -p ../out/
mv *.AppImage* ../out/
}
Expand All @@ -165,7 +177,7 @@ generate_status()
mkdir -p ./tmp/archives/
mkdir -p ./tmp/lists/partial
touch tmp/pkgcache.bin tmp/srcpkgcache.bin
wget -q -c "https://github.com/fusion809/AppImages/raw/master/excludedeblist"
wget -q -c "https://github.com/probonopd/AppImages/raw/master/excludedeblist"
rm status 2>/dev/null || true
for PACKAGE in $(cat excludedeblist | cut -d "#" -f 1) ; do
printf "Package: $PACKAGE\nStatus: install ok installed\nArchitecture: all\nVersion: 9:999.999.999\n\n" >> status
Expand Down

0 comments on commit 3c443cc

Please sign in to comment.