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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ scripts/deploy-muos.sh <ssh-host>
scripts/deploy-knulli.sh <ssh-host>
scripts/deploy-darkos.sh <ssh-host>
scripts/deploy-rocknix.sh <ssh-host>
scripts/deploy-amberelec.sh <ssh-host>
```

Replace `<ssh-host>` with the device's hostname or IP address.
Expand All @@ -106,4 +107,6 @@ The dArkOS/ArkOS script defaults to `/roms` and also supports `--roms2` and `--r

The ROCKNIX script defaults to `/storage/roms` and also supports `--root PATH`.

The AmberELEC script defaults to `/storage/roms` and also supports `--root PATH`.

The deployment scripts install from the staged package tree. Run `scripts/build-docker.sh` first.
2 changes: 2 additions & 0 deletions scripts/deploy-amberelec.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
exec "$(dirname "${BASH_SOURCE[0]}")/deploy.sh" amberelec "$@"
12 changes: 10 additions & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")/.."

platform="${1:-}"
if [ -z "$platform" ]; then
echo "Usage: $0 <muos|knulli|darkos|rocknix> [--root PATH] <ssh-host>" >&2
echo "Usage: $0 <muos|knulli|darkos|rocknix|amberelec> [--root PATH] <ssh-host>" >&2
exit 2
fi
shift
Expand All @@ -31,6 +31,11 @@ case "$platform" in
host="${CODBOZ_ROCKNIX_DEPLOY_HOST:-}"
port_directory="ports"
;;
amberelec)
target_root="${CODBOZ_AMBERELEC_DEPLOY_ROOT:-/storage/roms}"
host="${CODBOZ_AMBERELEC_DEPLOY_HOST:-}"
port_directory="ports"
;;
*)
echo "Unknown platform: $platform" >&2
exit 2
Expand All @@ -51,6 +56,9 @@ usage() {
rocknix)
echo "Usage: $0 rocknix [--storage|--root PATH] <ssh-host>" >&2
;;
amberelec)
echo "Usage: $0 amberelec [--storage|--root PATH] <ssh-host>" >&2
;;
esac
}

Expand Down Expand Up @@ -86,7 +94,7 @@ while [ "$#" -gt 0 ]; do
--storage)
target_root="/storage/roms"
;;
-h|--help)
-h | --help)
usage
exit 0
;;
Expand Down