mirror of
https://github.com/pineappleEA/pineapple-src.git
synced 2024-11-26 00:18:24 -05:00
commit
a52f1480c9
3
.github/workflows/AppRun
vendored
3
.github/workflows/AppRun
vendored
@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
export GDK_PIXBUF_MODULEDIR=$(pkg-config --variable=gdk_pixbuf_moduledir gdk-pixbuf-2.0)
|
||||||
|
export GDK_PIXBUF_MODULE_FILE=$(pkg-config --variable=gdk_pixbuf_cache_file gdk-pixbuf-2.0)
|
||||||
|
|
||||||
mkdir -p $HOME/.local/share/icons/hicolor/scalable/apps && cp $APPDIR/yuzu.svg $HOME/.local/share/icons/hicolor/scalable/apps
|
mkdir -p $HOME/.local/share/icons/hicolor/scalable/apps && cp $APPDIR/yuzu.svg $HOME/.local/share/icons/hicolor/scalable/apps
|
||||||
|
|
||||||
GITVER=`wget -qO- https://api.github.com/repos/pineappleEA/pineapple-src/releases/latest | grep "releases/tag" | grep -o 'EA-[[:digit:]]*'`
|
GITVER=`wget -qO- https://api.github.com/repos/pineappleEA/pineapple-src/releases/latest | grep "releases/tag" | grep -o 'EA-[[:digit:]]*'`
|
||||||
|
17
.github/workflows/appimage.sh
vendored
17
.github/workflows/appimage.sh
vendored
@ -41,8 +41,18 @@ mkdir -p /yuzu/artifacts/version
|
|||||||
mkdir -p squashfs-root/usr/optional/{libstdc++,libgcc_s}
|
mkdir -p squashfs-root/usr/optional/{libstdc++,libgcc_s}
|
||||||
cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./squashfs-root/usr/optional/libstdc++/
|
cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./squashfs-root/usr/optional/libstdc++/
|
||||||
cp /lib/libgcc_s.so.1 ./squashfs-root/usr/optional/libgcc_s/
|
cp /lib/libgcc_s.so.1 ./squashfs-root/usr/optional/libgcc_s/
|
||||||
curl -sSfL https://github.com/RPCS3/AppImageKit-checkrt/releases/download/continuous2/AppRun-patched-x86_64 -o ./squashfs-root/AppRun
|
curl -sSfL https://github.com/RPCS3/AppImageKit-checkrt/releases/download/continuous2/AppRun-patched-x86_64 -o ./squashfs-root/AppRun.wrapped
|
||||||
chmod a+x ./squashfs-root/AppRun
|
# create AppRun
|
||||||
|
cat << 'EOF' > $HOME/squashfs-root/AppRun
|
||||||
|
#! /usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
this_dir="$(readlink -f "$(dirname "$0")")"
|
||||||
|
#GDK_PIXBUF
|
||||||
|
export GDK_PIXBUF_MODULEDIR=$(pkg-config --variable=gdk_pixbuf_moduledir gdk-pixbuf-2.0)
|
||||||
|
export GDK_PIXBUF_MODULE_FILE=$(pkg-config --variable=gdk_pixbuf_cache_file gdk-pixbuf-2.0)
|
||||||
|
exec "$this_dir"/AppRun.wrapped "$@"
|
||||||
|
EOF
|
||||||
|
chmod a+x ./squashfs-root/{AppRun,AppRun.wrapped}
|
||||||
curl -sSfL https://github.com/RPCS3/AppImageKit-checkrt/releases/download/continuous2/exec-x86_64.so -o ./squashfs-root/usr/optional/exec.so
|
curl -sSfL https://github.com/RPCS3/AppImageKit-checkrt/releases/download/continuous2/exec-x86_64.so -o ./squashfs-root/usr/optional/exec.so
|
||||||
printf "#include <sstream>\n#include <exception>\n#include <memory_resource>\nint main(){auto x = std::stringbuf();x.get_allocator();std::make_exception_ptr(0);std::pmr::get_default_resource();}" \
|
printf "#include <sstream>\n#include <exception>\n#include <memory_resource>\nint main(){auto x = std::stringbuf();x.get_allocator();std::make_exception_ptr(0);std::pmr::get_default_resource();}" \
|
||||||
| $CXX -x c++ -std=c++2a -o ./squashfs-root/usr/optional/checker -
|
| $CXX -x c++ -std=c++2a -o ./squashfs-root/usr/optional/checker -
|
||||||
@ -55,7 +65,8 @@ export PATH=$(readlink -f /tmp/squashfs-root/usr/bin/):$PATH
|
|||||||
mv ./yuzu-x86_64.AppImage /yuzu/artifacts/version/Yuzu-EA-$version.AppImage
|
mv ./yuzu-x86_64.AppImage /yuzu/artifacts/version/Yuzu-EA-$version.AppImage
|
||||||
|
|
||||||
# Continuous AppImage
|
# Continuous AppImage
|
||||||
mv $HOME/squashfs-root/AppRun ./squashfs-root/AppRun-patched
|
mv $HOME/squashfs-root/AppRun.wrapped ./squashfs-root/AppRun-patched
|
||||||
|
rm $HOME/squashfs-root/AppRun
|
||||||
curl -sL "https://raw.githubusercontent.com/$GITHUB_REPOSITORY/$BRANCH/.github/workflows/AppRun" -o $HOME/squashfs-root/AppRun
|
curl -sL "https://raw.githubusercontent.com/$GITHUB_REPOSITORY/$BRANCH/.github/workflows/AppRun" -o $HOME/squashfs-root/AppRun
|
||||||
chmod a+x ./squashfs-root/AppRun
|
chmod a+x ./squashfs-root/AppRun
|
||||||
mv /tmp/update/AppImageUpdate $HOME/squashfs-root/usr/bin/
|
mv /tmp/update/AppImageUpdate $HOME/squashfs-root/usr/bin/
|
||||||
|
Loading…
Reference in New Issue
Block a user