2022-10-12 21:03:32 -05:00
|
|
|
#!/bin/bash -ex
|
|
|
|
|
2023-06-26 19:42:00 -05:00
|
|
|
GITDATE="`git show -s --date=short --format='%ad' | sed 's/-//g'`"
|
|
|
|
GITREV="`git show -s --format='%h'`"
|
2024-04-03 17:39:50 -05:00
|
|
|
REV_NAME="lime3ds-unified-source-${GITDATE}-${GITREV}"
|
2023-06-26 19:42:00 -05:00
|
|
|
|
2022-10-12 21:03:32 -05:00
|
|
|
COMPAT_LIST='dist/compatibility_list/compatibility_list.json'
|
|
|
|
|
2023-06-26 19:42:00 -05:00
|
|
|
mkdir artifacts
|
|
|
|
|
2022-10-12 21:03:32 -05:00
|
|
|
pip3 install git-archive-all
|
2024-03-05 00:30:25 -06:00
|
|
|
touch "${COMPAT_LIST}"
|
|
|
|
#wget -q https://api.citra-emu.org/gamedb -O "${COMPAT_LIST}"
|
2022-10-12 21:03:32 -05:00
|
|
|
git describe --abbrev=0 --always HEAD > GIT-COMMIT
|
|
|
|
git describe --tags HEAD > GIT-TAG || echo 'unknown' > GIT-TAG
|
|
|
|
git archive-all --include "${COMPAT_LIST}" --include GIT-COMMIT --include GIT-TAG --force-submodules artifacts/"${REV_NAME}.tar"
|
|
|
|
|
|
|
|
cd artifacts/
|
|
|
|
xz -T0 -9 "${REV_NAME}.tar"
|
|
|
|
sha256sum "${REV_NAME}.tar.xz" > "${REV_NAME}.tar.xz.sha256sum"
|
|
|
|
cd ..
|