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