Skip to content

Commit

Permalink
Package Steward Fu's 2048
Browse files Browse the repository at this point in the history
  • Loading branch information
erazemk committed May 11, 2022
1 parent 0d9578b commit 7c081f1
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
33 changes: 33 additions & 0 deletions 2048.pak/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# MiniUI Apps - 2048

[Steward Fu](https://github.com/steward-fu)'s port of 2048.

Source: https://github.com/steward-fu/miyoo-mini/releases (find `2048_<date>.zip`)

## Screenshots

| In-game |
|:-----------------------------------:|
| ![2048 - In-game](res/2048_000.png) |

## Installation

**Steward Fu's ports require [Parasyte](../Parasyte.pak), make sure you have it installed!**

## Pre-packaged

1. **Install [Parasyte](../Parasyte.pak)**
2. Download the latest version from Github: https://github.com/erazemk/MiniUI-Apps/releases
3. Extract the archive and move the `2048.pak` directory to your SD card, to the `Tools` directory
(create it if it doesn't exist already)

## Manually packaged

1. Download [Steward Fu's 2048](https://github.com/steward-fu/miyoo-mini/releases)
(find `2048_<date>.zip`)
2. Extract the archive, go into the directory and rename the `2048` directory to `2048.pak`
3. Delete the png files and config.json
4. Replace the existing `launch.sh` file with the one from this repository
(https://raw.githubusercontent.com/erazemk/MiniUI-Apps/main/2048.pak/launch.sh)
5. Move the `2048.pak` directory to your SD card, to the `Tools` directory
(create it if it doesn't exist already)
22 changes: 22 additions & 0 deletions 2048.pak/launch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh

DIR=$(dirname "$0")
PARASYTE="/mnt/SDCARD/.system/paks/Parasyte.pak/rootfs"

export HOME=$DIR
export PYTHONPATH=$DIR/libs/python2.7:$DIR/libs/python2.7/site-packages:$DIR/libs/python2.7/lib-dynload
export PYTHONHOME=$DIR/libs/python2.7:$DIR/libs/python2.7/site-packages:$DIR/libs/python2.7/lib-dynload
export PATH=$DIR/bin:$PARASYTE/usr/local/sbin:$PARASYTE/usr/local/bin:$PARASYTE/usr/sbin:$PARASYTE/usr/bin:$PARASYTE/sbin:$PARASYTE/bin:$PATH
export LD_LIBRARY_PATH=$DIR/libs:$DIR/libs/python2.7/:$DIR/libs/python2.7/lib-dynload:$PARASYTE/lib:$PARASYTE/usr/lib:$LD_LIBRARY_PATH

cd "$DIR" || exit

# Launch a menu, explaining to the user that the game won't be auto-saved
if [ ! -f ./initial-warning-done ]; then
show okay.png
say "2048 is a standalone app,"$'\n'" IT WILL NOT BE AUTO-SAVED"$'\n'"when powering off!"$'\n'
confirm only
touch ./initial-warning-done
fi

python2 ./2048.py > "$LOGS_PATH"/2048.txt 2>&1
Binary file added 2048.pak/res/2048_000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ a custom launcher for the Miyoo Mini.

## Apps

- [2048](2048.pak)
- [Gmu](Gmu.pak)
- [Parasyte](Parasyte.pak)
- [VVVVVV](VVVVVV.pak)

0 comments on commit 7c081f1

Please sign in to comment.