Skip to content

Commit 7c081f1

Browse files
committed
Package Steward Fu's 2048
1 parent 0d9578b commit 7c081f1

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed

2048.pak/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# MiniUI Apps - 2048
2+
3+
[Steward Fu](https://github.com/steward-fu)'s port of 2048.
4+
5+
Source: https://github.com/steward-fu/miyoo-mini/releases (find `2048_<date>.zip`)
6+
7+
## Screenshots
8+
9+
| In-game |
10+
|:-----------------------------------:|
11+
| ![2048 - In-game](res/2048_000.png) |
12+
13+
## Installation
14+
15+
**Steward Fu's ports require [Parasyte](../Parasyte.pak), make sure you have it installed!**
16+
17+
## Pre-packaged
18+
19+
1. **Install [Parasyte](../Parasyte.pak)**
20+
2. Download the latest version from Github: https://github.com/erazemk/MiniUI-Apps/releases
21+
3. Extract the archive and move the `2048.pak` directory to your SD card, to the `Tools` directory
22+
(create it if it doesn't exist already)
23+
24+
## Manually packaged
25+
26+
1. Download [Steward Fu's 2048](https://github.com/steward-fu/miyoo-mini/releases)
27+
(find `2048_<date>.zip`)
28+
2. Extract the archive, go into the directory and rename the `2048` directory to `2048.pak`
29+
3. Delete the png files and config.json
30+
4. Replace the existing `launch.sh` file with the one from this repository
31+
(https://raw.githubusercontent.com/erazemk/MiniUI-Apps/main/2048.pak/launch.sh)
32+
5. Move the `2048.pak` directory to your SD card, to the `Tools` directory
33+
(create it if it doesn't exist already)

2048.pak/launch.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
3+
DIR=$(dirname "$0")
4+
PARASYTE="/mnt/SDCARD/.system/paks/Parasyte.pak/rootfs"
5+
6+
export HOME=$DIR
7+
export PYTHONPATH=$DIR/libs/python2.7:$DIR/libs/python2.7/site-packages:$DIR/libs/python2.7/lib-dynload
8+
export PYTHONHOME=$DIR/libs/python2.7:$DIR/libs/python2.7/site-packages:$DIR/libs/python2.7/lib-dynload
9+
export PATH=$DIR/bin:$PARASYTE/usr/local/sbin:$PARASYTE/usr/local/bin:$PARASYTE/usr/sbin:$PARASYTE/usr/bin:$PARASYTE/sbin:$PARASYTE/bin:$PATH
10+
export LD_LIBRARY_PATH=$DIR/libs:$DIR/libs/python2.7/:$DIR/libs/python2.7/lib-dynload:$PARASYTE/lib:$PARASYTE/usr/lib:$LD_LIBRARY_PATH
11+
12+
cd "$DIR" || exit
13+
14+
# Launch a menu, explaining to the user that the game won't be auto-saved
15+
if [ ! -f ./initial-warning-done ]; then
16+
show okay.png
17+
say "2048 is a standalone app,"$'\n'" IT WILL NOT BE AUTO-SAVED"$'\n'"when powering off!"$'\n'
18+
confirm only
19+
touch ./initial-warning-done
20+
fi
21+
22+
python2 ./2048.py > "$LOGS_PATH"/2048.txt 2>&1

2048.pak/res/2048_000.png

6.88 KB
Loading

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ a custom launcher for the Miyoo Mini.
55

66
## Apps
77

8+
- [2048](2048.pak)
89
- [Gmu](Gmu.pak)
910
- [Parasyte](Parasyte.pak)
1011
- [VVVVVV](VVVVVV.pak)

0 commit comments

Comments
 (0)