Skip to content

Commit

Permalink
update miyoomini build to latest port requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Trihedraf committed May 25, 2024
1 parent 3f49fad commit bb1cb8f
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 44 deletions.
1 change: 0 additions & 1 deletion CMake/platforms/miyoo_mini.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
set(BUILD_ASSETS_MPQ OFF)
set(USE_SDL1 ON)
set(NONET ON)
set(DEVILUTIONX_SYSTEM_LIBFMT OFF)
Expand Down
20 changes: 6 additions & 14 deletions Packaging/miyoo_mini/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ cmake_configure() {
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE="${PACKAGING_DIR}/toolchainfile.cmake" \
-DBUILD_TESTING=OFF \
-DDISABLE_DEMOMODE=ON \
"$@"
}

Expand All @@ -49,7 +50,7 @@ build_custom_sdl() {

# change back to devilutionx root
cd "$PACKAGING_DIR/../.."
cp -rfL "$BUILD_DIR/CustomSDL/build/.libs/libSDL-1.2.so.0" "$BUILD_DIR/OnionOS/Roms/PORTS/Binaries/Diablo.port/lib/libSDL-1.2.so.0"
cp -rfL "$BUILD_DIR/CustomSDL/build/.libs/libSDL-1.2.so.0" "$BUILD_DIR/OnionOS/Roms/PORTS/Games/Diablo (DevilutionX)/lib/libSDL-1.2.so.0"
}

prepare_onion_skeleton() {
Expand All @@ -58,26 +59,17 @@ prepare_onion_skeleton() {
# Copy basic skeleton
cp -rf Packaging/miyoo_mini/skeleton_OnionOS/* $BUILD_DIR/OnionOS

# ensure devilutionx asset dir
mkdir -p $BUILD_DIR/OnionOS/Roms/PORTS/Binaries/Diablo.port/assets

# ensure lib dir for custom SDL
mkdir -p $BUILD_DIR/OnionOS/Roms/PORTS/Binaries/Diablo.port/lib

# ensure config dir
mkdir -p $BUILD_DIR/OnionOS/Saves/CurrentProfile/config/DevilutionX

# ensure save dir
mkdir -p $BUILD_DIR/OnionOS/Saves/CurrentProfile/saves/DevilutionX
mkdir -p "$BUILD_DIR/OnionOS/Roms/PORTS/Games/Diablo (DevilutionX)/lib"
}

package_onion() {
prepare_onion_skeleton
build_custom_sdl
# copy assets
cp -rf $BUILD_DIR/assets/* $BUILD_DIR/OnionOS/Roms/PORTS/Binaries/Diablo.port/assets
# copy assets mpq
cp -f $BUILD_DIR/devilutionx.mpq "$BUILD_DIR/OnionOS/Roms/PORTS/Games/Diablo (DevilutionX)/devilutionx.mpq"
# copy executable
cp -f $BUILD_DIR/devilutionx $BUILD_DIR/OnionOS/Roms/PORTS/Binaries/Diablo.port/devilutionx
cp -f $BUILD_DIR/devilutionx "$BUILD_DIR/OnionOS/Roms/PORTS/Games/Diablo (DevilutionX)/devilutionx"

rm -f $BUILD_DIR/onion.zip

Expand Down

This file was deleted.

Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Directory tree for "Diablo (DevilutionX)"
|
| devilutionx
| devilutionx.mpq
| DIABDAT.MPQ
| _required_files.txt
|
\---lib
libSDL-1.2.so.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/sh
# Standalone Ports Script Template

# main configuration :
GameName="Diablo (DevilutionX)"
GameDir="Diablo (DevilutionX)"
GameExecutable="devilutionx"
GameDataFile="DIABDAT.MPQ"

# additional configuration :
KillAudioserver=0
PerformanceMode=0

# specific to this port :
FullGamePath="/mnt/SDCARD/Roms/PORTS/Games/$GameDir"

savedir="/mnt/SDCARD/Saves/CurrentProfile/saves/DevilutionX"
configdir="/mnt/SDCARD/Saves/CurrentProfile/config/DevilutionX"
mkdir -p "$savedir"
mkdir -p "$configdir"

export SDL_HIDE_BATTERY=1

Arguments="--data-dir \"$FullGamePath\" --save-dir \"$savedir\" --config-dir \"$configdir\" --diablo"


# running command line :
/mnt/SDCARD/Emu/PORTS/launch_standalone.sh "$GameName" "$GameDir" "$GameExecutable" "$Arguments" "$GameDataFile" "$KillAudioserver" "$PerformanceMode"
12 changes: 6 additions & 6 deletions Packaging/miyoo_mini/skeleton_OnionOS/readme.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
devilutionx(Diablo port) for OnionOS
DevilutionX (Diablo port) for OnionOS
====================================

Installation
--------
- Activate the Ports Collection inside the Onion Installer on your device
- Copy everything from this archive to the root of your sd card
- Copy the Roms folder from this archive to the root of your sd card

For the full game:
- Get the DIABDAT.MPQ from either the CD or GOG release (https://github.com/diasurgical/devilutionX/wiki/Extracting-the-.MPQs-from-the-GoG-installer)
- Copy the DIABDAT.MPQ into Roms/PORTS/Binaries/Diablo.port/FILES_HERE
- Get the DIABDAT.MPQ from the CD, GOG or Battle.net release (https://github.com/diasurgical/devilutionX/wiki/Extracting-the-.MPQs-from-the-GoG-installer)
- Copy the DIABDAT.MPQ into Roms/PORTS/Games/Diablo (DevilutionX)
- Optional: If you want to also play the Hellfire expansion, copy hellfire.mpq, hfmonk.mpq, hfmusic.mpq, hfvoice.mpq into the same folder

For the free shareware version:
- Get the spawn.mpq (https://github.com/diasurgical/devilutionx-assets/releases/latest/download/spawn.mpq)
- Copy the spawn.mpq into Roms/PORTS/Binaries/Diablo.port/FILES_HERE
- Get the spawn.mpq (https://github.com/diasurgical/devilutionx-assets/releases/download/v2/spawn.mpq)
- Copy the spawn.mpq into Roms/PORTS/Games/Diablo (DevilutionX)

Controls
--------
Expand Down

0 comments on commit bb1cb8f

Please sign in to comment.