Pin build-produced shared pack and include it in artifact checksums

This commit is contained in:
unimatrixgit 2026-11-28 22:05:34 +01:00
commit 16b91e5665
3 changed files with 6 additions and 6 deletions

View file

@ -64,7 +64,7 @@ jobs:
mkdir -p dunemenus-artifacts
python3 tools/build-dunemenus-release.py dunemenus-artifacts
printf '%s\n' "$(git rev-parse HEAD)" > dunemenus-artifacts/SOURCE_COMMIT
(cd dunemenus-artifacts && sha256sum -- DuneMenus.jar SOURCE_COMMIT > SHA256SUMS)
(cd dunemenus-artifacts && sha256sum -- DuneMenus.jar DuneRealms-Network-Artwork-v7.zip SOURCE_COMMIT release.json > SHA256SUMS)
- uses: actions/upload-artifact@v3
with:
name: ${{ github.repository == 'dev/MC' && 'DuneMenus-Development' || 'DuneMenus' }}

View file

@ -1,8 +1,8 @@
# Shared and per-world packs have different UUIDs. Publish all pinned archives before deploying this plugin.
id: a7b5ab7d-d8d8-5b51-b016-71a5f4c00008
world:
url: https://www.dunerealms.com/downloads/DuneRealms-Network-Artwork-v6.zip
sha1: f86189d72abc0690a08e01b7707998fabd961b8d
url: https://www.dunerealms.com/downloads/DuneRealms-Network-Artwork-v7.zip
sha1: 2ff3d59b43c4cd876f14d58d2e77e1b60b12cfe3
lobby:
url: https://www.dunerealms.com/downloads/DuneRealms-Network-Artwork-v6.zip
sha1: f86189d72abc0690a08e01b7707998fabd961b8d
url: https://www.dunerealms.com/downloads/DuneRealms-Network-Artwork-v7.zip
sha1: 2ff3d59b43c4cd876f14d58d2e77e1b60b12cfe3

View file

@ -17,7 +17,7 @@ for provider in font['providers']:
if provider.get('type')=='bitmap':
namespace,path=provider['file'].split(':',1)
assert f'assets/{namespace}/textures/{path}' in entries
pack=out/'DuneRealms-Painted-Menus-20261128.zip'
pack=out/'DuneRealms-Network-Artwork-v7.zip'
with zipfile.ZipFile(pack,'w',zipfile.ZIP_DEFLATED,compresslevel=9) as z:
for name,data in sorted(entries.items()):
zi=zipfile.ZipInfo(name,(2026,11,28,0,0,0));zi.compress_type=zipfile.ZIP_DEFLATED;z.writestr(zi,data)