2022-10-13 04:03:32 +02:00
|
|
|
#!/bin/bash -ex
|
|
|
|
|
2023-06-27 02:42:00 +02:00
|
|
|
GITDATE="`git show -s --date=short --format='%ad' | sed 's/-//g'`"
|
|
|
|
GITREV="`git show -s --format='%h'`"
|
2024-05-27 01:28:14 +02:00
|
|
|
|
|
|
|
# Determine the name of the release being built.
|
|
|
|
if [[ "$GITHUB_REF_TYPE" == "tag" ]]; then
|
|
|
|
RELEASE_NAME=lime3ds-unified-source-$GITHUB_REF_NAME
|
|
|
|
else
|
|
|
|
RELEASE_NAME=lime3ds-unified-source-head
|
|
|
|
fi
|
2023-06-27 02:42:00 +02:00
|
|
|
|
2022-10-13 04:03:32 +02:00
|
|
|
COMPAT_LIST='dist/compatibility_list/compatibility_list.json'
|
|
|
|
|
2023-06-27 02:42:00 +02:00
|
|
|
mkdir artifacts
|
|
|
|
|
2022-10-13 04:03:32 +02:00
|
|
|
pip3 install git-archive-all
|
2024-03-05 07:30:25 +01:00
|
|
|
touch "${COMPAT_LIST}"
|
|
|
|
#wget -q https://api.citra-emu.org/gamedb -O "${COMPAT_LIST}"
|
2022-10-13 04:03:32 +02:00
|
|
|
git describe --abbrev=0 --always HEAD > GIT-COMMIT
|
|
|
|
git describe --tags HEAD > GIT-TAG || echo 'unknown' > GIT-TAG
|
2024-05-27 01:28:14 +02:00
|
|
|
git archive-all --include "${COMPAT_LIST}" --include GIT-COMMIT --include GIT-TAG --force-submodules artifacts/"${RELEASE_NAME}.tar"
|
2022-10-13 04:03:32 +02:00
|
|
|
|
|
|
|
cd artifacts/
|
2024-05-27 01:28:14 +02:00
|
|
|
xz -T0 -9 "${RELEASE_NAME}.tar"
|
|
|
|
sha256sum "${RELEASE_NAME}.tar.xz" > "${RELEASE_NAME}.tar.xz.sha256sum"
|
2022-10-13 04:03:32 +02:00
|
|
|
cd ..
|