mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-12 00:23:48 +03:00
Fixes an issue where act wouldn't use the correct container and so couldn't find a compatible python version, so it would fail to build.
46 lines
1.4 KiB
Bash
Executable File
46 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
type=$1
|
|
# bump=$2
|
|
|
|
oldartifactsdir="old"
|
|
|
|
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
|
|
cd "$parent_path"
|
|
|
|
artifactfolders=$(find artifacts/ -maxdepth 1 -mindepth 1 -type d)
|
|
if [[ ${#artifactfolders[@]} > 0 ]]; then
|
|
for i in ${artifactfolders[@]}; do
|
|
foldername=$(dirname $i)
|
|
subfoldername=$(basename $i)
|
|
out=$foldername/$oldartifactsdir/$subfoldername-$(date +'%s')
|
|
if [[ ! "$subfoldername" =~ "$oldartifactsdir" ]]; then
|
|
mkdir -p $out
|
|
mv $i $out
|
|
printf "Moved "${foldername}"/"${subfoldername}" to "${out}" \n"
|
|
fi
|
|
done
|
|
fi
|
|
|
|
cd ..
|
|
|
|
if [[ "$type" == "release" ]]; then
|
|
printf "release!\n"
|
|
act workflow_dispatch -e act/release.json --artifact-server-path act/artifacts --container-architecture linux/amd64 --platform ubuntu-22.04=catthehacker/ubuntu:act-22.04
|
|
elif [[ "$type" == "prerelease" ]]; then
|
|
printf "prerelease!\n"
|
|
act workflow_dispatch -e act/prerelease.json --artifact-server-path act/artifacts --container-architecture linux/amd64 --platform ubuntu-22.04=catthehacker/ubuntu:act-22.04
|
|
else
|
|
printf "Release type unspecified/badly specified.\n"
|
|
printf "Options: 'release' or 'prerelease'\n"
|
|
fi
|
|
|
|
cd act/artifacts
|
|
|
|
if [[ -d "1" ]]; then
|
|
cd "1/artifact"
|
|
cp "PluginLoader.gz__" "PluginLoader.gz"
|
|
gzip -d "PluginLoader.gz"
|
|
chmod +x PluginLoader
|
|
fi
|