Skip to content

Commit eb9390e

Browse files
committed
Add files to hopefully let appimage build finish
1 parent 013090f commit eb9390e

File tree

9 files changed

+465
-0
lines changed

9 files changed

+465
-0
lines changed

travis/appimage/AppRun

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
mkdir -p $HOME/.local/share/icons/hicolor/scalable/apps && cp $APPDIR/dolphin-emu.svg $HOME/.local/share/icons/hicolor/scalable/apps
4+
mkdir -p $HOME/.local/share/dolphin-emu && cp -R $APPDIR/usr/share/dolphin-emu $HOME/.local/share/
5+
6+
GITVER=$(wget -qO- https://www.github.com/qurious-pixel/dolphin/releases/tag/continuous | grep '<p>DOLPHIN' | awk '{print $NF}' | cut -d '<' -f 1)
7+
APPVER=$(cat $APPDIR/version.txt)
8+
9+
if [[ -z "$GITVER" ]]; then
10+
$APPDIR/AppRun-patched "$@"
11+
elif [ "$GITVER" = "$APPVER" ]; then
12+
$APPDIR/AppRun-patched "$@"
13+
else
14+
$APPDIR/update.sh "$@"
15+
fi

travis/appimage/appimage.sh

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
#!/bin/bash -ex
2+
3+
branch=`echo ${GITHUB_REF##*/}`
4+
5+
BUILDBIN=/dolphin/dolphin/build/Binaries
6+
BINFILE=dolphin-emu-x86_64.AppImage
7+
LOG_FILE=$HOME/curl.log
8+
CXX=g++-9
9+
10+
# QT 5.14.2
11+
# source /opt/qt514/bin/qt514-env.sh
12+
QT_BASE_DIR=/opt/qt514
13+
export QTDIR=$QT_BASE_DIR
14+
export PATH=$QT_BASE_DIR/bin:$PATH
15+
export LD_LIBRARY_PATH=$QT_BASE_DIR/lib/x86_64-linux-gnu:$QT_BASE_DIR/lib:$LD_LIBRARY_PATH
16+
export PKG_CONFIG_PATH=$QT_BASE_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
17+
18+
cd /tmp
19+
curl -sLO "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
20+
curl -sLO "https://github.com/AppImage/AppImageUpdate/releases/download/continuous/AppImageUpdate-x86_64.AppImage"
21+
chmod a+x AppImageUpdate-x86_64.AppImage
22+
chmod a+x linuxdeployqt*.AppImage
23+
./linuxdeployqt-continuous-x86_64.AppImage --appimage-extract
24+
cd $HOME
25+
mkdir -p squashfs-root/usr/bin
26+
cp -P "$BUILDBIN"/dolphin-emu $HOME/squashfs-root/usr/bin/
27+
28+
curl -sL https://raw.githubusercontent.com/qurious-pixel/dolphin/$branch/Data/dolphin-emu.svg -o ./squashfs-root/dolphin-emu.svg
29+
curl -sL https://raw.githubusercontent.com/qurious-pixel/dolphin/$branch/Data/dolphin-emu.desktop -o ./squashfs-root/dolphin-emu.desktop
30+
curl -sL https://github.com/AppImage/AppImageKit/releases/download/continuous/runtime-x86_64 -o ./squashfs-root/runtime
31+
mkdir -p squashfs-root/usr/share/applications && cp ./squashfs-root/dolphin-emu.desktop ./squashfs-root/usr/share/applications
32+
mkdir -p squashfs-root/usr/share/icons && cp ./squashfs-root/dolphin-emu.svg ./squashfs-root/usr/share/icons
33+
mkdir -p squashfs-root/usr/share/icons/hicolor/scalable/apps && cp ./squashfs-root/dolphin-emu.svg ./squashfs-root/usr/share/icons/hicolor/scalable/apps
34+
mkdir -p squashfs-root/usr/share/pixmaps && cp ./squashfs-root/dolphin-emu.svg ./squashfs-root/usr/share/pixmaps
35+
mkdir -p squashfs-root/usr/optional/ ; mkdir -p squashfs-root/usr/optional/libstdc++/
36+
37+
mkdir -p squashfs-root/usr/share/dolphin-emu
38+
cp -R /dolphin/dolphin/Data/Sys ./squashfs-root/usr/bin
39+
curl -sL "https://raw.githubusercontent.com/qurious-pixel/dolphin/$branch/travis/appimage/update.sh" -o $HOME/squashfs-root/update.sh
40+
curl -sL "https://raw.githubusercontent.com/qurious-pixel/dolphin/$branch/travis/appimage/AppRun" -o $HOME/squashfs-root/AppRun
41+
curl -sL "https://github.com/RPCS3/AppImageKit-checkrt/releases/download/continuous2/AppRun-patched-x86_64" -o $HOME/squashfs-root/AppRun-patched
42+
curl -sL "https://github.com/RPCS3/AppImageKit-checkrt/releases/download/continuous2/exec-x86_64.so" -o $HOME/squashfs-root/usr/optional/exec.so
43+
chmod a+x ./squashfs-root/AppRun
44+
chmod a+x ./squashfs-root/runtime
45+
chmod a+x ./squashfs-root/AppRun-patched
46+
chmod a+x ./squashfs-root/update.sh
47+
#cp /tmp/libssl.so.47 /tmp/libcrypto.so.45 /usr/lib/x86_64-linux-gnu/
48+
cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 squashfs-root/usr/optional/libstdc++/
49+
printf "#include <bits/stdc++.h>\nint main(){std::make_exception_ptr(0);std::pmr::get_default_resource();}" | $CXX -x c++ -std=c++2a -o $HOME/squashfs-root/usr/optional/checker -
50+
51+
echo $DOLPHINVER > $HOME/squashfs-root/version.txt
52+
cp $HOME/squashfs-root/version.txt /dolphin
53+
54+
unset QT_PLUGIN_PATH
55+
unset LD_LIBRARY_PATH
56+
unset QTDIR
57+
58+
# /tmp/squashfs-root/AppRun $HOME/squashfs-root/usr/bin/dolphin-emu -appimage -unsupported-allow-new-glibc -no-copy-copyright-files -no-translations -bundle-non-qt-libs
59+
/tmp/squashfs-root/AppRun $HOME/squashfs-root/usr/bin/dolphin-emu -unsupported-allow-new-glibc -no-copy-copyright-files -no-translations -bundle-non-qt-libs
60+
export PATH=$(readlink -f /tmp/squashfs-root/usr/bin/):$PATH
61+
62+
# Add AppImageUpdate as the internal updater
63+
mv /tmp/AppImageUpdate-x86_64.AppImage $HOME/squashfs-root/usr/bin/AppImageUpdate
64+
65+
# Add dialog as the fallback
66+
cp /usr/bin/dialog ./squashfs-root/usr/bin/
67+
cp /lib/x86_64-linux-gnu/libncursesw.so.5 $HOME/squashfs-root/usr/lib/
68+
cp /lib/x86_64-linux-gnu/libtinfo.so.5 $HOME/squashfs-root/usr/lib/
69+
70+
# Copy libOpenGL deps
71+
cp /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 $HOME/squashfs-root/usr/lib/
72+
73+
# Package AppImage
74+
/tmp/squashfs-root/usr/bin/appimagetool $HOME/squashfs-root -u "gh-releases-zsync|qurious-pixel|dolphin|continuous|Dolphin_Emulator-x86_64.AppImage.zsync"
75+
76+
mkdir $HOME/artifacts/
77+
mkdir -p /dolphin/artifacts/
78+
mv Dolphin_Emulator-x86_64.AppImage* $HOME/artifacts
79+
cp -R $HOME/artifacts/ /dolphin/
80+
cp $BUILDBIN/dolphin-emu /dolphin/artifacts
81+
chmod -R 777 /dolphin/artifacts
82+
cd /dolphin/artifacts
83+
ls -al /dolphin/artifacts/
84+
#curl --upload-file Dolphin_Emulator-x86_64.AppImage https://transfersh.com/Dolphin_Emulator-x86_64.AppImage

travis/appimage/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash -ex
2+
3+
mkdir -p "$HOME/.ccache"
4+
docker run -e ENABLE_COMPATIBILITY_REPORTING --env-file travis/common/travis-ci.env -v $(pwd):/dolphin -v "$HOME/.ccache":/root/.ccache -u root quriouspixel/yuzu:latest /bin/bash /dolphin/travis/appimage/docker.sh

travis/appimage/deps.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh -ex
2+
3+
#docker pull quriouspixel/yuzu:latest
4+
#docker pull quriouspixel/yuzu:20.04
5+
echo hello world
6+
$PWD

travis/appimage/docker.sh

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/bin/bash -ex
2+
3+
branch=`echo ${GITHUB_REF##*/}`
4+
5+
QT_BASE_DIR=/opt/qt514
6+
export QTDIR=$QT_BASE_DIR
7+
export PATH=$QT_BASE_DIR/bin:$PATH
8+
export LD_LIBRARY_PATH=$QT_BASE_DIR/lib/x86_64-linux-gnu:$QT_BASE_DIR/lib:$LD_LIBRARY_PATH
9+
export PKG_CONFIG_PATH=$QT_BASE_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
10+
export GCCVER=10
11+
export GCC_BINARY=gcc-${GCCVER}
12+
export GXX_BINARY=g++-${GCCVER}
13+
export CC=$GCC_BINARY
14+
export CXX=$GXX_BINARY
15+
16+
add-apt-repository -y ppa:ubuntu-toolchain-r/test
17+
apt install -y $GCC_BINARY $GXX_BINARY
18+
19+
cd /dolphin
20+
21+
git clone https://github.com/dolphin-emu/dolphin.git
22+
cd dolphin/
23+
git submodule update --init --recursive
24+
25+
ninja -C /tmp/zstd/build/cmake/build uninstall
26+
27+
### GET BUILD Number
28+
export LASTCOMMIT=$(git log --pretty=format:%H -1)
29+
export DOLPHINVER=$(wget -qO- https://dolphin-emu.org/download/dev/${LASTCOMMIT} | grep '<title>' | awk '{print $NF}' | cut -d '<' -f 1)
30+
echo "DOLPHIN Build $DOLPHINVER"
31+
###
32+
33+
mkdir build
34+
cd build
35+
cmake .. -G Ninja -DLINUX_LOCAL_DEV=true -DCMAKE_C_COMPILER=/usr/lib/ccache/$GCC_BINARY -DCMAKE_CXX_COMPILER=/usr/lib/ccache/$GXX_BINARY -DENABLE_TESTS=OFF
36+
ninja
37+
#ln -s ../../Data/Sys Binaries/
38+
39+
#cat /dolphin/build/CMakeFiles/CMakeError.log | curl -F 'f:1=<-' ix.io
40+
41+
cd /tmp
42+
curl -sLO "https://raw.githubusercontent.com/qurious-pixel/dolphin/$branch/travis/appimage/appimage.sh"
43+
chmod a+x appimage.sh
44+
./appimage.sh
45+
#ls -al /dolphin
46+
#ls -al /dolphin/build
47+
#ls -al /dolphin/build/Binaries

travis/appimage/update.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
#!/bin/bash
3+
4+
if [ -f /usr/bin/zenity ]; then
5+
zenity --question --timeout=10 --title="dolphin updater" --text="New update available. Update now?" \
6+
--icon-name=dolphin-emu --window-icon=dolphin-emu.svg --height=80 --width=400
7+
answer=$?
8+
else
9+
dialog --title dolphin --timeout 10 --yesno "New update available. Update now?" 0 0
10+
answer=$?
11+
fi
12+
13+
if [ "$answer" -eq 0 ]; then
14+
$APPDIR/usr/bin/AppImageUpdate $PWD/Dolphin_Emulator-x86_64.AppImage "$@" && $PWD/Dolphin_Emulator-x86_64.AppImage "$@"
15+
else
16+
$APPDIR/AppRun-patched "$@"
17+
fi
18+
exit 0
19+
20+

travis/appimage/update.tar.gz

3.95 MB
Binary file not shown.

0 commit comments

Comments
 (0)