Update from upstream script updated

This commit is contained in:
XargonWan 2025-01-15 09:45:59 +09:00
parent 0a2a94cc76
commit 59f9242e0c

View file

@ -1,4 +1,32 @@
#!/bin/bash
git fetch https://github.com/flathub/net.rpcs3.RPCS3 master # Fetch the latest changes from the remote master branch
git merge FETCH_HEAD # Merge the fetched changes into your current branch
target_branch="master"
update_submodules="true"
# Get the repository name
repo_url=$(git remote get-url origin)
repo_name=$(basename -s .git "$repo_url")
echo "Fetching https://github.com/flathub/$repo_name $target_branch"
if [ "$update_submodules" = "true" ]; then
echo "And updating submodules also"
fi
echo ""
# Fetch the latest changes from the remote master branch
git fetch https://github.com/flathub/"$repo_name" "$target_branch"
# Merge the fetched changes into your current branch
git merge FETCH_HEAD
if [ "$update_submodules" = "true" ]; then
# Update submodules to the versions specified in the repo
git submodule update --init --recursive
# Update submodules to the versions specified in the fetched repo
git submodule update --remote
git add shared-modules
git commit -m "Update shared modules"
fi