Preserve installed menu methods when enabling proxy pack readiness
This commit is contained in:
parent
24a1c246e0
commit
acb09368f1
1 changed files with 233 additions and 18 deletions
49
.forgejo/workflows/lobby-pack-session.yml
Normal file
49
.forgejo/workflows/lobby-pack-session.yml
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
name: Lobby Pack Session Overlay
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: ['feat/lobby-pack-session-*']
|
||||
|
||||
jobs:
|
||||
lobby-pack-session:
|
||||
runs-on: dune-ci
|
||||
steps:
|
||||
- name: Check out exact revision
|
||||
shell: bash
|
||||
env:
|
||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git init .
|
||||
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/plugins.git "$GITHUB_SHA"
|
||||
git checkout --detach FETCH_HEAD
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: '21'
|
||||
- uses: gradle/actions/setup-gradle@v4
|
||||
with:
|
||||
gradle-version: '9.2.1'
|
||||
- name: Test proof handling and package the scoped proxy and GUI artifacts
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
gradle --no-daemon -p DuneRealmsGUI test jar
|
||||
gradle --no-daemon -p DunePackProxy jar
|
||||
mkdir lobby-pack-session
|
||||
PYTHONPATH=tools python3 - <<'PY'
|
||||
from pathlib import Path
|
||||
from plugin_network_pack_menu import NEW, PATCHED
|
||||
from plugin_wild_update import read_archive, write_archive
|
||||
installed = read_archive(Path("DuneRealmsGUI/build/libs/DunerealmsGUI.jar").read_bytes())
|
||||
Path("lobby-pack-session/gui-donor.zip").write_bytes(write_archive({entry: installed[entry] for entry in PATCHED + NEW}))
|
||||
PY
|
||||
cp DunePackProxy/build/libs/DunePackProxy.jar lobby-pack-session/
|
||||
cp tools/{NetworkPackMenuMerge.java,plugin_network_pack_menu.py,plugin_wild_update.py,build_network_pack.py} lobby-pack-session/
|
||||
printf '%s\n' "$GITHUB_SHA" > lobby-pack-session/SOURCE_COMMIT
|
||||
(cd lobby-pack-session && sha256sum -- *.zip *.jar *.py *.java SOURCE_COMMIT > SHA256SUMS)
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: DuneRealms-Lobby-Pack-Session
|
||||
path: lobby-pack-session
|
||||
if-no-files-found: error
|
||||
Loading…
Reference in a new issue

Staff