2023-11-09 14:21:44 +01:00
|
|
|
# NextCast
|
|
|
|
|
|
|
|
With `nix-shell`:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
export PYTHONPATH="$${PYTHONPATH:-}:src"
|
|
|
|
nix-shell --run './src/nextcast/app_resume_playback.py'
|
|
|
|
nix-shell --run './src/nextcast/app_play_episode.py'
|
|
|
|
```
|
|
|
|
|
|
|
|
With `apk` (on Alpine or PostmarketOS):
|
|
|
|
|
|
|
|
```shell
|
|
|
|
sudo apk add mpv libmediainfo ncurses
|
|
|
|
sudo apk add py3-pip
|
|
|
|
python3 -m venv venv
|
|
|
|
. venv/bin/activate
|
|
|
|
pip install -r requirements.txt
|
|
|
|
```
|
|
|
|
|
|
|
|
```shell
|
|
|
|
. venv/bin/activate
|
|
|
|
export PYTHONPATH="$${PYTHONPATH:-}:src"
|
|
|
|
./src/nextcast/app_resume_playback.py
|
|
|
|
./src/nextcast/app_play_episode.py
|
|
|
|
```
|
2023-11-09 14:58:04 +01:00
|
|
|
|
|
|
|
## Alpine Packaging
|
|
|
|
|
|
|
|
```shell
|
2023-11-09 15:32:18 +01:00
|
|
|
pmbootstrap newapkbuild py3-nextcast -f -y -l MIT -u https://git.privacy1st.de/langfingaz/nextcast
|
2023-11-09 14:58:04 +01:00
|
|
|
cat ~/.local/var/pmbootstrap/cache_git/pmaports/main/py3-nextcast/APKBUILD
|
|
|
|
```
|
|
|
|
|
|
|
|
```shell
|
|
|
|
cp Alpine/APKGBUILD ~/.local/var/pmbootstrap/cache_git/pmaports/main/py3-nextcast/APKBUILD
|
|
|
|
pmbootstrap apkbuild_parse py3-nextcast
|
|
|
|
pmbootstrap checksum py3-nextcast
|
2023-11-09 18:09:12 +01:00
|
|
|
pmbootstrap build --arch aarch64 py3-nextcast
|
2023-11-09 17:43:23 +01:00
|
|
|
#=> build x86_64/py3-nextcast-0.0.1-r1.apk
|
2023-11-09 14:58:04 +01:00
|
|
|
```
|
|
|
|
|
2023-11-09 15:32:18 +01:00
|
|
|
```shell
|
|
|
|
pmbootstrap shutdown
|
|
|
|
```
|
2023-11-09 17:43:23 +01:00
|
|
|
|
|
|
|
```shell
|
|
|
|
ls ~/.local/var/pmbootstrap/packages/edge/x86_64/py3-nextcast-0.0.1-r1.apk
|
|
|
|
ls ~/.local/var/pmbootstrap/packages/edge/x86_64/py3-nextcast-pyc-0.0.1-r1.apk
|
2023-11-09 18:09:12 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
Sideload to your postmarketOS phone:
|
|
|
|
|
|
|
|
* https://wiki.postmarketos.org/wiki/Installing_packages_on_a_running_phone#pmbootstrap_sideload
|
|
|
|
|
|
|
|
```shell
|
|
|
|
pmbootstrap sideload --host yodaEnchilada --user yoda --arch aarch64 --install-key py3-nextcast
|
|
|
|
```
|