Skip to content

Commit

Permalink
Create a release archive
Browse files Browse the repository at this point in the history
  • Loading branch information
9ary committed Dec 6, 2023
1 parent cda0675 commit 99d1b15
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/build
/dist
*.dol
*.elf

Expand All @@ -8,6 +9,7 @@ ipl.rom
*.vgc
*.bin
*.gci
*.zip

/subprojects/libogc2

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ should you want to use it for development purposes.

## Installation

Download the designated appropriate file for your device from the [latest release].
Download and extract the [latest release].

Prepare your SD card by copying DOLs onto the SD card and renaming them
according the table above.
Expand Down Expand Up @@ -188,7 +188,7 @@ Qoob Pro requires BS1 (early initialization code) from the original bootrom.
This can be obtained from an existing Qoob Pro BIOS or any IPL dump.

To use an existing Qoob Pro BIOS (easiest method),
download `iplboot_qoob_pro.gcb` from the [latest release].
grab `iplboot_qoob_pro.gcb` from the [latest release].

Alternatively, you can dump the IPL ROM from your own GameCube using Swiss:
1. Ensure file management is enabled in Swiss settings: press B, select the gear
Expand Down
14 changes: 14 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,17 @@ if full_rom_opt.allowed()
output: 'iplboot_qoob_pro.gcb',
command: [dol2ipl, '@OUTPUT@', '@INPUT@'],
build_by_default: true,
install: true,
install_dir: '/qoob_pro',
)
qoob_pro_updater_tgt = custom_target(
'qoob_pro_updater',
input: [qoob_pro, qoob_pro_updater],
output: 'qoob_pro_iplboot_upgrade.elf',
command: [qoob_injector, '@INPUT@', '@OUTPUT@'],
build_by_default: true,
install: true,
install_dir: '/qoob_pro',
)
endif

Expand All @@ -135,6 +139,8 @@ qoob_sx_updater_tgt = custom_target(
output: 'qoob_sx_iplboot_upgrade.elf',
command: [qoob_injector, '@INPUT@', '@OUTPUT@'],
build_by_default: true,
install: true,
install_dir: '/',
)

viper = custom_target(
Expand All @@ -143,6 +149,8 @@ viper = custom_target(
output: 'iplboot_viper.vgc',
command: [dol2ipl, '@OUTPUT@', '@INPUT@'],
build_by_default: true,
install: true,
install_dir: '/',
)

pico = custom_target(
Expand All @@ -151,6 +159,8 @@ pico = custom_target(
output: 'iplboot_pico.uf2',
command: [dol2ipl, '@OUTPUT@', '@INPUT@'],
build_by_default: true,
install: true,
install_dir: '/',
)

gci = custom_target(
Expand All @@ -159,4 +169,8 @@ gci = custom_target(
output: 'iplboot_memcard.gci',
command: [dol2gci, '@INPUT@', '@OUTPUT@', 'boot.dol'],
build_by_default: true,
install: true,
install_dir: '/',
)

install_data('README.md', install_dir: '/')
17 changes: 17 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

set -e

distdir=$PWD/dist
builddir=$distdir/build
destdir=$distdir/iplboot

version=$(git describe --always --tags --dirty)
distfile=iplboot-$version.zip

rm -rf "$distdir" "$distfile"

meson setup . "$builddir" --cross-file=devkitPPC.ini -Dfull_rom=enabled
meson install -C "$builddir" --skip-subprojects --destdir "$destdir"

7z a "$distfile" "$destdir/*"

0 comments on commit 99d1b15

Please sign in to comment.