2023-12-22 09:16:54 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
git clone https://github.com/XargonWan/RetroDECK --depth=1 RetroDECK
|
|
|
|
|
|
|
|
# Creating MAME manifest
|
|
|
|
manifest_header="manifest-header.yml"
|
|
|
|
mame_module="mame-module.yml"
|
2023-12-22 10:24:28 +00:00
|
|
|
mame_manifest="net.retrodeck.mame.yml"
|
2024-01-06 08:19:22 +00:00
|
|
|
command="/app/bin/mame"
|
2023-12-22 09:16:54 +00:00
|
|
|
|
2024-06-26 13:39:31 +00:00
|
|
|
# sed -n '/command/q;p' RetroDECK/net.retrodeck.retrodeck.yml > "$manifest_header" TEMPORARY DISABLED TO TRY A BUILD WITH ANOTHER RUNTIME
|
2024-01-06 08:19:22 +00:00
|
|
|
echo -e "command: $command\n" >> "$manifest_header"
|
2023-12-22 09:16:54 +00:00
|
|
|
sed -i '/^[[:space:]]*#/d' "$manifest_header"
|
|
|
|
sed -i 's/[[:space:]]*#.*$//' "$manifest_header"
|
2024-01-06 08:19:22 +00:00
|
|
|
sed -n '/finish-args:/,${/cleanup:/q;p;}' RetroDECK/net.retrodeck.retrodeck.yml >> "$manifest_header"
|
2023-12-22 09:16:54 +00:00
|
|
|
|
|
|
|
sed -i 's/net.retrodeck.retrodeck/net.retrodeck.mame/' "$manifest_header"
|
|
|
|
|
2023-12-22 10:03:23 +00:00
|
|
|
cat "$manifest_header" > "$mame_manifest"
|
2023-12-22 09:16:54 +00:00
|
|
|
cat "$mame_module" >> "$mame_manifest"
|
|
|
|
|
|
|
|
rm -rf RetroDECK
|