mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-23 22:45:38 +00:00
DEVELOPER_TOOLBOX: fixing local build
This commit is contained in:
parent
214e907ecc
commit
21834feead
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -18,7 +18,7 @@ backup
|
|||
tmp
|
||||
.godot
|
||||
rd-submodules/es-de/patches-tmp*
|
||||
.local/
|
||||
retrodeck-repo
|
||||
buildid
|
||||
*.bak
|
||||
incconfigs/
|
||||
|
|
|
@ -40,19 +40,19 @@ release_snippet="\
|
|||
xml_content=$(cat "$appdata_file")
|
||||
|
||||
# Replace RELEASE_NOTES_PLACEHOLDER with the actual release notes
|
||||
# TODO
|
||||
git clone https://github.com/XargonWan/RetroDECK.wiki.git /tmp/wiki
|
||||
# # TODO
|
||||
# git clone https://github.com/XargonWan/RetroDECK.wiki.git /tmp/wiki
|
||||
|
||||
# Path to the markdown file
|
||||
wiki="/tmp/wiki/Version-history:-Patch-Notes.md"
|
||||
# Read the markdown file until the first occurrence of "---"
|
||||
latest_version_notes=""
|
||||
while IFS= read -r line; do
|
||||
if [ "$line" = "---" ]; then
|
||||
break
|
||||
fi
|
||||
latest_version_notes+="$line\n"
|
||||
done < "$wiki"
|
||||
# # Path to the markdown file
|
||||
# wiki="/tmp/wiki/Version-history:-Patch-Notes.md"
|
||||
# # Read the markdown file until the first occurrence of "---"
|
||||
# latest_version_notes=""
|
||||
# while IFS= read -r line; do
|
||||
# if [ "$line" = "---" ]; then
|
||||
# break
|
||||
# fi
|
||||
# latest_version_notes+="$line\n"
|
||||
# done < "$wiki"
|
||||
|
||||
# Extract the version number
|
||||
version_number="${latest_version_notes#*# RetroDECK }" # Remove text before "# RetroDECK "
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
# This is building the bundle RetroDECK.flatpak after the download and build steps are done
|
||||
|
||||
if [ "${GITHUB_REF##*/}" = "main" ]; then
|
||||
flatpak build-bundle "${GITHUB_WORKSPACE}/.local" "$GITHUB_WORKSPACE/RetroDECK.flatpak" net.retrodeck.retrodeck
|
||||
flatpak build-bundle "${GITHUB_WORKSPACE}/retrodeck-repo" "$GITHUB_WORKSPACE/RetroDECK.flatpak" net.retrodeck.retrodeck
|
||||
sha256sum RetroDECK.flatpak > RetroDECK.flatpak.sha
|
||||
else
|
||||
flatpak build-bundle "${GITHUB_WORKSPACE}/.local" "$GITHUB_WORKSPACE/RetroDECK-cooker.flatpak" net.retrodeck.retrodeck
|
||||
flatpak build-bundle "${GITHUB_WORKSPACE}/retrodeck-repo" "$GITHUB_WORKSPACE/RetroDECK-cooker.flatpak" net.retrodeck.retrodeck
|
||||
sha256sum RetroDECK-cooker.flatpak > RetroDECK-cooker.flatpak.sha
|
||||
fi
|
|
@ -12,12 +12,12 @@ else
|
|||
FOLDER=retrodeck-flatpak-cooker
|
||||
fi
|
||||
|
||||
mkdir -vp "${GITHUB_WORKSPACE}"/{.local,retrodeck-flatpak-cooker}
|
||||
mkdir -vp "${GITHUB_WORKSPACE}"/{retrodeck-repo,retrodeck-flatpak-cooker}
|
||||
|
||||
flatpak-builder --user --force-clean \
|
||||
--install-deps-from=flathub \
|
||||
--install-deps-from=flathub-beta \
|
||||
--repo="${GITHUB_WORKSPACE}/.local" \
|
||||
--repo="${GITHUB_WORKSPACE}/retrodeck-repo" \
|
||||
--download-only \
|
||||
"${GITHUB_WORKSPACE}/${FOLDER}" \
|
||||
net.retrodeck.retrodeck.yml
|
||||
|
|
|
@ -12,13 +12,14 @@ else
|
|||
FOLDER=retrodeck-flatpak-cooker
|
||||
fi
|
||||
|
||||
mkdir -vp ${GITHUB_WORKSPACE}/.local
|
||||
mkdir -vp ${GITHUB_WORKSPACE}/retrodeck-repo
|
||||
mkdir -vp ${GITHUB_WORKSPACE}/"$FOLDER"
|
||||
|
||||
flatpak-builder --user --force-clean \
|
||||
--install-deps-from=flathub \
|
||||
--install-deps-from=flathub-beta \
|
||||
--repo=${GITHUB_WORKSPACE}/.local \
|
||||
--repo=${GITHUB_WORKSPACE}/retrodeck-repo \
|
||||
--disable-download \
|
||||
$disable_rofiles_fuse \
|
||||
"${GITHUB_WORKSPACE}/$FOLDER" \
|
||||
net.retrodeck.retrodeck.yml
|
|
@ -5,6 +5,11 @@
|
|||
git submodule update --init --recursive
|
||||
|
||||
export GITHUB_WORKSPACE="."
|
||||
export $disable_rofiles_fuse="--disable-rofiles-fuse"
|
||||
|
||||
# Initialize the Flatpak repo
|
||||
ostree init --mode=archive-z2 --repo=${GITHUB_WORKSPACE}/retrodeck-repo
|
||||
|
||||
cp net.retrodeck.retrodeck.appdata.xml net.retrodeck.retrodeck.appdata.xml.bak
|
||||
cp net.retrodeck.retrodeck.yml net.retrodeck.retrodeck.yml.bak
|
||||
|
||||
|
|
Loading…
Reference in a new issue