Merge branch 'cooker-0.8.0b' into feat/esde-3.0
|
@ -113,16 +113,27 @@ jobs:
|
||||||
# if it's a feature branch it will not marked as "latest" cooker version
|
# if it's a feature branch it will not marked as "latest" cooker version
|
||||||
- name: "Set makeLatest (cooker only)"
|
- name: "Set makeLatest (cooker only)"
|
||||||
run: |
|
run: |
|
||||||
if [[ "$BRANCH_NAME" == 'feat/'* ]]; then
|
if [[ "$BRANCH_NAME" == 'feat/'* || "$BRANCH_NAME" == 'ref/'* ]]; then
|
||||||
echo "MAKE_LATEST=false" >> $GITHUB_ENV
|
echo "MAKE_LATEST=false" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo "MAKE_LATEST=true" >> $GITHUB_ENV
|
echo "MAKE_LATEST=true" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# if the branch is coming from a PR the tag should be manually built
|
||||||
|
- name: "Generate version tag"
|
||||||
|
run: |
|
||||||
|
if [[ "$BRANCH_NAME" == 'ref/'* ]]; then
|
||||||
|
pr_number=$(echo ${{env.BRANCH_NAME}} | awk -F'/' '{print $3}')
|
||||||
|
original_branch=$(git ls-remote --heads origin "refs/pull/$pr_number/head" | cut -d'/' -f3)
|
||||||
|
echo "TAG=PR-$pr_number-$original_branch-${{ env.buildid }}" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "TAG=${{env.BRANCH_NAME}}-${{ env.buildid }}" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Publish the flatpak in a new cooker release
|
- name: Publish the flatpak in a new cooker release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
tag: "${{env.BRANCH_NAME}}-${{ env.buildid }}"
|
tag: "${{env.TAG}}"
|
||||||
body: |
|
body: |
|
||||||
# Release Notes (Cooker)
|
# Release Notes (Cooker)
|
||||||
This is a cooker snapshot based on the commit: ${{ github.event.repository.full_name }}@${{github.sha}}.
|
This is a cooker snapshot based on the commit: ${{ github.event.repository.full_name }}@${{github.sha}}.
|
||||||
|
|
|
@ -21,6 +21,7 @@ desktop_mode_warning=true
|
||||||
low_space_warning=true
|
low_space_warning=true
|
||||||
update_check=false
|
update_check=false
|
||||||
update_repo=RetroDECK
|
update_repo=RetroDECK
|
||||||
|
branch=
|
||||||
update_ignore=
|
update_ignore=
|
||||||
cloud_saves=false
|
cloud_saves=false
|
||||||
multi_user_mode=false
|
multi_user_mode=false
|
||||||
|
|
|
@ -7,31 +7,31 @@ writeconfig 0
|
||||||
#
|
#
|
||||||
# CORE SEARCH PATH OPTIONS
|
# CORE SEARCH PATH OPTIONS
|
||||||
#
|
#
|
||||||
homepath /var/config/mame
|
homepath /var/data/mame/plugin-data
|
||||||
rompath RETRODECKROMSDIR
|
rompath RETRODECKROMSDIR/mame/;RETRODECKROMSDIR/arcade/;RETRODECKROMSDIR/bbcmicro/
|
||||||
hashpath /app/share/mame/hash
|
hashpath /var/data/mame/hash
|
||||||
samplepath /app/share/mame/samples
|
samplepath /var/data/mame/assets/samples
|
||||||
artpath RETRODECKHOMEDIR/downloaded_media/arcade/screenshots/
|
artpath /var/data/mame/assets/artwork
|
||||||
ctrlrpath /app/share/mame/ctrlr
|
ctrlrpath /var/config/ctrlr
|
||||||
inipath /var/config/mame
|
inipath /var/config/mame/ini
|
||||||
fontpath /app/bin/
|
fontpath /var/data/mame/assets/fonts
|
||||||
cheatpath /app/share/mame/cheat
|
cheatpath /var/data/mame/cheat
|
||||||
crosshairpath /app/share/mame/crosshair
|
crosshairpath /var/data/mame/assets/crosshair
|
||||||
pluginspath /app/share/mame/plugins
|
pluginspath /var/data/mame/plugins
|
||||||
languagepath /app/share/mame/language
|
languagepath /var/data/mame/assets/language
|
||||||
swpath /app/share/mame/software
|
swpath /var/data/mame/assets/software
|
||||||
|
|
||||||
#
|
#
|
||||||
# CORE OUTPUT DIRECTORY OPTIONS
|
# CORE OUTPUT DIRECTORY OPTIONS
|
||||||
#
|
#
|
||||||
cfg_directory /var/config/mame/cfg
|
cfg_directory /var/config/mame/cfg
|
||||||
nvram_directory /var/config/mame/nvram
|
nvram_directory RETRODECKSAVESDIR/mame-sa/nvram
|
||||||
input_directory /var/config/mame/inp
|
input_directory /var/config/mame/inp
|
||||||
state_directory RETRODECKSAVESDIR/mame-sa/states
|
state_directory RETRODECKSTATESDIR/mame-sa
|
||||||
snapshot_directory RETRODECKHOMEDIR/screenshots
|
snapshot_directory RETRODECKHOMEDIR/screenshots/mame-sa
|
||||||
diff_directory /var/config/mame/diff
|
diff_directory RETRODECKSAVESDIR/mame-sa/diff
|
||||||
comment_directory /var/config/mame/comments
|
comment_directory /var/data/mame/assets/comments
|
||||||
share_directory /var/config/mame/share
|
share_directory /var/data/mame/assets/share
|
||||||
|
|
||||||
#
|
#
|
||||||
# CORE STATE/PLAYBACK OPTIONS
|
# CORE STATE/PLAYBACK OPTIONS
|
||||||
|
@ -234,7 +234,7 @@ output auto
|
||||||
keyboardprovider auto
|
keyboardprovider auto
|
||||||
mouseprovider auto
|
mouseprovider auto
|
||||||
lightgunprovider auto
|
lightgunprovider auto
|
||||||
joystickprovider auto
|
joystickprovider sdljoy
|
||||||
|
|
||||||
#
|
#
|
||||||
# OSD DEBUGGING OPTIONS
|
# OSD DEBUGGING OPTIONS
|
||||||
|
@ -353,7 +353,7 @@ networkprovider auto
|
||||||
#
|
#
|
||||||
# BGFX POST-PROCESSING OPTIONS
|
# BGFX POST-PROCESSING OPTIONS
|
||||||
#
|
#
|
||||||
bgfx_path bgfx
|
bgfx_path /app/share/mame/bgfx
|
||||||
bgfx_backend auto
|
bgfx_backend auto
|
||||||
bgfx_debug 0
|
bgfx_debug 0
|
||||||
bgfx_screen_chains
|
bgfx_screen_chains
|
||||||
|
|
|
@ -1,26 +1,26 @@
|
||||||
#
|
#
|
||||||
# UI SEARCH PATH OPTIONS
|
# UI SEARCH PATH OPTIONS
|
||||||
#
|
#
|
||||||
historypath history;dats;.
|
historypath /var/data/mame/dats
|
||||||
categorypath folders
|
categorypath /var/data/mame/folders
|
||||||
cabinets_directory cabinets;cabdevs
|
cabinets_directory /var/data/mame/assets/cabinets
|
||||||
cpanels_directory cpanel
|
cpanels_directory /var/data/mame/assets/cpanel
|
||||||
pcbs_directory pcb
|
pcbs_directory /var/data/mame/assets/pcb
|
||||||
flyers_directory flyers
|
flyers_directory /var/data/mame/assets/flyers
|
||||||
titles_directory titles
|
titles_directory /var/data/mame/assets/titles
|
||||||
ends_directory ends
|
ends_directory /var/data/mame/assets/ends
|
||||||
marquees_directory marquees;RETRODECKHOMEDIR/downloaded_media/arcade/marquees
|
marquees_directory /var/data/mame/assets/marquees
|
||||||
artwork_preview_directory "artwork preview;artpreview"
|
artwork_preview_directory /var/data/mame/assets/artwork-preview
|
||||||
bosses_directory bosses
|
bosses_directory /var/data/mame/assets/bosses
|
||||||
logos_directory logo
|
logos_directory /var/data/mame/assets/logo
|
||||||
scores_directory scores
|
scores_directory /var/data/mame/assets/scores
|
||||||
versus_directory versus
|
versus_directory /var/data/mame/assets/versus
|
||||||
gameover_directory gameover
|
gameover_directory /var/data/mame/assets/gameover
|
||||||
howto_directory howto
|
howto_directory /var/data/mame/assets/howto
|
||||||
select_directory select
|
select_directory /var/data/mame/assets/select
|
||||||
icons_directory icons
|
icons_directory /var/data/mame/assets/icons
|
||||||
covers_directory covers;RETRODECKHOMEDIR/downloaded_media/arcade/covers
|
covers_directory /var/data/mame/assets/covers
|
||||||
ui_path ui
|
ui_path /var/data/mame/assets/ui
|
||||||
|
|
||||||
#
|
#
|
||||||
# UI MISC OPTIONS
|
# UI MISC OPTIONS
|
||||||
|
@ -62,7 +62,7 @@ remember_last 0
|
||||||
last_used_filter Available
|
last_used_filter Available
|
||||||
system_right_panel image
|
system_right_panel image
|
||||||
software_right_panel image
|
software_right_panel image
|
||||||
system_right_image cover
|
system_right_image snap
|
||||||
software_right_image snap
|
software_right_image snap
|
||||||
enlarge_snaps 1
|
enlarge_snaps 1
|
||||||
forced4x3 1
|
forced4x3 1
|
||||||
|
|
|
@ -59,6 +59,7 @@ check_for_version_update() {
|
||||||
# configurator_generic_dialog "RetroDECK Online Update" "The update process is now complete!\n\nPlease restart RetroDECK to keep the fun going."
|
# configurator_generic_dialog "RetroDECK Online Update" "The update process is now complete!\n\nPlease restart RetroDECK to keep the fun going."
|
||||||
# exit 1
|
# exit 1
|
||||||
# fi
|
# fi
|
||||||
|
# TODO: add the logic to check and update the branch from the configuration file
|
||||||
choice=$(zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap --ok-label="OK" --extra-button="Ignore this version" \
|
choice=$(zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap --ok-label="OK" --extra-button="Ignore this version" \
|
||||||
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||||
--title "RetroDECK Update Available" \
|
--title "RetroDECK Update Available" \
|
||||||
|
|
|
@ -562,6 +562,66 @@ easter_eggs() {
|
||||||
cp -f "$new_splash_file" "$current_splash_file" # Deploy assigned splash screen
|
cp -f "$new_splash_file" "$current_splash_file" # Deploy assigned splash screen
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# TODO: this function is not yet used
|
||||||
|
branch_selector() {
|
||||||
|
# Fetch branches from GitHub API excluding "main"
|
||||||
|
branches=$(curl -s https://api.github.com/repos/XargonWan/RetroDECK/branches | grep '"name":' | awk -F '"' '$4 != "main" {print $4}')
|
||||||
|
# TODO: logging - Fetching branches from GitHub API
|
||||||
|
|
||||||
|
# Create an array to store branch names
|
||||||
|
branch_array=()
|
||||||
|
|
||||||
|
# Loop through each branch and add it to the array
|
||||||
|
while IFS= read -r branch; do
|
||||||
|
branch_array+=("$branch")
|
||||||
|
done <<< "$branches"
|
||||||
|
# TODO: logging - Creating array of branch names
|
||||||
|
|
||||||
|
# Display branches in a Zenity list dialog
|
||||||
|
selected_branch=$(
|
||||||
|
zenity --list \
|
||||||
|
--icon-name=net.retrodeck.retrodeck \
|
||||||
|
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||||
|
--title "RetroDECK Configurator Cooker Branch - Select Branch" \
|
||||||
|
--column="Branch" --width=1280 --height=800 "${branch_array[@]}"
|
||||||
|
)
|
||||||
|
# TODO: logging - Displaying branches in Zenity list dialog
|
||||||
|
|
||||||
|
# Display warning message
|
||||||
|
if [ $selected_branch ]; then
|
||||||
|
zenity --question --icon-name=net.retrodeck.retrodeck --no-wrap \
|
||||||
|
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||||
|
--title "RetroDECK Configurator Cooker Branch - Switch Branch" \
|
||||||
|
--text="Are you sure you want to move to \"$selected_branch\" branch?"
|
||||||
|
# Output selected branch
|
||||||
|
echo "Selected branch: $selected_branch" # TODO: logging - Outputting selected branch
|
||||||
|
set_setting_value "$rd_conf" "branch" "$selected_branch" "retrodeck" "options"
|
||||||
|
branch="feat/sftp"
|
||||||
|
# Get the latest release for the specified branch
|
||||||
|
latest_release=$(curl -s "https://api.github.com/repos/XargonWan/RetroDECK-cooker/releases" | jq ".[] | select(.target_commitish == \"$branch_name\") | .tag_name" | head -n 1)
|
||||||
|
# TODO: this will fail because the builds coming from the PRs are not published yet, we should fix them
|
||||||
|
# TODO: form a proper url: $flatpak_file_url
|
||||||
|
configurator_generic_dialog "RetroDECK Online Update" "The update process may take several minutes.\n\nAfter the update is complete, RetroDECK will close. When you run it again you will be using the latest version."
|
||||||
|
(
|
||||||
|
local desired_flatpak_file=$(curl --silent $flatpak_file_url | grep '"browser_download_url":' | sed -E 's/.*"([^"]+)".*/\1/')
|
||||||
|
mkdir -p "$rdhome/RetroDECK_Updates"
|
||||||
|
wget -P "$rdhome/RetroDECK_Updates" $desired_flatpak_file
|
||||||
|
flatpak-spawn --host flatpak remove --noninteractive -y net.retrodeck.retrodeck # Remove current version before installing new one, to avoid duplicates
|
||||||
|
flatpak-spawn --host flatpak install --user --bundle --noninteractive -y "$rdhome/RetroDECK_Updates/RetroDECK-cooker.flatpak"
|
||||||
|
rm -rf "$rdhome/RetroDECK_Updates" # Cleanup old bundles to save space
|
||||||
|
) |
|
||||||
|
zenity --icon-name=net.retrodeck.retrodeck --progress --no-cancel --pulsate --auto-close \
|
||||||
|
--window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" \
|
||||||
|
--title "RetroDECK Updater" \
|
||||||
|
--text="RetroDECK is updating to the latest \"$selected_branch\" version, please wait."
|
||||||
|
configurator_generic_dialog "RetroDECK Online Update" "The update process is now complete!\n\nPlease restart RetroDECK to keep the fun going."
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
configurator_generic_dialog "No branch selected, exiting."
|
||||||
|
# TODO: logging
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
quit_retrodeck() {
|
quit_retrodeck() {
|
||||||
pkill -f retrodeck
|
pkill -f retrodeck
|
||||||
pkill -f es-de
|
pkill -f es-de
|
||||||
|
|
|
@ -712,11 +712,11 @@ prepare_component() {
|
||||||
mkdir -p $saves_folder/mame-sa
|
mkdir -p $saves_folder/mame-sa
|
||||||
mkdir -p "/var/config/mame"
|
mkdir -p "/var/config/mame"
|
||||||
dir_prep "$saves_folder/mame-sa/hiscore" "/var/config/mame/hiscore"
|
dir_prep "$saves_folder/mame-sa/hiscore" "/var/config/mame/hiscore"
|
||||||
cp -fvr "$emuconfigs/mame/**" "/var/config/mame"
|
cp -fvr "$emuconfigs/mame/"** "/var/config/mame"
|
||||||
sed -i 's#RETRODECKROMSDIR#'$roms_folder'#g' "/var/config/mame/*.ini"
|
sed -i 's#RETRODECKROMSDIR#'$roms_folder'#g' "/var/config/mame/*.ini"
|
||||||
sed -i 's#RETRODECKHOMESDIR#'$rdhome'#g' "/var/config/mame/*.ini"
|
sed -i 's#RETRODECKHOMESDIR#'$rdhome'#g' "/var/config/mame/*.ini"
|
||||||
sed -i 's#RETRODECKSAVESDIR#'$rdhome'#g' "/var/config/mame/*.ini"
|
sed -i 's#RETRODECKSAVESDIR#'$rdhome'#g' "/var/config/mame/*.ini"
|
||||||
|
sed -i 's#RETRODECKSTATESDIR#'$rdhome'#g' "/var/config/mame/*.ini"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$component" =~ ^(gzdoom|GZDOOM|all)$ ]]; then
|
if [[ "$component" =~ ^(gzdoom|GZDOOM|all)$ ]]; then
|
||||||
|
|
BIN
res/binding_icons/rd-pc-call.png
Normal file
After Width: | Height: | Size: 440 B |
BIN
res/binding_icons/rd-pc-close.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
res/binding_icons/rd-pc-fight.png
Normal file
After Width: | Height: | Size: 278 B |
BIN
res/binding_icons/rd-pc-give.png
Normal file
After Width: | Height: | Size: 377 B |
BIN
res/binding_icons/rd-pc-look.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
res/binding_icons/rd-pc-move.png
Normal file
After Width: | Height: | Size: 277 B |
BIN
res/binding_icons/rd-pc-open.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
res/binding_icons/rd-pc-pickup.png
Normal file
After Width: | Height: | Size: 340 B |
BIN
res/binding_icons/rd-pc-pull.png
Normal file
After Width: | Height: | Size: 447 B |
BIN
res/binding_icons/rd-pc-push.png
Normal file
After Width: | Height: | Size: 341 B |
BIN
res/binding_icons/rd-pc-read.png
Normal file
After Width: | Height: | Size: 747 B |
BIN
res/binding_icons/rd-pc-talk.png
Normal file
After Width: | Height: | Size: 591 B |
BIN
res/binding_icons/rd-pc-use.png
Normal file
After Width: | Height: | Size: 1.5 KiB |