XargonWan / RetroDECK

RetroDECK brings you an all-in-one sandboxed application to play your retro games (and even not-so-retro games) on Linux/SteamOS.
https://retrodeck.net
GNU General Public License v3.0
726 stars 32 forks source link

Building RetroDeck in another Repository under a different branch name. #827

Open monkeyx-net opened 2 days ago

monkeyx-net commented 2 days ago

As part of adding Ruffle to RetroDeck I decided that it would be better to build this a feature branch rather than as a cooker.

I worked around this issue by creating a new place holder called RDREPO that could be placed in the manifest file as URL where required.

This line has been added to the automation tasklist.cfg

repo^RDREPO

In the pre-build automation this line was added to reflect the repo the build is running from

current_repo=$(git remote get-url origin)

This repo function was also added

  "repo" )
      echo
      echo "Placeholder text: $placeholder"
      echo "Current repo:" "$current_repo"
      echo
      /bin/sed -i 's^'"$placeholder"'^'"$current_repo"'^g' $rd_manifest
    ;;

I will leave these changes in and manually change the repo back in automation tasklist.cfg

Pending further feedback on how to do this