Compare commits

...

10 Commits

Author SHA1 Message Date
GT190
3bffa0090e
Merge dd6bc29e78 into 04f71e5e6d 2025-12-15 18:32:29 +01:00
Jordan Woyak
04f71e5e6d
Merge pull request #14211 from cscd98/enumerate-radios
mingw: fix usage of std::invocable with EnumerateRadios
2025-12-12 17:21:51 -06:00
Craig Carnell
eded73fe8b mingw: fix use of std::invocable with EnumerateRadios 2025-12-12 09:33:10 +00:00
GT190
dd6bc29e78
Use which qmake6 to determine Qt6 path 2025-03-10 08:48:45 +01:00
GT190
b527624242
Merge branch 'dolphin-emu:master' into appimage-script 2024-11-12 01:43:21 +01:00
GT190
13c81e423e
add CPU architecture detection and remove linuxdeploy-checkrt-plugin 2024-11-12 01:14:53 +01:00
GT190
d55d844eda
use timestamping when downloading appimage packaging tools 2024-09-22 05:14:09 +02:00
GT190
f2ffd95e49
properly set the environmental variable in apprun-hook 2024-09-21 00:05:25 +02:00
GT190
887adda8c4
Remove unused binaries with BuildLinuxAppImage.sh
This saves around 16MB from the AppImage.
2024-09-07 16:36:01 +02:00
TGP17
60862397e9 Add script to build an AppImage 2024-09-07 01:44:57 +02:00
2 changed files with 53 additions and 1 deletions

52
BuildLinuxAppImage.sh Executable file
View File

@ -0,0 +1,52 @@
#!/bin/bash
# Environment variables
if [ "$(uname -m)" = "x86_64" ];
then
export ARCH=x86_64
echo "CPU architecture detected as x86_64."
elif [ "$(uname -m)" = "aarch64" ];
then
export ARCH=aarch64
echo "CPU architecture detected as aarch64."
else
echo "CPU architecture not supported or detected."
exit 1
fi
export APPIMAGE_EXTRACT_AND_RUN=1
export QMAKE=$(which qmake6)
# Prepare the AppDir
DESTDIR=./AppDir ninja install
mkdir -p ./AppDir/usr/Source/Core
cp -r ./Source/Core/DolphinQt ./AppDir/usr/Source/Core
rm -rf ./AppDir/usr/Source/Core/DolphinQt/CMakeFiles
rm -rf ./AppDir/usr/Source/Core/DolphinQt/dolphin-emu_autogen
rm ./AppDir/usr/Source/Core/DolphinQt/cmake_install.cmake
rm ./AppDir/usr/bin/dolphin-emu-nogui
rm ./AppDir/usr/bin/dolphin-tool
mv ./AppDir/usr/share/dolphin-emu/sys ./AppDir/usr/bin/Sys
rm -rf ./AppDir/usr/share/dolphin-emu
sed -i 's/env QT_QPA_PLATFORM=xcb dolphin-emu/dolphin-emu/g' ./AppDir/usr/share/applications/dolphin-emu.desktop
# Prepare Tools for building the AppImage
wget -N https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-${ARCH}.AppImage
wget -N https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-${ARCH}.AppImage
wget -N https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-${ARCH}.AppImage
chmod a+x linuxdeploy-${ARCH}.AppImage
chmod a+x linuxdeploy-plugin-qt-${ARCH}.AppImage
chmod a+x appimagetool-${ARCH}.AppImage
# Build the AppImage
./linuxdeploy-${ARCH}.AppImage \
--appdir AppDir \
--plugin qt
echo 'env QT_QPA_PLATFORM=xcb' >> ./AppDir/apprun-hooks/linuxdeploy-plugin-qt-hook.sh
./appimagetool-${ARCH}.AppImage ./AppDir

View File

@ -158,7 +158,7 @@ static std::optional<std::string> GetParentDeviceDescription(const WCHAR* hid_if
return std::nullopt; return std::nullopt;
} }
void EnumerateRadios(std::invocable<EnumerationControl(HANDLE)> auto&& enumeration_callback) void EnumerateRadios(std::invocable<HANDLE> auto&& enumeration_callback)
{ {
constexpr BLUETOOTH_FIND_RADIO_PARAMS radio_params{ constexpr BLUETOOTH_FIND_RADIO_PARAMS radio_params{
.dwSize = sizeof(radio_params), .dwSize = sizeof(radio_params),