|
|
@ -31,27 +31,27 @@ cp README.md "$DIR_NAME/" || echo "README.md not found" |
|
|
create_appimage() { |
|
|
create_appimage() { |
|
|
local binary_name="$1" |
|
|
local binary_name="$1" |
|
|
local display_name="$2" |
|
|
local display_name="$2" |
|
|
local needs_qt="$3" |
|
|
|
|
|
|
|
|
local needs_qt="$3" |
|
|
local app_dir="build/AppDir-${binary_name}" |
|
|
local app_dir="build/AppDir-${binary_name}" |
|
|
local appimage_output="${binary_name}.AppImage" |
|
|
local appimage_output="${binary_name}.AppImage" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "Creating AppImage for ${binary_name}..." |
|
|
echo "Creating AppImage for ${binary_name}..." |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p "${app_dir}/usr/bin" |
|
|
mkdir -p "${app_dir}/usr/bin" |
|
|
mkdir -p "${app_dir}/usr/lib" |
|
|
mkdir -p "${app_dir}/usr/lib" |
|
|
mkdir -p "${app_dir}/usr/share/applications" |
|
|
mkdir -p "${app_dir}/usr/share/applications" |
|
|
mkdir -p "${app_dir}/usr/share/icons/hicolor/scalable/apps" |
|
|
mkdir -p "${app_dir}/usr/share/icons/hicolor/scalable/apps" |
|
|
mkdir -p "${app_dir}/usr/optional/libstdc++" |
|
|
mkdir -p "${app_dir}/usr/optional/libstdc++" |
|
|
mkdir -p "${app_dir}/usr/optional/libgcc_s" |
|
|
mkdir -p "${app_dir}/usr/optional/libgcc_s" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -d "build/bin/Release" ]; then |
|
|
if [ -d "build/bin/Release" ]; then |
|
|
cp "build/bin/Release/${binary_name}" "${app_dir}/usr/bin/" || echo "${binary_name} not found for AppDir" |
|
|
cp "build/bin/Release/${binary_name}" "${app_dir}/usr/bin/" || echo "${binary_name} not found for AppDir" |
|
|
else |
|
|
else |
|
|
cp "build/bin/${binary_name}" "${app_dir}/usr/bin/" || echo "${binary_name} not found for AppDir" |
|
|
cp "build/bin/${binary_name}" "${app_dir}/usr/bin/" || echo "${binary_name} not found for AppDir" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
strip -s "${app_dir}/usr/bin/${binary_name}" |
|
|
strip -s "${app_dir}/usr/bin/${binary_name}" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cat > "${app_dir}/org.yuzu_emu.${binary_name}.desktop" << EOL |
|
|
cat > "${app_dir}/org.yuzu_emu.${binary_name}.desktop" << EOL |
|
|
[Desktop Entry] |
|
|
[Desktop Entry] |
|
|
Type=Application |
|
|
Type=Application |
|
|
@ -60,18 +60,18 @@ Icon=org.yuzu_emu.${binary_name} |
|
|
Exec=${binary_name} |
|
|
Exec=${binary_name} |
|
|
Categories=Game;Emulator; |
|
|
Categories=Game;Emulator; |
|
|
EOL |
|
|
EOL |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cp "${app_dir}/org.yuzu_emu.${binary_name}.desktop" "${app_dir}/usr/share/applications/" |
|
|
cp "${app_dir}/org.yuzu_emu.${binary_name}.desktop" "${app_dir}/usr/share/applications/" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cp "dist/eden.svg" "${app_dir}/org.yuzu_emu.${binary_name}.svg" |
|
|
cp "dist/eden.svg" "${app_dir}/org.yuzu_emu.${binary_name}.svg" |
|
|
cp "dist/eden.svg" "${app_dir}/usr/share/icons/hicolor/scalable/apps/org.yuzu_emu.${binary_name}.svg" |
|
|
cp "dist/eden.svg" "${app_dir}/usr/share/icons/hicolor/scalable/apps/org.yuzu_emu.${binary_name}.svg" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd build |
|
|
cd build |
|
|
wget -nc https://raw.githubusercontent.com/eden-emulator/ext-linux-bin/main/appimage/deploy-linux.sh || echo "Failed to download deploy script" |
|
|
wget -nc https://raw.githubusercontent.com/eden-emulator/ext-linux-bin/main/appimage/deploy-linux.sh || echo "Failed to download deploy script" |
|
|
wget -nc https://raw.githubusercontent.com/eden-emulator/AppImageKit-checkrt/old/AppRun.sh || echo "Failed to download AppRun script" |
|
|
wget -nc https://raw.githubusercontent.com/eden-emulator/AppImageKit-checkrt/old/AppRun.sh || echo "Failed to download AppRun script" |
|
|
wget -nc https://github.com/eden-emulator/ext-linux-bin/raw/main/appimage/exec-x86_64.so || echo "Failed to download exec wrapper" |
|
|
wget -nc https://github.com/eden-emulator/ext-linux-bin/raw/main/appimage/exec-x86_64.so || echo "Failed to download exec wrapper" |
|
|
chmod +x deploy-linux.sh |
|
|
chmod +x deploy-linux.sh |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd .. |
|
|
cd .. |
|
|
if [ "$needs_qt" = "true" ]; then |
|
|
if [ "$needs_qt" = "true" ]; then |
|
|
echo "Deploying with Qt dependencies for ${binary_name}..." |
|
|
echo "Deploying with Qt dependencies for ${binary_name}..." |
|
|
@ -80,41 +80,41 @@ EOL |
|
|
echo "Deploying without Qt dependencies for ${binary_name}..." |
|
|
echo "Deploying without Qt dependencies for ${binary_name}..." |
|
|
build/deploy-linux.sh "${app_dir}/usr/bin/${binary_name}" "${app_dir}" |
|
|
build/deploy-linux.sh "${app_dir}/usr/bin/${binary_name}" "${app_dir}" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cp --dereference /usr/lib/x86_64-linux-gnu/libstdc++.so.6 "${app_dir}/usr/optional/libstdc++/libstdc++.so.6" || true |
|
|
cp --dereference /usr/lib/x86_64-linux-gnu/libstdc++.so.6 "${app_dir}/usr/optional/libstdc++/libstdc++.so.6" || true |
|
|
cp --dereference /lib/x86_64-linux-gnu/libgcc_s.so.1 "${app_dir}/usr/optional/libgcc_s/libgcc_s.so.1" || true |
|
|
cp --dereference /lib/x86_64-linux-gnu/libgcc_s.so.1 "${app_dir}/usr/optional/libgcc_s/libgcc_s.so.1" || true |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cp build/exec-x86_64.so "${app_dir}/usr/optional/exec.so" || true |
|
|
cp build/exec-x86_64.so "${app_dir}/usr/optional/exec.so" || true |
|
|
cp build/AppRun.sh "${app_dir}/AppRun" |
|
|
cp build/AppRun.sh "${app_dir}/AppRun" |
|
|
chmod +x "${app_dir}/AppRun" |
|
|
chmod +x "${app_dir}/AppRun" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find "${app_dir}" -type f -regex '.*libwayland-client\.so.*' -delete -print || true |
|
|
find "${app_dir}" -type f -regex '.*libwayland-client\.so.*' -delete -print || true |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd build |
|
|
cd build |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -f "appimagetool-x86_64.AppImage" ]; then |
|
|
if [ ! -f "appimagetool-x86_64.AppImage" ]; then |
|
|
wget -nc https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage |
|
|
wget -nc https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage |
|
|
chmod +x appimagetool-x86_64.AppImage |
|
|
chmod +x appimagetool-x86_64.AppImage |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ! ./appimagetool-x86_64.AppImage --version; then |
|
|
if ! ./appimagetool-x86_64.AppImage --version; then |
|
|
echo "FUSE not available, using extract and run mode" |
|
|
echo "FUSE not available, using extract and run mode" |
|
|
export APPIMAGE_EXTRACT_AND_RUN=1 |
|
|
export APPIMAGE_EXTRACT_AND_RUN=1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "Generating AppImage: ${appimage_output}" |
|
|
echo "Generating AppImage: ${appimage_output}" |
|
|
./appimagetool-x86_64.AppImage "AppDir-${binary_name}" "${appimage_output}" || echo "AppImage generation failed for ${binary_name}" |
|
|
./appimagetool-x86_64.AppImage "AppDir-${binary_name}" "${appimage_output}" || echo "AppImage generation failed for ${binary_name}" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cp "${appimage_output}" "../${DIR_NAME}/" || echo "AppImage not copied to DIR_NAME for ${binary_name}" |
|
|
cp "${appimage_output}" "../${DIR_NAME}/" || echo "AppImage not copied to DIR_NAME for ${binary_name}" |
|
|
cp "${appimage_output}" "../${ARTIFACTS_DIR}/" || echo "AppImage not copied to artifacts for ${binary_name}" |
|
|
cp "${appimage_output}" "../${ARTIFACTS_DIR}/" || echo "AppImage not copied to artifacts for ${binary_name}" |
|
|
cd .. |
|
|
cd .. |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
create_appimage "eden" "Eden" "true" |
|
|
|
|
|
create_appimage "eden-cli" "Eden-CLI" "false" |
|
|
|
|
|
create_appimage "eden-room" "Eden-Room" "false" |
|
|
|
|
|
|
|
|
create_appimage "eden" "Eden" "true" |
|
|
|
|
|
create_appimage "eden-cli" "Eden-CLI" "false" |
|
|
|
|
|
create_appimage "eden-room" "Eden-Room" "false" |
|
|
|
|
|
|
|
|
tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$DIR_NAME" |
|
|
tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$DIR_NAME" |
|
|
mv "$ARCHIVE_NAME" "${ARTIFACTS_DIR}/" |
|
|
mv "$ARCHIVE_NAME" "${ARTIFACTS_DIR}/" |
|
|
|
|
|
|
|
|
ls -la "${ARTIFACTS_DIR}/" |
|
|
|
|
|
|
|
|
ls -la "${ARTIFACTS_DIR}/" |