remove actual ROMs from repo, rework setup script accordingly

This commit is contained in:
Gwenhael Le Moine 2024-08-11 13:40:32 +02:00
parent c72a393498
commit 6271bc7daf
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
11 changed files with 17 additions and 7 deletions

BIN
dist/ROMs/gxrom-l vendored

Binary file not shown.

BIN
dist/ROMs/gxrom-m vendored

Binary file not shown.

BIN
dist/ROMs/gxrom-p vendored

Binary file not shown.

BIN
dist/ROMs/gxrom-r vendored

Binary file not shown.

BIN
dist/ROMs/sxrom-a vendored

Binary file not shown.

BIN
dist/ROMs/sxrom-b vendored

Binary file not shown.

BIN
dist/ROMs/sxrom-c vendored

Binary file not shown.

BIN
dist/ROMs/sxrom-d vendored

Binary file not shown.

BIN
dist/ROMs/sxrom-e vendored

Binary file not shown.

BIN
dist/ROMs/sxrom-j vendored

Binary file not shown.

View file

@ -1,23 +1,33 @@
#!/usr/bin/env sh #!/usr/bin/env sh
DOTX48NG=${DOTX48NG:-.config/x48ng} DOTX48NG=${DOTX48NG:-.config/x48ng}
CONFIG_FILE=~/"${DOTX48NG}"/config.lua
ROM=${ROM:-./ROMs/gxrom-r}
ROM=${ROM:-gxrom-r} # [ -d ~/"${DOTX48NG}" ] && rm -fr ~"/${DOTX48NG}"
mkdir -p ~/"${DOTX48NG}"
[ -d ~/${DOTX48NG} ] && rm -fr ~/${DOTX48NG} [ -e "${CONFIG_FILE}" ] && mv "${CONFIG_FILE}" "${CONFIG_FILE}".orig
mkdir -p ~/${DOTX48NG} x48ng --print-config > "${CONFIG_FILE}"
x48ng --print-config > ~/${DOTX48NG}/config.lua cp -r @PREFIX@/share/x48ng/ROMs/ ~/"${DOTX48NG}"/
cp @PREFIX@/share/x48ng/ROMs/$ROM ~/${DOTX48NG}/rom cd ~/"${DOTX48NG}"/ROMs/ || exit 1
cd ~/${DOTX48NG} make get-roms
cd ~/"${DOTX48NG}" || exit 1
[ -e rom ] && mv rom rom.orig
cp "$ROM" rom
PORT1_SIZE=128K PORT1_SIZE=128K
PORT2_SIZE=4M PORT2_SIZE=4M
if $(echo $ROM | grep -q "^sx"); then if $(echo "$ROM" | grep -q "^sx"); then
PORT2_SIZE=128K PORT2_SIZE=128K
fi fi
[ -e port1 ] && mv port1 port1.orig
@PREFIX@/share/x48ng/mkcard $PORT1_SIZE port1 @PREFIX@/share/x48ng/mkcard $PORT1_SIZE port1
[ -e port2 ] && mv port2 port2.orig
@PREFIX@/share/x48ng/mkcard $PORT2_SIZE port2 @PREFIX@/share/x48ng/mkcard $PORT2_SIZE port2