Merge branch 'cooker' into feat/cheevos

This commit is contained in:
XargonWan 2024-07-18 22:41:03 +09:00
commit 842888327c
8 changed files with 62 additions and 12 deletions

View file

@ -64,6 +64,9 @@ jobs:
# if the branch is coming from a PR the tag should be manually built # if the branch is coming from a PR the tag should be manually built
- name: "Generate version tag" - name: "Generate version tag"
run: | run: |
source automation_tools/version_extractor.sh
MANIFEST_VERSION="$(fetch_manifest_version)"
echo "MANIFEST_VERSION=$MANIFEST_VERSION" >> $GITHUB_ENV
if [[ "$BRANCH_NAME" == 'refs/'* ]]; then if [[ "$BRANCH_NAME" == 'refs/'* ]]; then
pr_number=$(echo ${{env.BRANCH_NAME}} | awk -F'/' '{print $3}') pr_number=$(echo ${{env.BRANCH_NAME}} | awk -F'/' '{print $3}')
source_branch=$(curl -s "https://api.github.com/repos/XargonWan/RetroDECK/pulls/$pr_number" | jq -r '.head.ref') source_branch=$(curl -s "https://api.github.com/repos/XargonWan/RetroDECK/pulls/$pr_number" | jq -r '.head.ref')
@ -71,9 +74,11 @@ jobs:
echo "[DEBUG] source branch is: $source_branch" echo "[DEBUG] source branch is: $source_branch"
echo "TAG=PR-$pr_number-$source_branch-${{ env.buildid }}" >> $GITHUB_ENV echo "TAG=PR-$pr_number-$source_branch-${{ env.buildid }}" >> $GITHUB_ENV
else else
echo "TAG=${{env.BRANCH_NAME}}-${{ env.buildid }}" >> $GITHUB_ENV TAG="$MANIFEST_VERSION-${{ env.buildid }}"
echo "TAG=$TAG" >> $GITHUB_ENV
fi fi
echo "Version TAG: ${{ env.TAG }}" echo "MANIFEST_VERSION: $MANIFEST_VERSION"
echo "Version TAG: $TAG"
# backing up manifest in case download fails and hashes must be recalculated # backing up manifest in case download fails and hashes must be recalculated
- name: Manifest backup - name: Manifest backup
@ -159,6 +164,17 @@ jobs:
repo: RetroDECK-cooker repo: RetroDECK-cooker
continue-on-error: true continue-on-error: true
- name: Rewrite Tag
run: |
git submodule deinit -f --all
git fetch --tags
if git rev-parse --verify "${{ env.TAG }}" >/dev/null 2>&1; then # if the tag exists
git tag -d "${{ env.TAG }}" # remove it from local repo
git push --delete origin "${{ env.TAG }}" # and from remote
fi
git tag "${{ env.TAG }}" # Create the tag locally
git push origin "${{ env.TAG }}" # Push the new tag in the remote repo
# In case it cannot publish the release at least it's providing the flatpak file for creating a manual release # In case it cannot publish the release at least it's providing the flatpak file for creating a manual release
- name: Upload RetroDECK-cooker.flatpak - name: Upload RetroDECK-cooker.flatpak
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3

View file

@ -115,6 +115,17 @@ jobs:
repo: RetroDECK repo: RetroDECK
continue-on-error: true continue-on-error: true
- name: Rewrite Tag
run: |
git submodule deinit -f --all
git fetch --tags
if git rev-parse --verify "${{ env.REL_VER }}" >/dev/null 2>&1; then # if the tag exists
git tag -d "${{ env.REL_VER }}" # remove it from local repo
git push --delete origin "${{ env.REL_VER }}" # and from remote
fi
git tag "${{ env.REL_VER }}" # Create the tag locally
git push origin "${{ env.REL_VER }}" # Push the new tag in the remote repo
# In case it cannot publish the release at least it's providing the flatpak file for creating a manual release # In case it cannot publish the release at least it's providing the flatpak file for creating a manual release
- name: Upload RetroDECK.flatpak - name: Upload RetroDECK.flatpak
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
@ -166,6 +177,7 @@ jobs:
-H "Content-Type: multipart/form-data" \ -H "Content-Type: multipart/form-data" \
-F "attachment=@RetroDECK-Artifact.tar.gz" \ -F "attachment=@RetroDECK-Artifact.tar.gz" \
"http://$UPLOAD_HOST/api/v1/repos/$ORGANIZATION/$REPO/releases/$release_id/assets?name=RetroDECK-Artifact.tar.gz" "http://$UPLOAD_HOST/api/v1/repos/$ORGANIZATION/$REPO/releases/$release_id/assets?name=RetroDECK-Artifact.tar.gz"
continue-on-error: true # this will be in place until we reate an artifacts website that bypasses cloudflare limit
- name: Upload RetroDECK.flatpak.sha to Gitea Release - name: Upload RetroDECK.flatpak.sha to Gitea Release
run: | run: |

View file

@ -42,8 +42,8 @@ appdata_version=$(fetch_appdata_version)
echo -e "Appdata:\t\t$appdata_version" echo -e "Appdata:\t\t$appdata_version"
# Additional checks # Additional checks
if [[ "$manifest_version" == "main" || "$manifest_version" == "THISBRANCH" ]]; then if [[ "$manifest_version" == "main" || "$manifest_version" == "THISBRANCH" || "$manifest_version" == *"cooker"* ]]; then
echo "Manifest version cannot be 'main' or 'THISBRANCH'. Please fix it." echo "Manifest version cannot be 'main', 'THISBRANCH', or contain 'cooker'. Please fix it."
exit 1 exit 1
fi fi

