This repository has been archived by the owner on Jun 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 87
Use linuxdeployqt #182
Open
probonopd
wants to merge
24
commits into
master
Choose a base branch
from
probonopd-patch-1-1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Use linuxdeployqt #182
Changes from 2 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
44fbaa6
Use linuxdeployqt
probonopd 91540f7
Extract linuxdeployqt AppImage since running in Docker
probonopd 8e2fe19
Exit on errors so that the Travis CI status indicator works
probonopd eb2e039
Fix error
probonopd 8937784
Update build-appimage.sh
probonopd 3d5d3ba
set -e
probonopd a96ebd1
Change path to build-appimage.sh
probonopd f6a72fb
Update build-appimage.sh
probonopd 26c08cf
Update build-appimage.sh
probonopd b75002a
Remove hardcoded $HOME paths
probonopd 56aac9b
Update build-appimage.sh
probonopd a66d712
Update build-appimage.sh
probonopd 419e965
Update build-appimage.sh
probonopd d65624d
Update build-appimage.sh
probonopd fe50053
Update build-appimage.sh
probonopd 86634f9
Update build-appimage.sh
probonopd 85d5d1b
Update build-appimage.sh
probonopd e576f6c
Update build-appimage.sh
probonopd c0e3cae
Update build-appimage.sh
probonopd d264873
Update build-appimage.sh
probonopd bbe52d2
Update build-appimage.sh
probonopd 0f3028c
Update build-appimage.sh
probonopd 25f0578
Update build-appimage.sh
probonopd 24b1670
Update build-appimage.sh
probonopd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,97 +22,58 @@ cd qtkeychain | |
git checkout v0.8.0 | ||
mkdir build | ||
cd build | ||
cmake -D CMAKE_INSTALL_PREFIX=/app ../ | ||
cmake cmake .. -DCMAKE_INSTALL_PREFIX=/usr | ||
make -j4 | ||
make install | ||
make DESTDIR=$(readlink -f $HOME/$APP/$APP.AppDir) install | ||
|
||
#Build client | ||
cd | ||
mkdir build-client | ||
cd build-client | ||
cmake -D CMAKE_INSTALL_PREFIX=/app \ | ||
cmake -DCMAKE_INSTALL_PREFIX=/usr \ | ||
-D NO_SHIBBOLETH=1 \ | ||
-D OEM_THEME_DIR=/home/client/nextcloudtheme \ | ||
-DMIRALL_VERSION_SUFFIX=beta \ | ||
-DMIRALL_VERSION_BUILD=14 \ | ||
/home/client/client | ||
make -j4 | ||
make install | ||
|
||
#Create skeleton | ||
mkdir -p $HOME/$APP/$APP.AppDir/usr/ | ||
cd $HOME/$APP/ | ||
|
||
#Fetch appimage functions | ||
wget -q https://github.com/probonopd/AppImages/raw/master/functions.sh -O ./functions.sh | ||
. ./functions.sh | ||
make DESTDIR=$(readlink -f $HOME/$APP/$APP.AppDir) install | ||
|
||
cd $APP.AppDir | ||
|
||
#clean binary | ||
sed -i -e 's|/app|././|g' /app/bin/nextcloud | ||
|
||
# Copy installed stuff | ||
cp -r /app/* ./usr/ | ||
|
||
get_apprun | ||
|
||
cp /app/share/applications/nextcloud.desktop . | ||
cp /app/share/icons/hicolor/256x256/apps/Nextcloud.png nextcloud.png | ||
|
||
#Copy qt plugins | ||
mkdir -p ./usr/lib/qt5/plugis | ||
cp -r /opt/qt58/plugins ./usr/lib/qt5/plugins | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not using 5.8? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do you think so? It says There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great! @TheAssassin 58 is 5.8 without a dot. That's why. |
||
#Copy dependencies | ||
copy_deps | ||
|
||
delete_blacklisted | ||
|
||
# We don't bundle the developer stuff | ||
rm -rf usr/include || true | ||
rm -rf usr/lib/cmake || true | ||
rm -rf usr/lib/pkgconfig || true | ||
find . -name '*.la' | xargs -i rm {} | ||
strip usr/bin/* usr/lib/* || true | ||
rm -rf app/ || true | ||
# Copy, since libssl must be in sync with libcrypto | ||
cp /lib/x86_64-linux-gnu/libssl.so.1.0.0 usr/lib/ | ||
# No need to add CMake stuff | ||
rm -rf usr/lib/x86_64-linux-gnu/cmake/ | ||
rm -rf usr/mkspecs | ||
|
||
# Don't bundle nextcloudcmd as we don't run it anyway | ||
rm usr/bin/nextcloudcmd | ||
|
||
# Don't bundle the explorer extentions as we can't do anything with them in the AppImage | ||
rm -rf usr/share/caja-python/ | ||
rm -rf usr/share/nautilus-python/ | ||
rm -rf usr/share/nemo-python/ | ||
|
||
#Move qt5.8 libs to the right location | ||
mv ./opt/qt58/lib/* ./usr/lib/ | ||
rm -rf ./opt/ | ||
|
||
#Move sync exlucde to right location | ||
# Move sync exlucde to right location | ||
mv ./usr/etc/Nextcloud/sync-exclude.lst ./usr/bin/ | ||
rm -rf ./usr/etc | ||
|
||
#desktop intergration | ||
get_desktopintegration $LOWERAPP | ||
|
||
#Generate the appimage | ||
cd .. | ||
wget -c https://github.com/probonopd/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage | ||
chmod +x appimagetool-x86_64.AppImage | ||
./appimagetool-x86_64.AppImage --appimage-extract | ||
|
||
mkdir -p ../out/ | ||
GLIBC_NEEDED=$(glibc_needed) | ||
APPIMAGE_FILENAME=${APP}-${VERSION}-${ARCH}.glibc$GLIBC_NEEDED.AppImage | ||
APPIMAGE_PATH=../out/$APPIMAGE_FILENAME | ||
# Use linuxdeployqt to deploy | ||
wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" | ||
chmod a+x linuxdeployqt*.AppImage | ||
./linuxdeployqt-continuous-x86_64.AppImage --appimage-extract | ||
unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH | ||
|
||
./squashfs-root/AppRun $(readlink -f $HOME/$APP/$APP.AppDir)/usr/share/applications/nextcloud.desktop -bundle-non-qt-libs | ||
./squashfs-root/AppRun $(readlink -f $HOME/$APP/$APP.AppDir)/usr/share/applications/nextcloud.desktop -appimage | ||
|
||
./squashfs-root/AppRun -n -v $APP.AppDir $APPIMAGE_PATH | ||
ls *.AppImage | ||
|
||
#move appimage | ||
chown $SUDO_UID:$SUDO_GID ../out/*.AppImage | ||
mkdir -p /home/client/out | ||
mv ../out/*.AppImage /home/client/out/ | ||
mv ./Nextcloud*.AppImage /home/client/out/ |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can't work for obvious reasons.