1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 10:57:55 +01:00
This commit is contained in:
Jason N. 2024-03-25 13:34:31 -04:00
parent f857b5fec1
commit f81a3b96a8
3 changed files with 5 additions and 5 deletions

2
.gitignore vendored
View file

@ -11,4 +11,4 @@
/lorax.conf /lorax.conf
/output /output
/*.log /*.log
/cache

View file

@ -156,8 +156,8 @@ runs:
flatpak install --system -y ${{ inputs.flatpak_remote_refs }} ${DIR_REFS} flatpak install --system -y ${{ inputs.flatpak_remote_refs }} ${DIR_REFS}
mv /flatpak/flatpak/repo/refs/heads/deploy/* /flatpak/flatpak/repo/refs/heads/ mv /flatpak/flatpak/repo/refs/heads/deploy/* /flatpak/flatpak/repo/refs/heads/
rmdir /flatpak/flatpak/repo/refs/heads/deploy rmdir /flatpak/flatpak/repo/refs/heads/deploy
cp -R /flatpak/flatpak /flatpak_dir/ cp -R /flatpak/flatpak/* /flatpak_dir/
ostree refs --repo=/flatpak_dir/flatpak/repo ostree refs --repo=/flatpak_dir/repo
EOF EOF
docker run --rm --privileged --entrypoint bash -e FLATPAK_SYSTEM_DIR=/flatpak/flatpak -e FLATPAK_TRIGGERSDIR=/flatpak/triggers --volume ${{ github.workspace }}/${FLATPAK_DIR}:/flatpak_dir ${image} /flatpak_dir/script.sh docker run --rm --privileged --entrypoint bash -e FLATPAK_SYSTEM_DIR=/flatpak/flatpak -e FLATPAK_TRIGGERSDIR=/flatpak/triggers --volume ${{ github.workspace }}/${FLATPAK_DIR}:/flatpak_dir ${image} /flatpak_dir/script.sh
echo "flatpak_dir=${FLATPAK_DIR}" >> $GITHUB_OUTPUT echo "flatpak_dir=${FLATPAK_DIR}" >> $GITHUB_OUTPUT

View file

@ -12,8 +12,8 @@ echo "-chmod 0444 EFI/BOOT/grub.cfg"
if [[ -n "${FLATPAK_DIR}" ]] if [[ -n "${FLATPAK_DIR}" ]]
then then
pushd ${FLATPAK_DIR} > /dev/null pushd ${FLATPAK_DIR}/flatpak > /dev/null
for file in $(find) for file in $(find *)
do do
echo "-map $(pwd)/${file} flatpak/${file}" echo "-map $(pwd)/${file} flatpak/${file}"
echo "-chmod 0444 flatpak/${file}" echo "-chmod 0444 flatpak/${file}"