Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/scripts/package_ra_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ def stage_shared_kit(archive, destination, preview):
# POPS payload must match the PR's loader and validator, while extra
# runtime files supplied only by the install kit remain available.
shutil.copytree(ROOT / "POPS", destination / "POPS", dirs_exist_ok=True)
# The same holds for EMBER: an older kit can carry an earlier Ember and its retired
# LICENSE-BETA.txt (renamed LICENSE.txt in Ember 0.8).
shutil.copytree(ROOT / "EMBER", destination / "EMBER", dirs_exist_ok=True)
(destination / "EMBER" / "LICENSE-BETA.txt").unlink(missing_ok=True)
# An older bootstrap kit predates the libsmb2 licence and the CREDITS the verifier now requires.
shutil.copyfile(app.LIBSMB2_LICENCE, destination / "LICENSE-LIBSMB2.txt")
shutil.copyfile(app.CREDITS, destination / "CREDITS")
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/package_release_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def verify(args: argparse.Namespace) -> None:
"POPS/POPSTARTER.KELF",
"POPS/TROJAN_7.BIN",
"EMBER/ember.elf",
"EMBER/LICENSE-BETA.txt",
"EMBER/LICENSE.txt",
"EMBER/Ember Official Webpage.url",
"EMBER/games/Per-Game-Folder/GAME FILES",
"neutrino/neutrino.elf",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs-sync.yml

Large diffs are not rendered by default.

51 changes: 29 additions & 22 deletions .github/workflows/ember-watch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,31 +106,29 @@ jobs:
print('ember.elf: 32-bit little-endian MIPS ELF, %d bytes' % len(data))
PY

# The licence must ship with the ELF, so settle it BEFORE touching either ELF copy. Keep ours only
# when upstream confirms it has no LICENSE-BETA.txt at this tag (HTTP 404); any other failure --
# timeout, rate limit, server error, bad Base64, empty content -- stops the update (CodeRabbit #820).
LIC="$RUNNER_TEMP/ember/LICENSE-BETA.txt"
if gh api "repos/$EMBER_REPO/contents/LICENSE-BETA.txt?ref=$TAG" --jq '.content' > "$RUNNER_TEMP/ember/lic.b64" 2> "$RUNNER_TEMP/ember/lic.err"; then
if ! base64 -d "$RUNNER_TEMP/ember/lic.b64" > "$LIC" || [ ! -s "$LIC" ]; then
echo "Upstream LICENSE-BETA.txt at $TAG did not decode to a non-empty file -- stopping." >&2
exit 1
fi
elif grep -q "HTTP 404" "$RUNNER_TEMP/ember/lic.err"; then
echo "No LICENSE-BETA.txt at $TAG upstream; keeping the bundled licence."
LIC=""
else
echo "Could not read upstream LICENSE-BETA.txt at $TAG -- stopping:" >&2
# The licence must ship with the ELF, so settle it BEFORE touching either ELF copy. Since 0.8 the
# licence is LICENSE.txt (the Beta builds' LICENSE-BETA.txt was retired upstream), and the packaging
# requires EMBER/LICENSE.txt. Any failure to read it -- missing (HTTP 404), timeout, rate limit, server
# error, bad Base64, empty content -- stops the update, so an ELF never ships with the wrong licence.
LIC="$RUNNER_TEMP/ember/LICENSE.txt"
if ! gh api "repos/$EMBER_REPO/contents/LICENSE.txt?ref=$TAG" --jq '.content' > "$RUNNER_TEMP/ember/lic.b64" 2> "$RUNNER_TEMP/ember/lic.err"; then
echo "Could not read upstream LICENSE.txt at $TAG -- stopping:" >&2
cat "$RUNNER_TEMP/ember/lic.err" >&2
exit 1
fi
if ! base64 -d "$RUNNER_TEMP/ember/lic.b64" > "$LIC" || [ ! -s "$LIC" ]; then
echo "Upstream LICENSE.txt at $TAG did not decode to a non-empty file -- stopping." >&2
exit 1
fi

