Change package bootstrapping

This commit is contained in:
Ray Haleblian 2025-04-06 15:26:03 -04:00
parent 76720c7763
commit 6581621709
3 changed files with 7 additions and 90 deletions

1
.gitignore vendored
View File

@ -10,6 +10,7 @@
#.*#
.DS_Store
/build
/cflash
/doc
/dslibris.log
/dslibris.img

View File

@ -10,19 +10,16 @@ ebook reader for the Nintendo DS, DSi and DSi XL.
![A sample page](etc/sample/iliad.png)
# Releases
Download the zip file in the Releases section.
# Installation
See INSTALL.txt or the
[Quickstart](https://github.com/rhaleblian/dslibris/wiki/User:-Quickstart)
page in the Wiki.
# Development
## Prerequisites
@ -35,10 +32,12 @@ CentOS and msys2 have also worked, but haven't been checked recently.
Ubuntu under WSL would work too, but you'll be missing mount support
for emulator testing.
The `bootstrap` script can speed up getting started after cloning the repo.
Some configuration exists for using Visual Studio Code.
Once `dkp-pacman` is installed, can get needed packages via
sudo dkp-pacman -S $(cat requirements.txt)
## Building
To build the program, assure devkitARM is available to your shell:
@ -68,9 +67,8 @@ Copy your build to a DS and maybe `Log()` messages. Good luck.
# See Also
Blog: http://ray.haleblian.com/wordpress/dslibris-an-ebook-reader-for-the-nintendo-ds/
Blog: <http://ray.haleblian.com/wordpress/dslibris-an-ebook-reader-for-the-nintendo-ds/>
Development Tools: http://devkitpro.org
Development Tools: <http://devkitpro.org>
EPUB/W3C/IDPF: [http://idpf.org](https://idpf.org/)

View File

@ -1,82 +0,0 @@
#!/usr/bin/env bash
# Attempts to set up a machine that has never seen anything devkitPro-related before.
# Take it with a salt-grain; read it and do it yourself step by step.
packages=$(cat requirements.txt)
ext=none
mgr=none
pacman=pacman
arch=$(uname -m)
system=$(uname -s)
echo "info : bootstrapping for $system on $arch ..."
case $system in
Darwin)
mgr=pkg
ext=pkg
pacman=dkp-pacman
;;
Linux)
if [ -f /etc/arch-release ]
then
pacman=pacman
mgr=pacman
ext=none
fi
if [ -f /etc/debian-version ] || [ -f /etc/debian_version ]
then
mgr=apt
ext=deb
pacman=dkp-pacman
fi
;;
*)
echo fatal: system $system unknown.
exit 1
;;
esac
case $arch in
arm64)
arch=arm64
;;
aarch64)
arch=arm64
;;
x86_64)
arch=amd64
;;
*)
echo fatal: arch $arch unknown.
exit 1
;;
esac
if [ $ext == pkg ] || [ $ext == deb ]
then
pacball=none
case $ext in
pkg)
pacball=devkitpro-pacman-installer.pkg
;;
deb)
pacball=devkitpro-pacman.$arch.deb
;;
esac
wget https://github.com/devkitPro/pacman/releases/download/v1.0.2/$pacball
case $system in
Darwin)
sudo installer -pkg $pacball -target /
sudo $pacman -S --noconfirm $packages
rm $pacball
;;
Linux)
sudo apt install wget gdebi-core -y
sudo gdebi -n devkitpro-pacman.$arch.deb
sudo $pacman -S --noconfirm $packages
;;
esac
fi