From 37dae5ffb9c8909d9c4b747fcf767c961cebdd9b Mon Sep 17 00:00:00 2001 From: sandboxgamedev123 <158007017+sandboxgamedev123@users.noreply.github.com> Date: Sat, 1 Jun 2024 08:56:48 -0400 Subject: [PATCH] Add files via upload --- scripts/makeappimage_32-bit.sh | 31 +++++++++++++++++++++++++++++++ scripts/makeappimage_64-bit.sh | 31 +++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 scripts/makeappimage_32-bit.sh create mode 100644 scripts/makeappimage_64-bit.sh diff --git a/scripts/makeappimage_32-bit.sh b/scripts/makeappimage_32-bit.sh new file mode 100644 index 000000000..b7139a36e --- /dev/null +++ b/scripts/makeappimage_32-bit.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash + +if [ ! -f appimagetool-i686.AppImage ]; then + wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-i686.AppImage + chmod +x appimagetool-i686.AppImage +fi + +if [ ! -f linuxdeploy-i386.AppImage ]; then + wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-i386.AppImage + chmod +x linuxdeploy-i386.AppImage +fi + +DESTDIR=AppDir make install +./linuxdeploy-i386.AppImage --appimage-extract-and-run --appdir=AppDir \ + --exclude-library="libX*" \ + --exclude-library="libglib*" \ + --exclude-library="libgobject*" \ + --exclude-library="libgdk_pixbuf*" \ + --exclude-library="libwayland*" \ + --exclude-library="libgmodule*" \ + --exclude-library="libgio*" \ + --exclude-library="libxcb*" \ + --exclude-library="libxkbcommon*" \ + --exclude-library="libdb*" + +rm AppDir/mgba-256.png +pushd AppDir +ln -s usr/share/icons/hicolor/256x256/apps/mgba-256.png +chmod +x AppRun +popd +./appimagetool-i686.AppImage --appimage-extract-and-run AppDir diff --git a/scripts/makeappimage_64-bit.sh b/scripts/makeappimage_64-bit.sh new file mode 100644 index 000000000..dd4930b6e --- /dev/null +++ b/scripts/makeappimage_64-bit.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash + +if [ ! -f appimagetool-x86_64.AppImage ]; then + wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage + chmod +x appimagetool-x86_64.AppImage +fi + +if [ ! -f linuxdeploy-x86_64.AppImage ]; then + wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage + chmod +x linuxdeploy-x86_64.AppImage +fi + +DESTDIR=AppDir make install +./linuxdeploy-x86_64.AppImage --appimage-extract-and-run --appdir=AppDir \ + --exclude-library="libX*" \ + --exclude-library="libglib*" \ + --exclude-library="libgobject*" \ + --exclude-library="libgdk_pixbuf*" \ + --exclude-library="libwayland*" \ + --exclude-library="libgmodule*" \ + --exclude-library="libgio*" \ + --exclude-library="libxcb*" \ + --exclude-library="libxkbcommon*" \ + --exclude-library="libdb*" + +rm AppDir/mgba-256.png +pushd AppDir +ln -s usr/share/icons/hicolor/256x256/apps/mgba-256.png +chmod +x AppRun +popd +./appimagetool-x86_64.AppImage --appimage-extract-and-run AppDir