View file

@ -32,3 +32,5 @@ fetch_manifest_version(){
manifest_version=$(echo "$manifest_version" | awk '{$1=$1;print}') manifest_version=$(echo "$manifest_version" | awk '{$1=$1;print}')
echo "$manifest_version" echo "$manifest_version"
} }
echo "Version extractor functions loaded"

View file

@ -51,10 +51,17 @@ Threads = True
ISOPath0 = ISOPath0 =
ISOPath1 = ISOPath1 =
ISOPaths = 2 ISOPaths = 2
WiiSDCardPath =
WirelessMac = WirelessMac =
HotkeysRequireFocus = True HotkeysRequireFocus = True
RecursiveISOPaths = False RecursiveISOPaths = False
NANDRootPath =
DumpPath = /var/data/dolphin-emu/Dump/
LoadPath = /var/data/dolphin-emu/Load/
NANDRootPath = /var/data/dolphin-emu/Wii/
ResourcePackPath = /var/data/dolphin-emu/ResourcePacks/
WFSPath =
WiiSDCardPath =
WiiSDCardSyncFolder = /var/data/dolphin-emu/Load/WiiSDSync/
[Interface] [Interface]
ConfirmStop = True ConfirmStop = True
CursorVisibility = 0 CursorVisibility = 0
@ -63,6 +70,14 @@ PauseOnFocusLost = False
ShowActiveTitle = True ShowActiveTitle = True
UseBuiltinTitleDatabase = True UseBuiltinTitleDatabase = True
UsePanicHandlers = True UsePanicHandlers = True
[NetPlay]
TraversalChoice = direct
[Core]
SelectedLanguage = 0
SerialPort1 = 255
SkipIPL = True
SlotA = 8
SlotB = 255
[BluetoothPassthrough] [BluetoothPassthrough]
Enabled = False Enabled = False
[DSP] [DSP]

View file

@ -42,12 +42,17 @@ Threads = True
[General] [General]
ISOPath0 = RETRODECKHOMEDIR/roms/wii ISOPath0 = RETRODECKHOMEDIR/roms/wii
ISOPath1 = RETRODECKHOMEDIR/roms/gc ISOPath1 = RETRODECKHOMEDIR/roms/gc
ISOPaths = 3 ISOPaths = 2
WiiSDCardPath = RETRODECKHOMEDIR/saves/wii/dolphin/sd.raw WiiSDCardPath = RETRODECKHOMEDIR/saves/wii/dolphin/sd.raw
WirelessMac = 00:17:ab:83:9b:d4 WirelessMac = 00:17:ab:83:9b:d4
HotkeysRequireFocus = True HotkeysRequireFocus = True
RecursiveISOPaths = True RecursiveISOPaths = True
ISOPath2 = RETRODECKHOMEDIR/roms/wii DumpPath = /var/data/dolphin-emu/Dump/
LoadPath = /var/data/dolphin-emu/Load/
NANDRootPath = /var/data/dolphin-emu/Wii/
ResourcePackPath = /var/data/dolphin-emu/ResourcePacks/
WFSPath =
WiiSDCardSyncFolder = /var/data/dolphin-emu/Load/WiiSDSync/
[NetPlay] [NetPlay]
TraversalChoice = direct TraversalChoice = direct
[BluetoothPassthrough] [BluetoothPassthrough]

View file

@ -67,7 +67,7 @@
<project_license>GPL-3.0</project_license> <project_license>GPL-3.0</project_license>
<metadata_license>CC0-1.0</metadata_license> <metadata_license>CC0-1.0</metadata_license>
<releases> <releases>
<release version="0.8.2b" date="2024-07-16"> <release version="0.8.2b" date="2024-07-17">
<url>https://github.com/XargonWan/RetroDECK/releases/tag/0.8.2b</url> <url>https://github.com/XargonWan/RetroDECK/releases/tag/0.8.2b</url>
<description> <description>
<p>Changes:</p> <p>Changes:</p>

View file

@ -77,8 +77,8 @@ modules:
- | - |
# on main please update this with the version variable, eg: VERSION=0.8.0b # on main please update this with the version variable, eg: VERSION=0.8.0b
# on cooker will be THISBRANCH # on cooker will be VERSION=cooker-0.9.0b for example
VERSION=THISBRANCH VERSION=cooker-0.8.2b
git checkout ${GITHUB_REF_NAME} git checkout ${GITHUB_REF_NAME}
mkdir -p ${FLATPAK_DEST}/retrodeck/ mkdir -p ${FLATPAK_DEST}/retrodeck/
@ -716,7 +716,7 @@ modules:
# fatal: remote transport reported error # fatal: remote transport reported error
# url: ssh://git@github.com/dolphin-emu/dolphin.git # url: ssh://git@github.com/dolphin-emu/dolphin.git
url: https://github.com/dolphin-emu/dolphin.git url: https://github.com/dolphin-emu/dolphin.git
commit: 505fe5cc0e3123746e673ecca77c04ec72ff106f commit: cc3ff347b437fd80f3a2880d1bbc7ba2d5f191f4
# x-checker-data: # x-checker-data:
# type: json # type: json
# url: https://dolphin-emu.org/update/latest/beta # url: https://dolphin-emu.org/update/latest/beta