KIT="Example/APP_RIPTOPL-OFFICIALROLLING-VERSION.ZIP/EMBER"
cp -f "$NEW" EMBER/ember.elf
if [ -d "$KIT" ]; then cp -f "$NEW" "$KIT/ember.elf"; fi
if [ -n "$LIC" ]; then
cp -f "$LIC" EMBER/LICENSE-BETA.txt
if [ -d "$KIT" ]; then cp -f "$LIC" "$KIT/LICENSE-BETA.txt"; fi
fi
for DIR in EMBER "$KIT"; do
[ -d "$DIR" ] || continue
cp -f "$NEW" "$DIR/ember.elf"
cp -f "$LIC" "$DIR/LICENSE.txt"
# The retired Beta licence must not sit beside a build it does not govern.
if [ -e "$DIR/LICENSE-BETA.txt" ]; then git rm -q -- "$DIR/LICENSE-BETA.txt"; fi
done
git status --short

- name: Commit to rebuild/main
Expand All @@ -142,13 +140,22 @@ jobs:
UPDATED: ${{ steps.cmp.outputs.updated }}
run: |
set -eu
if git diff --quiet; then
if git diff --quiet && git diff --cached --quiet \
&& [ -z "$(git ls-files --others --exclude-standard EMBER)" ]; then
echo "Nothing changed on disk after bundling; nothing to commit."
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A EMBER "Example/APP_RIPTOPL-OFFICIALROLLING-VERSION.ZIP/EMBER"
# The example kit's folder name ends in .ZIP, which the *.ZIP ignore rule matches, so a plain
# "git add" of it is refused. Its files are tracked: stage their changes with -u, and force-add
# only the one file the update can create there.
KIT="Example/APP_RIPTOPL-OFFICIALROLLING-VERSION.ZIP/EMBER"
git add -A EMBER
if [ -d "$KIT" ]; then
git add -u -- "$KIT"
git add -f -- "$KIT/LICENSE.txt"
fi
git commit -q -F - <<EOF
bundle: update Ember to the official $TAG build ($UPDATED)

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/rolling-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -833,17 +833,17 @@ jobs:
# the loader lists Ember titles whenever a device has an EMBER/ folder, so shipping that
# folder WITHOUT its ember.elf would hand users a library whose rows cannot launch.
test -f EMBER/ember.elf
# Ember's licence (LICENSE-BETA.txt, section 2) permits bundling ONLY IF the build ships
# Ember's licence (LICENSE.txt, section 2) permits bundling ONLY IF the build ships
# unmodified, complete and WITH THE LICENCE FILE, credited to Gageformer by name with a
# link to the official release page. Shipping the ELF without the licence is not a
# missing nicety, it is a breach of the terms that let us ship it at all -- so this is a
# hard failure, exactly like the bios.bin guard below.
test -f EMBER/LICENSE-BETA.txt
test -f EMBER/LICENSE.txt
cp -rf EMBER/. "$PKG/EMBER/"
mkdir -p "$PKG/EMBER/games/Per-Game-Folder"
cp -f "$EXAMPLE/EMBER/games/Per-Game-Folder/GAME FILES" "$PKG/EMBER/games/Per-Game-Folder/GAME FILES"
if [ ! -s "$PKG/EMBER/LICENSE-BETA.txt" ]; then
echo "ERROR: EMBER/LICENSE-BETA.txt did not reach the package -- bundling Ember without" >&2
if [ ! -s "$PKG/EMBER/LICENSE.txt" ]; then
echo "ERROR: EMBER/LICENSE.txt did not reach the package -- bundling Ember without" >&2
echo " its licence breaches section 2(a) of that licence. Refusing to publish." >&2
exit 1
fi
Expand Down
4 changes: 2 additions & 2 deletions CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ Bundled third-party software, shipped in the release package and NOT part of Rip
- Ember, by Gageformer https://github.com/Gageformer/Ember
An independent PS1 emulator written from scratch for the PS2, and RiptOPL's
second PS1 core alongside POPSTARTER. Bundled unmodified with the author's
permission under the Ember Public Beta Testing Licence, shipped in the
package as EMBER/LICENSE-BETA.txt.
permission under the Ember Licence 1.0, shipped in the package as
EMBER/LICENSE.txt.

- RetroAchievements support, by hacan359 (yoba)
https://github.com/hacan359/Open-PS2-Loader/pull/1
Expand Down
135 changes: 0 additions & 135 deletions EMBER/LICENSE-BETA.txt

This file was deleted.

Loading
Loading